Documentation ¶
Overview ¶
Package component defines all component-specific actions, which get generated by the policy diff when component changes occur for specific component instances. Component-specific action is supposed to handle a certain change for a given component instance (e.g. create, update, delete, attach dependency, remove dependency, etc).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AttachDependencyActionObject = &runtime.Info{ Kind: "action-component-dependency-attach", Constructor: func() runtime.Object { return &AttachDependencyAction{} }, }
AttachDependencyActionObject is an informational data structure with Kind and Constructor for the action
var CreateActionObject = &runtime.Info{ Kind: "action-component-create", Constructor: func() runtime.Object { return &CreateAction{} }, }
CreateActionObject is an informational data structure with Kind and Constructor for the action
var DeleteActionObject = &runtime.Info{ Kind: "action-component-delete", Constructor: func() runtime.Object { return &DeleteAction{} }, }
DeleteActionObject is an informational data structure with Kind and Constructor for the action
var DetachDependencyActionObject = &runtime.Info{ Kind: "action-component-dependency-detach", Constructor: func() runtime.Object { return &DetachDependencyAction{} }, }
DetachDependencyActionObject is an informational data structure with Kind and Constructor for the action
var EndpointsActionObject = &runtime.Info{ Kind: "action-component-endpoints", Constructor: func() runtime.Object { return &EndpointsAction{} }, }
EndpointsActionObject is an informational data structure with Kind and Constructor for the action
var UpdateActionObject = &runtime.Info{ Kind: "action-component-update", Constructor: func() runtime.Object { return &DeleteAction{} }, }
UpdateActionObject is an informational data structure with Kind and Constructor for the action
Functions ¶
This section is empty.
Types ¶
type AttachDependencyAction ¶
type AttachDependencyAction struct { runtime.TypeKind `yaml:",inline"` *action.Metadata ComponentKey string DependencyID string }
AttachDependencyAction is a action which gets called when a consumer is added to an existing component
func NewAttachDependencyAction ¶
func NewAttachDependencyAction(componentKey string, dependencyID string) *AttachDependencyAction
NewAttachDependencyAction creates new AttachDependencyAction
type CreateAction ¶
CreateAction is a action which gets called when a new component needs to be instantiated (i.e. new instance of code to be deployed to the cloud)
func NewCreateAction ¶
func NewCreateAction(componentKey string) *CreateAction
NewCreateAction creates new CreateAction
type DeleteAction ¶
DeleteAction is a action which gets called when an existing component needs to be destroyed (i.e. existing instance of code needs to be terminated in the cloud)
func NewDeleteAction ¶
func NewDeleteAction(componentKey string) *DeleteAction
NewDeleteAction creates new DeleteAction
type DetachDependencyAction ¶
type DetachDependencyAction struct { runtime.TypeKind `yaml:",inline"` *action.Metadata ComponentKey string DependencyID string }
DetachDependencyAction is a action which gets called when a consumer is removed from an existing component
func NewDetachDependencyAction ¶
func NewDetachDependencyAction(componentKey string, dependencyID string) *DetachDependencyAction
NewDetachDependencyAction creates new DetachDependencyAction
type EndpointsAction ¶
type EndpointsAction struct { runtime.TypeKind `yaml:",inline"` *action.Metadata ComponentKey string }
EndpointsAction is a action which gets called when a new component changed (created or updated) and endpoints should be updated
func NewEndpointsAction ¶
func NewEndpointsAction(componentKey string) *EndpointsAction
NewEndpointsAction creates new EndpointsAction
type UpdateAction ¶
UpdateAction is a action which gets called when an existing component needs to be updated (i.e. parameters of a running code instance need to be changed in the cloud)
func NewUpdateAction ¶
func NewUpdateAction(componentKey string) *UpdateAction
NewUpdateAction creates new UpdateAction