Documentation
¶
Index ¶
- type Downloader
- func (d *Downloader) GetChart(chart, version string) (string, error)
- func (d *Downloader) GetFilesContents(filePaths ...string) (map[string][]byte, error)
- func (d *Downloader) ReadChart(chartDirPath string, filePath ...string) (map[string][]byte, error)
- func (d *Downloader) ReadChartFileContentsLocal(chartDirPath string, filePaths ...string) (map[string][]byte, error)
- func (d *Downloader) ReadChartFileContentsTgz(chartDirPath string, filePaths ...string) (map[string][]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func New ¶
func New(chart, version string) *Downloader
func (*Downloader) GetChart ¶
func (d *Downloader) GetChart(chart, version string) (string, error)
Obtenemos el chart, si no es una ruta local, lo descargamos con pull chart
func (*Downloader) GetFilesContents ¶
func (d *Downloader) GetFilesContents(filePaths ...string) (map[string][]byte, error)
Obtenemos del chart los archivos especificados
func (*Downloader) ReadChart ¶
Leemos los archivos del chart, si es un tgz, descomprimimos los archivos y los leemos
func (*Downloader) ReadChartFileContentsLocal ¶
func (d *Downloader) ReadChartFileContentsLocal(chartDirPath string, filePaths ...string) (map[string][]byte, error)
Leemos los archivos del chart local
func (*Downloader) ReadChartFileContentsTgz ¶
func (d *Downloader) ReadChartFileContentsTgz(chartDirPath string, filePaths ...string) (map[string][]byte, error)
Leemos los archivos del chart tgz
Click to show internal directories.
Click to hide internal directories.