release

package
v0.0.0-...-e51d0cd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyExists = errors.New("release already exists")

Functions

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func NewDefaultStore

func NewDefaultStore(c kubernetes.Interface) *store

func NewStore

func NewStore(d Driver) *store

Types

type Driver

type Driver interface {
	Create(ctx context.Context, devkName, namespace string, r *Release) error
	Get(ctx context.Context, devkName, namespace string) (*Release, error)
	Delete(ctx context.Context, devkName, namespace string) error
	Update(ctx context.Context, devkName, namespace string, r *Release) error
	List(ctx context.Context, namespace string) ([]*Release, error)
}

type Release

type Release struct {
	Name      string              `json:"name"`
	Namespace string              `json:"namespace"`
	Manifests *manifest.Manifests `json:"manifests"`
	Protect   bool                `json:"protect"`
}

type Store

type Store interface {
	Create(ctx context.Context, devkName, namespace string, r *Release) error
	Get(ctx context.Context, devkName, namespace string) (*Release, error)
	Delete(ctx context.Context, devkName, namespace string) error
	Update(ctx context.Context, devkName, namespace string, r *Release) error
	List(ctx context.Context, namespace string) ([]*Release, error)
}

Jump to

Keyboard shortcuts

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