fetch

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MoveDir

func MoveDir(path, dstPath string) error

func MoveFile

func MoveFile(path, dstPath string) error

MoveFile moves a file to the destination, before that it removes all the contents of the destination folder If folder already existed it will keep the permissions if not it will use 0700

func ScopedPath

func ScopedPath(path, subPath string) (string, error)

Types

type Archive

type Archive struct {
	// contains filtered or unexported fields
}

func NewArchive

func NewArchive(path string, fallbackOnPlain bool, fallbackOnPlainURL string) Archive

func (Archive) Unpack

func (t Archive) Unpack(dstPath string) (bool, error)

type RefFetcher

type RefFetcher interface {
	GetSecret(string) (ctlconf.Secret, error)
	GetConfigMap(string) (ctlconf.ConfigMap, error)
}

type SingleSecretRefFetcher

type SingleSecretRefFetcher struct {
	Secret *ctlconf.Secret
}

func (SingleSecretRefFetcher) GetConfigMap

func (f SingleSecretRefFetcher) GetConfigMap(_ string) (ctlconf.ConfigMap, error)

func (SingleSecretRefFetcher) GetSecret

func (f SingleSecretRefFetcher) GetSecret(name string) (ctlconf.Secret, error)

type TempArea

type TempArea interface {
	NewTempDir(string) (string, error)
	NewTempFile(string) (*os.File, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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