Documentation ¶
Index ¶
- Constants
- type Releases
- func (rel *Releases) Create(key string, rls *rspb.Release) error
- func (rel *Releases) Delete(key string) (rls *rspb.Release, err error)
- func (rel *Releases) Get(key string) (*rspb.Release, error)
- func (rel *Releases) List(filter func(*rspb.Release) bool) ([]*rspb.Release, error)
- func (rel *Releases) Name() string
- func (rel *Releases) Query(labels map[string]string) ([]*rspb.Release, error)
- func (rel *Releases) Update(key string, rls *rspb.Release) error
Constants ¶
View Source
const ReleasesDriverName = "Release"
ReleasesDriverName is the string name of the driver.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Releases ¶
type Releases struct { Log func(string, ...interface{}) // contains filtered or unexported fields }
Releases is a wrapper around an implementation of a kubernetes ReleasesInterface.
func NewReleases ¶
func NewReleases(impl releaseclient.ReleaseInterface) *Releases
NewReleases initializes a new Releases wrapping an implementation of the kubernetes ReleasesInterface.
func (*Releases) Create ¶
Create creates a new ConfigMap holding the release. If the ConfigMap already exists, ErrReleaseExists is returned.
func (*Releases) Get ¶
Get fetches the release named by key. The corresponding release is returned or error if not found.
func (*Releases) List ¶
List fetches all releases and returns the list releases such that filter(release) == true. An error is returned if the configmap fails to retrieve the releases.
Click to show internal directories.
Click to hide internal directories.