Documentation ¶
Index ¶
- type Release
- func (r Release) Download() (string, error)
- func (r Release) Get() (*rls.GetReleaseContentResponse, error)
- func (r Release) Install(chartLocation string, dryRun bool, timeout int64) (*rls.InstallReleaseResponse, error)
- func (r *Release) Load(p []datastore.Property) error
- func (r Release) MatchesSelector(selector map[string]string) bool
- func (r *Release) MergeValues(values []string) error
- func (r *Release) Save() ([]datastore.Property, error)
- func (r Release) String() string
- func (r Release) Upgrade(chartLocation string, dryRun bool, timeout int64) (*rls.UpdateReleaseResponse, error)
- type ReleaseMarshaler
- type ReleaseStore
- type ReleaseUnmarshaler
- type Releases
- type ReleasesMarshaler
- type ReleasesUnmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Release ¶
type Release struct { UniqueID string `json:"unique_id" datastore:"uniqueID"` Labels map[string]string `json:"labels" datastore:"-"` ReleaseLabels []byte `json:"-" datastore:"labels,noindex"` Name string `json:"name" datastore:"name,noindex"` Chart string `json:"chart" datastore:"chart,noindex"` Namespace string `json:"namespace" datastore:"namespace,noindex"` Version string `json:"version" datastore:"version,noindex"` Values string `json:"values" datastore:"values,noindex"` }
A Release contains metadata about a release of a healm chart
func (Release) Get ¶
func (r Release) Get() (*rls.GetReleaseContentResponse, error)
Get the release content from Tiller
func (Release) Install ¶
func (r Release) Install(chartLocation string, dryRun bool, timeout int64) (*rls.InstallReleaseResponse, error)
Install creates an new release in a cluster
func (Release) MatchesSelector ¶
MatchesSelector checks if the specified release contains all the key/value pairs in it's Labels
func (*Release) MergeValues ¶
MergeValues parses string values and then merges them into the existing Values for a release. Adopted from kubernetes/helm/cmd/helm/install.go
type ReleaseMarshaler ¶
ReleaseMarshaler is an interface for marshaling a release
type ReleaseStore ¶
type ReleaseStore interface { Get(ctx context.Context, uniqueID string) (*Release, error) Put(context.Context, Release) error Delete(ctx context.Context, uniqueID string) error List(ctx context.Context, selector map[string]string) (Releases, error) Load(context.Context, Releases) error Setup(context.Context) error }
A ReleaseStore is a backend that stores releases
type ReleaseUnmarshaler ¶
ReleaseUnmarshaler is an interface for unmarshaling a release
type ReleasesMarshaler ¶
ReleasesMarshaler is an interface for marshaling slices of release
type ReleasesUnmarshaler ¶
ReleasesUnmarshaler is an interface for unmarshaling slices of release