fetch

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 10 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 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 added in v0.22.0

type SingleSecretRefFetcher struct {
	Secret *ctlconf.Secret
}

func (SingleSecretRefFetcher) GetConfigMap added in v0.22.0

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

func (SingleSecretRefFetcher) GetSecret added in v0.22.0

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