registry

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIV1beta1 represents v1beta1 API level
	APIV1beta1 = APIVersion("v1beta1")
	// APIV1beta2 represents v1beta2 API level or later
	APIV1beta2 = APIVersion("v1beta2")
)

Variables

This section is empty.

Functions

func NewStackComposeFileRest

func NewStackComposeFileRest(storev1beta1 stackRESTStore) rest.Storage

NewStackComposeFileRest returns a rest storage for composefile subresource

func NewStackLogRest

func NewStackLogRest(config *restclient.Config) rest.Storage

NewStackLogRest returns a rest storage for log subresource

func NewStackOwnerRest

func NewStackOwnerRest(store stackRESTGet, version APIVersion) rest.Storage

NewStackOwnerRest returns a rest storage

func NewStackScaleRest

func NewStackScaleRest(store stackRESTStore, config *restclient.Config) rest.Storage

NewStackScaleRest returns a rest storage for scale subresource

func ValidateCollisions

func ValidateCollisions(coreClient corev1.ServicesGetter, appsClient appsv1beta2.AppsV1beta2Interface, stack *iv.Stack) field.ErrorList

ValidateCollisions against existing objects

func ValidateDryRun

func ValidateDryRun(stack *iv.Stack) field.ErrorList

ValidateDryRun validates that conversion to k8s objects works well

func ValidateObjectNames

func ValidateObjectNames(stack *iv.Stack) field.ErrorList

ValidateObjectNames validates object names

Types

type APIVersion

type APIVersion string

APIVersion describes an API level (has impact on canonicalization logic)

type StackREST

type StackREST struct {
	genericregistry.Store
}

StackREST is a storage for stack resource

func NewStackREST

func NewStackREST(version APIVersion, scheme rest.RESTDeleteStrategy, optsGetter generic.RESTOptionsGetter, config *restclient.Config) (*StackREST, error)

NewStackREST return a rest store

func (*StackREST) CreateStack

func (s *StackREST) CreateStack(ctx context.Context, newStack *iv.Stack, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (*iv.Stack, error)

CreateStack wraps the Create method in a more strictly typed way

func (*StackREST) GetStack

func (s *StackREST) GetStack(ctx context.Context, name string, options *metav1.GetOptions) (*iv.Stack, error)

GetStack wraps the Get method in a more strictly typed way

func (*StackREST) UpdateStack

func (s *StackREST) UpdateStack(ctx context.Context, name string, transform StackTransform,
	createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (*iv.Stack, bool, error)

UpdateStack wraps the Update method in a more strictly typed way

type StackTransform

type StackTransform func(ctx context.Context, newObj *iv.Stack, oldObj *iv.Stack) (transformedNewObj *iv.Stack, err error)

StackTransform is a transformation used in UpdateStack

Jump to

Keyboard shortcuts

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