store

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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) Download

func (r Release) Download() (string, error)

Download gets the release from an index server

func (Release) Get

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) Load added in v0.2.0

func (r *Release) Load(p []datastore.Property) error

Load satisfies the datastore.PropertyLoadSaver interface

func (Release) MatchesSelector

func (r Release) MatchesSelector(selector map[string]string) bool

MatchesSelector checks if the specified release contains all the key/value pairs in it's Labels

func (*Release) MergeValues

func (r *Release) MergeValues(values []string) error

MergeValues parses string values and then merges them into the existing Values for a release. Adopted from kubernetes/helm/cmd/helm/install.go

func (*Release) Save added in v0.2.0

func (r *Release) Save() ([]datastore.Property, error)

Save satisfies the datastore.PropertyLoadSaver interface

func (Release) String

func (r Release) String() string

func (Release) Upgrade

func (r Release) Upgrade(chartLocation string, dryRun bool, timeout int64) (*rls.UpdateReleaseResponse, error)

Upgrade sends an update to an existing release in a cluster

type ReleaseMarshaler

type ReleaseMarshaler interface {
	MarshalRelease() (*Release, error)
}

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

type ReleaseUnmarshaler interface {
	UnmarshalRelease(Release) error
}

ReleaseUnmarshaler is an interface for unmarshaling a release

type Releases

type Releases []Release

Releases is a slice of release

type ReleasesMarshaler

type ReleasesMarshaler interface {
	MarshalReleases() (Releases, error)
}

ReleasesMarshaler is an interface for marshaling slices of release

type ReleasesUnmarshaler

type ReleasesUnmarshaler interface {
	UnmarshalReleases(Releases) error
}

ReleasesUnmarshaler is an interface for unmarshaling slices of release

Jump to

Keyboard shortcuts

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