Documentation ¶
Index ¶
- Constants
- type Storage
- func (s *Storage) Create(rls *rspb.Release) error
- func (s *Storage) Delete(name string, version int) (*rspb.Release, error)
- func (s *Storage) Deployed(name string) (*rspb.Release, error)
- func (s *Storage) DeployedAll(name string) ([]*rspb.Release, error)
- func (s *Storage) Get(name string, version int) (*rspb.Release, error)
- func (s *Storage) History(name string) ([]*rspb.Release, error)
- func (s *Storage) Installed(name string) (*rspb.Release, error)
- func (s *Storage) InstalledAll(name string) ([]*rspb.Release, error)
- func (s *Storage) Last(name string) (*rspb.Release, error)
- func (s *Storage) ListDeployed() ([]*rspb.Release, error)
- func (s *Storage) ListReleases() ([]*rspb.Release, error)
- func (s *Storage) ListUninstalled() ([]*rspb.Release, error)
- func (s *Storage) Update(rls *rspb.Release) error
Constants ¶
const HelmStorageType = "sh.helm.release.v1"
The type field of the Kubernetes storage object which stores the Helm release version. It is modified slightly replacing the '/': sh.helm/release.v1 Note: The version 'v1' is incremented if the release object metadata is modified between major releases. This constant is used as a prefix for the Kubernetes storage object name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { driver.Driver // MaxHistory specifies the maximum number of historical releases that will // be retained, including the most recent release. Values of 0 or less are // ignored (meaning no limits are imposed). MaxHistory int Log func(string, ...interface{}) }
Storage represents a storage engine for a Release.
func Init ¶
Init initializes a new storage backend with the driver d. If d is nil, the default in-memory driver is used.
func (*Storage) Create ¶
Create creates a new storage entry holding the release. An error is returned if the storage driver failed to store the release, or a release with identical an key already exists.
func (*Storage) Delete ¶
Delete deletes the release from storage. An error is returned if the storage backend fails to delete the release or if the release does not exist.
func (*Storage) Deployed ¶
Deployed returns the last deployed release with the provided release name, or returns ErrReleaseNotFound if not found.
func (*Storage) DeployedAll ¶
DeployedAll returns all deployed releases with the provided name, or returns ErrReleaseNotFound if not found.
func (*Storage) Get ¶
Get retrieves the release from storage. An error is returned if the storage driver failed to fetch the release, or the release identified by the key, version pair does not exist.
func (*Storage) History ¶
History returns the revision history for the release with the provided name, or returns ErrReleaseNotFound if no such release name exists.
func (*Storage) Installed ¶
Installed returns the last installed release with the provided release name, or // returns ErrReleaseNotFound if not found
func (*Storage) InstalledAll ¶
InstalledAll returns all installed releases with the provided name, or returns ErrReleaseNotFound if not found.
func (*Storage) ListDeployed ¶
ListDeployed returns all releases with Status == DEPLOYED. An error is returned if the storage backend fails to retrieve the releases.
func (*Storage) ListReleases ¶
ListReleases returns all releases from storage. An error is returned if the storage backend fails to retrieve the releases.
func (*Storage) ListUninstalled ¶
ListUninstalled returns all releases with Status == UNINSTALLED. An error is returned if the storage backend fails to retrieve the releases.