Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultObjectActions = []ObjectAction{ &CreateOrUpdateObjectAction{}, &CreateIfNotExistObjectAction{}, &DeleteIfExistsObjectAction{}, } )
Functions ¶
This section is empty.
Types ¶
type CreateIfNotExistObjectAction ¶
type CreateIfNotExistObjectAction struct{}
func (*CreateIfNotExistObjectAction) Execute ¶
func (a *CreateIfNotExistObjectAction) Execute(ctx context.Context, rc *client.ResourceClient, unstructured *unstructured.Unstructured) error
func (*CreateIfNotExistObjectAction) Name ¶
func (a *CreateIfNotExistObjectAction) Name() string
type CreateOrUpdateObjectAction ¶
type CreateOrUpdateObjectAction struct{}
func (*CreateOrUpdateObjectAction) Execute ¶
func (a *CreateOrUpdateObjectAction) Execute(ctx context.Context, rc *client.ResourceClient, unstructured *unstructured.Unstructured) error
func (*CreateOrUpdateObjectAction) Name ¶
func (a *CreateOrUpdateObjectAction) Name() string
type DeleteIfExistsObjectAction ¶
type DeleteIfExistsObjectAction struct{}
func (*DeleteIfExistsObjectAction) Execute ¶
func (a *DeleteIfExistsObjectAction) Execute(ctx context.Context, rc *client.ResourceClient, unstructured *unstructured.Unstructured) error
func (*DeleteIfExistsObjectAction) Name ¶
func (a *DeleteIfExistsObjectAction) Name() string
type ObjectAction ¶
type ObjectAction interface { Execute(context.Context, *client.ResourceClient, *unstructured.Unstructured) error Name() string }
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) SetObjectActions ¶
func (r *Runner) SetObjectActions(actions []ObjectAction)
Click to show internal directories.
Click to hide internal directories.