Documentation ¶
Index ¶
- Constants
- func NewStackComposeFileRest(storev1beta1 stackRESTStore) rest.Storage
- func NewStackLogRest(config *restclient.Config) rest.Storage
- func NewStackOwnerRest(store stackRESTGet, version APIVersion) rest.Storage
- func NewStackScaleRest(store stackRESTStore, config *restclient.Config) rest.Storage
- func ValidateCollisions(coreClient corev1.ServicesGetter, appsClient appsv1beta2.AppsV1beta2Interface, ...) field.ErrorList
- func ValidateDryRun(stack *iv.Stack) field.ErrorList
- func ValidateObjectNames(stack *iv.Stack) field.ErrorList
- type APIVersion
- type StackREST
- func (s *StackREST) CreateStack(ctx context.Context, newStack *iv.Stack, ...) (*iv.Stack, error)
- func (s *StackREST) GetStack(ctx context.Context, name string, options *metav1.GetOptions) (*iv.Stack, error)
- func (s *StackREST) UpdateStack(ctx context.Context, name string, transform StackTransform, ...) (*iv.Stack, bool, error)
- type StackTransform
Constants ¶
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 ¶
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 ¶
ValidateDryRun validates that conversion to k8s objects works well
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