internalversion

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// StorageSchemeGroupVersion is the group version for storage
	StorageSchemeGroupVersion = schema.GroupVersion{Group: groupName, Version: "storage"}

	// InternalSchemeGroupVersion is group version used to register these objects
	InternalSchemeGroupVersion = schema.GroupVersion{Group: groupName, Version: runtime.APIVersionInternal}
)

Functions

func AddInternalToScheme

func AddInternalToScheme(scheme *runtime.Scheme) error

AddInternalToScheme adds the list of known types to api.Scheme.

func AddStorageToScheme

func AddStorageToScheme(scheme *runtime.Scheme) error

AddStorageToScheme adds the list of known types to api.Scheme.

Types

type Owner

type Owner struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Owner impersonation.Config
}

Owner is the user who created the stack

type Stack

type Stack struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   StackSpec    `json:"spec,omitempty"`
	Status *StackStatus `json:"status,omitempty"`
}

Stack is the internal representation of a compose stack

func (*Stack) DeepCopyObject

func (s *Stack) DeepCopyObject() runtime.Object

DeepCopyObject clones the stack

type StackList

type StackList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Stack
}

StackList is a list of stacks

func (*StackList) DeepCopyObject

func (s *StackList) DeepCopyObject() runtime.Object

DeepCopyObject clones the stack list

type StackPhase

type StackPhase string

StackPhase is the current status phase.

const (
	// StackAvailable means the stack is available.
	StackAvailable StackPhase = "Available"
	// StackProgressing means the deployment is progressing.
	StackProgressing StackPhase = "Progressing"
	// StackFailure is added in a stack when one of its members fails to be created
	// or deleted.
	StackFailure StackPhase = "Failure"
	// StackReconciliationPending means the stack has not yet been reconciled
	StackReconciliationPending StackPhase = "ReconciliationPending"
)

These are valid conditions of a stack.

type StackSpec

type StackSpec struct {
	ComposeFile string               `json:"composeFile,omitempty"`
	Stack       *latest.StackSpec    `json:"stack,omitempty"`
	Owner       impersonation.Config `json:"owner,omitempty"`
}

StackSpec is the Spec field of a Stack

type StackStatus

type StackStatus struct {
	Phase   StackPhase
	Message string
}

StackStatus is the current status of a stack

Jump to

Keyboard shortcuts

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