target

package
v0.0.0-...-1dfb0ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright (c) Tobias Schäfer. All rights reserved. Licensed under the MIT license, see LICENSE in the project root for details.

Copyright (c) Tobias Schäfer. All rights reserved. Licensed under the MIT license, see LICENSE in the project root for details.

Copyright (c) Tobias Schäfer. All rights reserved. Licensed under the MIT license, see LICENSE in the project root for details.

Index

Constants

View Source
const (
	SkipTLSVerifyEnv string = "FINCH_SKIP_TLS_VERIFY"
)

Variables

This section is empty.

Functions

func PrintProgress

func PrintProgress(message string, format Format)

Types

type Format

type Format int64
const (
	FormatQuiet         Format = 0
	FormatProgress      Format = 1
	FormatDocumentation Format = 2
	FormatJSON          Format = 3
)

type Target

type Target interface {
	Run(command string) ([]byte, error)
	Copy(src, dest, mode, owner string) error
}

func NewLocal

func NewLocal(host *url.URL, format Format, dryRun bool) (Target, error)

func NewRemote

func NewRemote(host *url.URL, format Format, dryRun bool) (Target, error)

func NewTarget

func NewTarget(hostUrl string, format Format, dryRun bool) (Target, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL