app

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the identifier of the resource.
	Name = "app"
)

Variables

This section is empty.

Functions

func IsInvalidConfigError

func IsInvalidConfigError(err error) bool

IsInvalidConfigError asserts invalidConfigError.

func IsNotDeleted added in v1.2.0

func IsNotDeleted(err error) bool

IsNotDeleted asserts notDeletedError.

Types

type AppSpec added in v1.2.0

type AppSpec struct {
	App                    string
	AppOperatorVersion     string
	AppName                string
	Catalog                string
	ConfigMapName          string
	ConfigMapNamespace     string
	InCluster              bool
	HasClusterValuesSecret bool
	TargetNamespace        string
	UseUpgradeForce        bool
	Version                string
}

AppSpec is used to define app custom resources.

type Config

type Config struct {
	CtrlClient client.Client
	Logger     micrologger.Logger

	AppOperatorCatalog   string
	AppOperatorVersion   string
	ChartOperatorCatalog string
	ChartOperatorVersion string
}

Config represents the configuration used to create a new app resource.

type Resource

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

Resource implements the app resource.

func New

func New(config Config) (*Resource, error)

New creates a new configured app state getter resource managing app CRs.

https://pkg.go.dev/github.com/giantswarm/resource/v2/appresource#StateGetter

func (Resource) EnsureCreated added in v1.2.0

func (r Resource) EnsureCreated(ctx context.Context, obj interface{}) error

func (Resource) EnsureDeleted added in v1.2.0

func (r Resource) EnsureDeleted(ctx context.Context, obj interface{}) error

func (*Resource) Name

func (r *Resource) Name() string

Jump to

Keyboard shortcuts

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