Documentation ¶
Index ¶
- type Historier
- type History
- func (h *History) CreateRelease(ctx context.Context, rel *rls.Release) error
- func (h *History) Empty() bool
- func (h *History) LastDeployedRelease() (rel *rls.Release, found bool, err error)
- func (h *History) LastRelease() (rel *rls.Release, found bool, err error)
- func (h *History) Release(revision int) (rel *rls.Release, found bool, err error)
- func (h *History) UpdateRelease(ctx context.Context, rel *rls.Release) error
- type HistoryOptions
- type LegacyStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Historier ¶
type Historier interface { Release(revision int) (rel *rls.Release, found bool, err error) LastRelease() (rel *rls.Release, found bool, err error) LastDeployedRelease() (rel *rls.Release, found bool, err error) Empty() bool CreateRelease(ctx context.Context, rel *rls.Release) error UpdateRelease(ctx context.Context, rel *rls.Release) error }
type History ¶
type History struct {
// contains filtered or unexported fields
}
func NewHistory ¶
func NewHistory(releaseName, releaseNamespace string, historyStorage LegacyStorage, opts HistoryOptions) (*History, error)
func (*History) CreateRelease ¶
func (*History) LastDeployedRelease ¶
Get last successfully deployed release since last attempt to uninstall release or from the beginning of history.
func (*History) LastRelease ¶
type HistoryOptions ¶
type HistoryOptions struct { Mapper meta.ResettableRESTMapper DiscoveryClient discovery.CachedDiscoveryInterface }
type LegacyStorage ¶
type LegacyStorage interface { Create(rls *legacyRelease.Release) error Update(rls *legacyRelease.Release) error Query(labels map[string]string) ([]*legacyRelease.Release, error) }
Click to show internal directories.
Click to hide internal directories.