directory

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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSymlinks(path string) error

ValidateSymlinks enforces that symlinks inside the given path resolve to inside the path

Types

type Directory

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

func NewDirectory

func NewDirectory(opts ctlconf.Directory, lockDirectory ctlconf.LockDirectory, ui ui.UI) *Directory

func (*Directory) Sync

func (d *Directory) Sync(syncOpts SyncOpts) (ctlconf.LockDirectory, error)

type FileFilter added in v0.37.0

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

func (FileFilter) Apply added in v0.37.0

func (d FileFilter) Apply(dirPath string) error

type InfoLog added in v0.3.0

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

func NewInfoLog added in v0.3.0

func NewInfoLog(ui ui.UI) *InfoLog

func (*InfoLog) Write added in v0.3.0

func (l *InfoLog) Write(data []byte) (int, error)

type NamedRefFetcher added in v0.37.0

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

func NewNamedRefFetcher added in v0.37.0

func NewNamedRefFetcher(secrets []ctlconf.Secret, configMaps []ctlconf.ConfigMap) NamedRefFetcher

func (NamedRefFetcher) GetConfigMap added in v0.37.0

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

func (NamedRefFetcher) GetSecret added in v0.37.0

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

type StagingDir added in v0.37.0

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

func NewStagingDir added in v0.37.0

func NewStagingDir() (StagingDir, error)

func (StagingDir) CleanUp added in v0.37.0

func (d StagingDir) CleanUp() error

func (StagingDir) CopyExistingFiles added in v0.37.0

func (d StagingDir) CopyExistingFiles(rootDir string, stagingPath string, ignorePaths []string) error

func (StagingDir) NewChild added in v0.37.0

func (d StagingDir) NewChild(path string) (string, error)

func (StagingDir) PartialRepace added in v0.38.0

func (d StagingDir) PartialRepace(contentPath string, directoryPath string) error

Replaces single directory of final location dir with single directory of staging dir

func (StagingDir) Prepare added in v0.37.0

func (d StagingDir) Prepare() error

func (StagingDir) Replace added in v0.37.0

func (d StagingDir) Replace(path string) error

Replaces entire final location directory with staging directory

func (StagingDir) TempArea added in v0.37.0

func (d StagingDir) TempArea() StagingTempArea

type StagingTempArea added in v0.37.0

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

func (StagingTempArea) NewTempDir added in v0.37.0

func (d StagingTempArea) NewTempDir(name string) (string, error)

func (StagingTempArea) NewTempFile added in v0.37.0

func (d StagingTempArea) NewTempFile(pattern string) (*os.File, error)

type SubPath added in v0.37.0

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

func NewSubPath added in v0.37.0

func NewSubPath(subPath string) SubPath

func (SubPath) Extract added in v0.37.0

func (s SubPath) Extract(srcPath, dstPath string, tempArea ctlfetch.TempArea) error

type SyncOpts added in v0.37.0

type SyncOpts struct {
	RefFetcher     ctlfetch.RefFetcher
	GithubAPIToken string
	HelmBinary     string
	Cache          ctlcache.Cache
	Lazy           bool
	Partial        bool
}

Jump to

Keyboard shortcuts

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