Versions in this module Expand all Collapse all v1 v1.0.1 Nov 27, 2022 v1.0.0 Nov 27, 2022 Changes in this version + const ConfigMapsDriverName + const MemoryDriverName + const SQLDriverName + const SecretsDriverName + var ErrInvalidKey = errors.New("release: invalid key") + var ErrNoDeployedReleases = errors.New("has no deployed releases") + var ErrReleaseExists = errors.New("release: already exists") + var ErrReleaseNotFound = errors.New("release: not found") + func NewErrNoDeployedReleases(releaseName string) error + type ConfigMaps struct + Log func(string, ...interface{}) + func NewConfigMaps(impl corev1.ConfigMapInterface) *ConfigMaps + func (cfgmaps *ConfigMaps) Create(key string, rls *rspb.Release) error + func (cfgmaps *ConfigMaps) Delete(key string) (rls *rspb.Release, err error) + func (cfgmaps *ConfigMaps) Get(key string) (*rspb.Release, error) + func (cfgmaps *ConfigMaps) List(filter func(*rspb.Release) bool) ([]*rspb.Release, error) + func (cfgmaps *ConfigMaps) Name() string + func (cfgmaps *ConfigMaps) Query(labels map[string]string) ([]*rspb.Release, error) + func (cfgmaps *ConfigMaps) Update(key string, rls *rspb.Release) error + type Creator interface + Create func(key string, rls *rspb.Release) error + type Deletor interface + Delete func(key string) (*rspb.Release, error) + type Driver interface + Name func() string + type Memory struct + func NewMemory() *Memory + func (mem *Memory) Create(key string, rls *rspb.Release) error + func (mem *Memory) Delete(key string) (*rspb.Release, error) + func (mem *Memory) Get(key string) (*rspb.Release, error) + func (mem *Memory) List(filter func(*rspb.Release) bool) ([]*rspb.Release, error) + func (mem *Memory) Name() string + func (mem *Memory) Query(keyvals map[string]string) ([]*rspb.Release, error) + func (mem *Memory) SetNamespace(ns string) + func (mem *Memory) Update(key string, rls *rspb.Release) error + type Queryor interface + Get func(key string) (*rspb.Release, error) + List func(filter func(*rspb.Release) bool) ([]*rspb.Release, error) + Query func(labels map[string]string) ([]*rspb.Release, error) + type SQL struct + Log func(string, ...interface{}) + func NewSQL(connectionString string, logger func(string, ...interface{}), namespace string) (*SQL, error) + func (s *SQL) Create(key string, rls *rspb.Release) error + func (s *SQL) Delete(key string) (*rspb.Release, error) + func (s *SQL) Get(key string) (*rspb.Release, error) + func (s *SQL) List(filter func(*rspb.Release) bool) ([]*rspb.Release, error) + func (s *SQL) Name() string + func (s *SQL) Query(labels map[string]string) ([]*rspb.Release, error) + func (s *SQL) Update(key string, rls *rspb.Release) error + type SQLReleaseWrapper struct + Body string + CreatedAt int + Key string + ModifiedAt int + Name string + Namespace string + Owner string + Status string + Type string + Version int + type Secrets struct + Log func(string, ...interface{}) + func NewSecrets(impl corev1.SecretInterface) *Secrets + func (secrets *Secrets) Create(key string, rls *rspb.Release) error + func (secrets *Secrets) Delete(key string) (rls *rspb.Release, err error) + func (secrets *Secrets) Get(key string) (*rspb.Release, error) + func (secrets *Secrets) List(filter func(*rspb.Release) bool) ([]*rspb.Release, error) + func (secrets *Secrets) Name() string + func (secrets *Secrets) Query(labels map[string]string) ([]*rspb.Release, error) + func (secrets *Secrets) Update(key string, rls *rspb.Release) error + type StorageDriverError struct + Err error + ReleaseName string + func (e *StorageDriverError) Error() string + func (e *StorageDriverError) Unwrap() error + type Updator interface + Update func(key string, rls *rspb.Release) error