catalog

package
v0.0.0-...-351f9be Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
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

func NewForConfig(c *rest.Config, ts *session.Session) (*Client, error)

NewForConfig creates a new CatalogV1Client for the given config.

func (*Client) FetchChartIcon

func (c *Client) FetchChartIcon(repo, chart string) (int, error)

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

func (c *Client) GetChartsFromClusterRepo(repoName string) (map[string]interface{}, error)

GetChartsFromClusterRepo will return all the installable charts from a given cluster repo name

func (*Client) GetLatestChartVersion

func (c *Client) GetLatestChartVersion(chartName string, repoName string) (string, error)

GetLatestChartVersion is used to get the lastest version of `chartName` from a given `repoName`

func (*Client) GetListChartVersions

func (c *Client) GetListChartVersions(chartName, repoName string) ([]string, error)

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`

Jump to

Keyboard shortcuts

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