Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) FetchChartIcon(repo, chart string) (int, error)
- func (c *Client) GetChartValues(repoName, chart, chartVersion string) (map[string]interface{}, error)
- func (c *Client) GetChartsFromClusterRepo(repoName string) (map[string]interface{}, error)
- func (c *Client) GetLatestChartVersion(chartName string, repoName string) (string, error)
- func (c *Client) GetListChartVersions(chartName, repoName string) ([]string, error)
- func (c *Client) InstallChart(chart *types.ChartInstallAction, repoName string) error
- func (c *Client) UninstallChart(chartName, chartNamespace string, uninstallAction *types.ChartUninstallAction) error
- func (c *Client) UpgradeChart(chart *types.ChartUpgradeAction, repoName string) error
Constants ¶
const ( ClusterRepoSteveResourceType = "catalog.cattle.io.clusterrepo" RancherChartRepo = "rancher-charts" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
catalogClientV1.CatalogV1Interface
}
Client is a struct that embedds the `CatalogV1Interface` (catalog client)
func NewForConfig ¶
NewForConfig creates a new CatalogV1Client for the given config.
func (*Client) FetchChartIcon ¶
FetchChartIcon - fetches the chart icon from the given repo and chart and validates the result.
func (*Client) GetChartValues ¶
func (c *Client) GetChartValues(repoName, chart, chartVersion string) (map[string]interface{}, error)
GetChartValues - fetches the chart values from the given repo, chart and chartVersion and validates the result.
func (*Client) GetChartsFromClusterRepo ¶
GetChartsFromClusterRepo will return all the installable charts from a given cluster repo name
func (*Client) GetLatestChartVersion ¶
GetLatestChartVersion is used to get the lastest version of `chartName` from a given `repoName`
func (*Client) GetListChartVersions ¶
GetListChartVersions is used to get the list of versions of `chartName` from a given `repoName`
func (*Client) InstallChart ¶
func (c *Client) InstallChart(chart *types.ChartInstallAction, repoName string) error
InstallChart installs the chart according to the parameter `chart` from a given repoName
func (*Client) UninstallChart ¶
func (c *Client) UninstallChart(chartName, chartNamespace string, uninstallAction *types.ChartUninstallAction) error
UninstallChart uninstalls the chart according to `chartNamespace`, `chartName`, and `uninstallAction`
func (*Client) UpgradeChart ¶
func (c *Client) UpgradeChart(chart *types.ChartUpgradeAction, repoName string) error
UpgradeChart upgrades the chart according to the parameter `chart`