compose

package
v2.2.9-ent-rc1+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WaitCondition is a set of function that can be customized to wait for a resource
	WaitCondition = map[string]func(baseClient *clientbase.APIBaseClient, id, schemaType string) error{}
)

Functions

func GetSchemas

func GetSchemas(token string, port int) (map[string]types.Schema, map[string]types.Schema, map[string]types.Schema, error)

func Register

func Register(ctx context.Context, managementContext *config.ManagementContext, portGetter common.KubeConfigGetter)

func WaitCluster

func WaitCluster(baseClient *clientbase.APIBaseClient, id, schemaType string) error

Types

type Lifecycle

type Lifecycle struct {
	TokenClient     v3.TokenInterface
	UserClient      v3.UserInterface
	UserManager     user.Manager
	HTTPSPortGetter common.KubeConfigGetter
	ComposeClient   v3.ComposeConfigInterface
}

Lifecycle for GlobalComposeConfig is a controller which watches composeConfig and execute the yaml config and create a bunch of global resources. There is no sync logic between yaml file and resources, which means config is only executed once. And resource is not deleted even if the compose config is deleted.

func (Lifecycle) Create

func (l Lifecycle) Create(obj *v3.ComposeConfig) (*v3.ComposeConfig, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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