app

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "app"
)

Variables

This section is empty.

Functions

func IsInvalidConfigError

func IsInvalidConfigError(err error) bool

IsInvalidConfigError asserts invalidConfigError.

func IsNotFound added in v0.23.15

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Config

type Config struct {
	ClusterClient            *clusterclient.Client
	G8sClient                versioned.Interface
	GetClusterConfigFunc     func(obj interface{}) (v1alpha1.ClusterGuestConfig, error)
	GetClusterObjectMetaFunc func(obj interface{}) (metav1.ObjectMeta, error)
	K8sClient                kubernetes.Interface
	Logger                   micrologger.Logger

	Provider             string
	RawAppDefaultConfig  string
	RawAppOverrideConfig string
}

Config represents the configuration used to create a new chartconfig service.

type Index added in v0.23.21

type Index struct {
	Entries map[string][]IndexEntry `json:"entries"`
}

type IndexEntry added in v0.23.21

type IndexEntry struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type Resource

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

Resource provides shared functionality for managing chartconfigs.

func New

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

New creates a new chartconfig service.

func (*Resource) GetCurrentState

func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) ([]*v1alpha1.App, error)

func (*Resource) GetDesiredState

func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) ([]*g8sv1alpha1.App, 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