Documentation ¶
Index ¶
- type ChartClient
- func (c *ChartClient) GetChart(details *Details, netClient kube.HTTPClient, requireV1Support bool) (*ChartMultiVersion, error)
- func (c *ChartClient) InitNetClient(details *Details, userAuthToken string) (kube.HTTPClient, error)
- func (c *ChartClient) ParseDetails(data []byte) (*Details, error)
- func (c *ChartClient) RegistrySecretsPerDomain() map[string]string
- type ChartMultiVersion
- type Details
- type LoadHelm2Chart
- type LoadHelm3Chart
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartClient ¶ added in v1.8.0
type ChartClient struct {
// contains filtered or unexported fields
}
ChartClient struct contains the clients required to retrieve charts info
func NewChartClient ¶ added in v1.8.0
func NewChartClient(appRepoHandler kube.AuthHandler, kubeappsNamespace, userAgent string) *ChartClient
NewChartClient returns a new ChartClient
func (*ChartClient) GetChart ¶ added in v1.8.0
func (c *ChartClient) GetChart(details *Details, netClient kube.HTTPClient, requireV1Support bool) (*ChartMultiVersion, error)
GetChart retrieves and loads a Chart from a registry in both v2 and v3 formats.
func (*ChartClient) InitNetClient ¶ added in v1.8.0
func (c *ChartClient) InitNetClient(details *Details, userAuthToken string) (kube.HTTPClient, error)
InitNetClient returns an HTTP client based on the chart details loading a custom CA if provided (as a secret)
func (*ChartClient) ParseDetails ¶ added in v1.8.0
func (c *ChartClient) ParseDetails(data []byte) (*Details, error)
ParseDetails return Chart details
func (*ChartClient) RegistrySecretsPerDomain ¶ added in v1.10.0
func (c *ChartClient) RegistrySecretsPerDomain() map[string]string
RegistrySecretsPerDomain checks the app repo and available secrets to return the secret names per registry domain.
These are actually calculated during InitNetClient when we already have a k8s client with the user token.
type ChartMultiVersion ¶ added in v1.8.0
type ChartMultiVersion struct { Helm2Chart *helm2chart.Chart Helm3Chart *helm3chart.Chart }
ChartMultiVersion includes both Helm2Chart and Helm3Chart
type Details ¶
type Details struct { // AppRepositoryResourceName specifies an app repository resource to use // for the request. AppRepositoryResourceName string `json:"appRepositoryResourceName,omitempty"` // AppRepositoryResourceNamespace specifies the namespace for the app repository AppRepositoryResourceNamespace string `json:"appRepositoryResourceNamespace,omitempty"` // resource for the request. // ChartName is the name of the chart within the repo. ChartName string `json:"chartName"` // ReleaseName is the Name of the release given to Tiller. ReleaseName string `json:"releaseName"` // Version is the chart version. Version string `json:"version"` // Values is a string containing (unparsed) YAML values. Values string `json:"values,omitempty"` }
Details contains the information to retrieve a Chart
type LoadHelm2Chart ¶ added in v1.8.0
type LoadHelm2Chart func(in io.Reader) (*helm2chart.Chart, error)
LoadHelm2Chart should return a helm2 Chart struct from an IOReader
type LoadHelm3Chart ¶ added in v1.8.0
type LoadHelm3Chart func(in io.Reader) (*helm3chart.Chart, error)
LoadHelm3Chart returns a helm3 Chart struct from an IOReader
type Resolver ¶
type Resolver interface { ParseDetails(data []byte) (*Details, error) GetChart(details *Details, netClient kube.HTTPClient, requireV1Support bool) (*ChartMultiVersion, error) InitNetClient(details *Details, userAuthToken string) (kube.HTTPClient, error) RegistrySecretsPerDomain() map[string]string }
Resolver for exposed funcs