release

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidProvider

func IsInvalidProvider(err error) bool

IsInvalidProvider asserts invalidProviderError.

func IsNoMatch

func IsNoMatch(err error) bool

IsNoMatch asserts noMatchError.

func IsNoResources

func IsNoResources(err error) bool

IsNoResources asserts noResourcesError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Config

type Config struct {
	Client *client.Client
}

type GetOptions

type GetOptions struct {
	Name       string
	ActiveOnly bool
	Provider   string
	Namespace  string
}

type Interface

type Interface interface {
	Get(context.Context, GetOptions) (Resource, error)
}

func New

func New(config Config) (Interface, error)

type Release

type Release struct {
	CR *releasev1alpha1.Release
}

Release abstracts away the custom resource so it can be returned as a runtime object or a typed custom resource.

func (*Release) Object

func (r *Release) Object() runtime.Object

type ReleaseCollection

type ReleaseCollection struct {
	Items []Release
}

ReleaseCollections wraps a list of releases.

func (*ReleaseCollection) Object

func (cc *ReleaseCollection) Object() runtime.Object

type Resource

type Resource interface {
	Object() runtime.Object
}

type Service

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

func (*Service) Get

func (s *Service) Get(ctx context.Context, options GetOptions) (Resource, error)

Jump to

Keyboard shortcuts

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