downloader

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func (d *Downloader) ReadChart(chartDirPath string, filePath ...string) (map[string][]byte, error)

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

Jump to

Keyboard shortcuts

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