rlshistor

package
v0.0.0-...-3d5d804 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (h *History) CreateRelease(ctx context.Context, rel *rls.Release) error

func (*History) Empty

func (h *History) Empty() bool

func (*History) LastDeployedRelease

func (h *History) LastDeployedRelease() (rel *rls.Release, found bool, err error)

Get last successfully deployed release since last attempt to uninstall release or from the beginning of history.

func (*History) LastRelease

func (h *History) LastRelease() (rel *rls.Release, found bool, err error)

func (*History) Release

func (h *History) Release(revision int) (rel *rls.Release, found bool, err error)

func (*History) UpdateRelease

func (h *History) UpdateRelease(ctx context.Context, rel *rls.Release) error

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

Jump to

Keyboard shortcuts

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