Documentation
¶
Index ¶
- Variables
- func Load(name string, opts helmopts.HelmOptions) (*chart.Chart, error)
- func LoadArchive(in io.Reader, opts helmopts.HelmOptions) (*chart.Chart, error)
- func LoadChartDependencies(ctx context.Context, ...) ([]*file.ChartExtenderBufferedFile, error)
- func LoadDir(dir string, opts helmopts.HelmOptions) (*chart.Chart, error)
- func LoadFile(name string, opts helmopts.HelmOptions) (*chart.Chart, error)
- func LoadFiles(files []*BufferedFile, opts helmopts.HelmOptions) (*chart.Chart, error)
- func LocalCacheDir() (string, error)
- func ServiceDir() (string, error)
- func SetLocalCacheDir(dir string)
- func SetServiceDir(dir string)
- type BufferedFile
- type ChartLoader
- type DirLoader
- type FileLoader
Constants ¶
This section is empty.
Variables ¶
var NoChartLockWarning = `Cannot automatically download chart dependencies without Chart.lock or requirements.lock.`
Functions ¶
func Load ¶
Load takes a string name, tries to resolve it to a file or directory, and then loads it.
This is the preferred way to load a chart. It will discover the chart encoding and hand off to the appropriate chart reader.
If a .helmignore file is present, the directory loader will skip loading any files matching it.
func LoadArchive ¶
LoadArchive loads from a reader containing a compressed tar archive.
func LoadChartDependencies ¶
func LoadChartDependencies( ctx context.Context, loadChartDirFunc func(ctx context.Context, dir string) ([]*file.ChartExtenderBufferedFile, error), chartDir string, loadedChartFiles []*file.ChartExtenderBufferedFile, opts helmopts.HelmOptions, ) ([]*file.ChartExtenderBufferedFile, error)
func LoadFiles ¶
func LoadFiles(files []*BufferedFile, opts helmopts.HelmOptions) (*chart.Chart, error)
LoadFiles loads from in-memory files.
func LocalCacheDir ¶
func ServiceDir ¶
func SetLocalCacheDir ¶
func SetLocalCacheDir(dir string)
func SetServiceDir ¶
func SetServiceDir(dir string)
Types ¶
type BufferedFile ¶
BufferedFile represents an archive file buffered for later processing.
func GetFilesFromLocalFilesystem ¶
func GetFilesFromLocalFilesystem(dir string) ([]*BufferedFile, error)
func LoadArchiveFiles ¶
func LoadArchiveFiles(in io.Reader) ([]*BufferedFile, error)
LoadArchiveFiles reads in files out of an archive into memory. This function performs important path security checks and should always be used before expanding a tarball
type ChartLoader ¶
type ChartLoader interface {
Load(options helmopts.HelmOptions) (*chart.Chart, error)
}
ChartLoader loads a chart.
func Loader ¶
func Loader(name string) (ChartLoader, error)
Loader returns a new ChartLoader appropriate for the given chart name
type FileLoader ¶
type FileLoader string
FileLoader loads a chart from a file
func (FileLoader) Load ¶
func (l FileLoader) Load(opts helmopts.HelmOptions) (*chart.Chart, error)
Load loads a chart