Documentation
¶
Index ¶
- type BufferedFiles
- type ChartFS
- func (c *ChartFS) GetAllCharts() ([]chart.Chart, error)
- func (c *ChartFS) GetChartFiles(chartPath string) (*chart.Chart, error)
- func (c *ChartFS) Open(name string) (fs.File, error)
- func (c *ChartFS) ReadFile(name string) ([]byte, error)
- func (c *ChartFS) WithBaseDir(baseDir string) (*ChartFS, error)
- type OverlayFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferedFiles ¶
type BufferedFiles struct {
// contains filtered or unexported fields
}
BufferedFiles represents the group of files needed to load a Helm chart in memory, the files data is stored as `loader.BufferedFile` instances.
func NewBufferedFiles ¶
func NewBufferedFiles(cfs fs.FS, baseDir string) *BufferedFiles
NewBufferedFiles creates a new BufferedFiles instance.
func (*BufferedFiles) Files ¶
func (b *BufferedFiles) Files() []*loader.BufferedFile
Files returns the buffered files collected by "Walk" function.
type ChartFS ¶
type ChartFS struct {
// contains filtered or unexported fields
}
ChartFS represents a file system abstraction which provides the Helm charts payload, and as well the "values.yaml.tpl" file. It uses an underlying fs.FS as data source.
func (*ChartFS) GetAllCharts ¶
GetAllCharts retrieves all Helm charts from the filesystem.
func (*ChartFS) GetChartFiles ¶
GetChartFiles returns the informed Helm chart path instantiated files.
type OverlayFS ¶
type OverlayFS struct {
Embedded fs.FS // embedded data (first)
Local fs.FS // local data (second)
}
OverlayFS implements fs.FS and looks for files in the embedded filesystem first, then the local filesystem.
func NewOverlayFS ¶
NewOverlayFS creates a new OverlayFS with the given embedded and local filesystems.