Documentation ¶
Index ¶
- Constants
- func KnownMediaTypes() []string
- type Authorizer
- type Client
- func (c *Client) LoadChart(ref *Reference) (*chart.Chart, error)
- func (c *Client) Login(hostname string, username string, password string) error
- func (c *Client) Logout(hostname string) error
- func (c *Client) PrintChartTable() error
- func (c *Client) PullChart(ref *Reference) error
- func (c *Client) PushChart(ref *Reference) error
- func (c *Client) RemoveChart(ref *Reference) error
- func (c *Client) SaveChart(ch *chart.Chart, ref *Reference) error
- type ClientOptions
- type Reference
- type Resolver
Constants ¶
View Source
const ( // HelmChartDefaultTag is the default tag used when storing a chart reference with no tag HelmChartDefaultTag = "latest" // HelmChartMetaMediaType is the reserved media type for Helm chart metadata HelmChartMetaMediaType = "application/vnd.cncf.helm.chart.meta.v1+json" // HelmChartContentMediaType is the reserved media type for Helm chart package content HelmChartContentMediaType = "application/vnd.cncf.helm.chart.content.v1+tar" // HelmChartMetaFileName is the reserved file name for Helm chart metadata HelmChartMetaFileName = "chart-meta.json" // HelmChartContentFileName is the reserved file name for Helm chart package content HelmChartContentFileName = "chart-content.tgz" // HelmChartNameAnnotation is the reserved annotation key for Helm chart name HelmChartNameAnnotation = "sh.helm.chart.name" // HelmChartVersionAnnotation is the reserved annotation key for Helm chart version HelmChartVersionAnnotation = "sh.helm.chart.version" )
View Source
const (
CredentialsFileBasename = "config.json"
)
Variables ¶
This section is empty.
Functions ¶
func KnownMediaTypes ¶
func KnownMediaTypes() []string
KnownMediaTypes returns a list of layer mediaTypes that the Helm client knows about
Types ¶
type Authorizer ¶
Authorizer handles registry auth operations
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client works with OCI-compliant registries and local Helm chart cache
func NewClient ¶
func NewClient(options *ClientOptions) *Client
NewClient returns a new registry client with config
func (*Client) PrintChartTable ¶
PrintChartTable prints a list of locally stored charts
func (*Client) RemoveChart ¶
RemoveChart deletes a locally saved chart
type ClientOptions ¶
type ClientOptions struct { Debug bool Out io.Writer Authorizer Authorizer Resolver Resolver CacheRootDir string }
ClientOptions is used to construct a new client
type Reference ¶
Reference defines the main components of a reference specification
func ParseReference ¶
ParseReference converts a string to a Reference
Click to show internal directories.
Click to hide internal directories.