releaseversion

package
v4.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 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]ReleaseComponent, error)
}

type ReleaseApp

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

type ReleaseComponent

type ReleaseComponent struct {
	// Catalog of the component.
	Catalog string `json:"catalog"`
	// Version of the component in the catalog.
	Reference string `json:"reference"`
	// Version of the component.
	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

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]ReleaseComponent, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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