Documentation ¶
Index ¶
- func NewIntermediateClient(intermediateBundlesPath string) (client.ChartsReaderWriter, error)
- type BundlesDir
- func (bd *BundlesDir) Fetch(name string, version string) (string, error)
- func (bd *BundlesDir) GetChartDetails(name string, version string) (*types.ChartDetails, error)
- func (bd *BundlesDir) Has(name string, version string) (bool, error)
- func (bd *BundlesDir) List() ([]string, error)
- func (bd *BundlesDir) ListChartVersions(name string) ([]string, error)
- func (bd *BundlesDir) Reload() error
- func (bd *BundlesDir) Upload(filepath string, metadata *chart.Metadata) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIntermediateClient ¶
func NewIntermediateClient(intermediateBundlesPath string) (client.ChartsReaderWriter, error)
NewIntermediateClient returns a ChartsReaderWriter object
Types ¶
type BundlesDir ¶
type BundlesDir struct {
// contains filtered or unexported fields
}
BundlesDir allows to operate a chart bundles directory It should implement pkg/client ChartsReaderWriter interface
func New ¶
func New(dir string) (*BundlesDir, error)
New creates a Repo object from an api.Repo object.
func (*BundlesDir) Fetch ¶
func (bd *BundlesDir) Fetch(name string, version string) (string, error)
Fetch fetches a chart
func (*BundlesDir) GetChartDetails ¶
func (bd *BundlesDir) GetChartDetails(name string, version string) (*types.ChartDetails, error)
GetChartDetails returns the details of a chart
func (*BundlesDir) Has ¶
func (bd *BundlesDir) Has(name string, version string) (bool, error)
Has checks if a repo has a specific chart
func (*BundlesDir) List ¶
func (bd *BundlesDir) List() ([]string, error)
List lists all chart names in a repo
func (*BundlesDir) ListChartVersions ¶
func (bd *BundlesDir) ListChartVersions(name string) ([]string, error)
ListChartVersions lists all versions of a chart
Click to show internal directories.
Click to hide internal directories.