releaseversion

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 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.
	AppVersion(ctx context.Context, obj interface{}) (map[string]string, error)
	// ComponentVersion provides the version of each component in a release.
	ComponentVersion(ctx context.Context, obj interface{}) (map[string]string, error)
}

type ReleaseVersion

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

func New

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

func (*ReleaseVersion) AppVersion

func (rv *ReleaseVersion) AppVersion(ctx context.Context, obj interface{}) (map[string]string, 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