releaseversion

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppOperator defines the name of the app operator in a release.
	AppOperator = "app-operator"
	// CertOperator defines the name of the certificate operator in a release.
	CertOperator = "cert-operator"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsTooManyCRsError

func IsTooManyCRsError(err error) bool

IsTooManyCRsError asserts tooManyCRsError.

Types

type Config

type Config struct {
	K8sClient k8sclient.Interface
}

type Interface

type Interface interface {
	// AppVersion provides the version of each app in a release.
	Apps(ctx context.Context, obj interface{}) (map[string]ReleaseApp, error)
	// ComponentVersion provides the version of each component in a release.
	ComponentVersion(ctx context.Context, obj interface{}) (map[string]string, error)
}

type ReleaseApp added in v3.4.0

type ReleaseApp struct {
	// Catalog of the app.
	Catalog string `json:"catalog"`
	// Version of the app.
	Version string `json:"version"`
}

type ReleaseVersion

type ReleaseVersion struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) (*ReleaseVersion, error)

func (*ReleaseVersion) Apps added in v3.4.0

func (rv *ReleaseVersion) Apps(ctx context.Context, obj interface{}) (map[string]ReleaseApp, error)

func (*ReleaseVersion) ComponentVersion

func (rv *ReleaseVersion) ComponentVersion(ctx context.Context, obj interface{}) (map[string]string, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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