app

package
v2.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 20 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

func IsNotDeleted(err error) bool

IsNotDeleted asserts notDeletedError.

Types

type AppSpec

type AppSpec struct {
	App                    string
	AppOperatorVersion     string
	AppName                string
	Catalog                string
	ConfigMapName          string
	ConfigMapNamespace     string
	InCluster              bool
	HasClusterValuesSecret bool
	SecretName             string
	SecretNamespace        string
	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

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

func (Resource) EnsureDeleted

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