Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManifestTask ¶
type ManifestTask struct { Name string CreateFunc func(manifest interface{}) error UpdateFunc func(manifest interface{}) error Manifest func() interface{} PatchData func() interface{} PatchFunc func(patchData []byte) error }
func (*ManifestTask) CreateOrUpdate ¶
func (task *ManifestTask) CreateOrUpdate() error
CreateOrUpdate tries to create resource with the CreateFunc. If resource is already exists, it updates the resource with the UpdateFunc.
func (*ManifestTask) Patch ¶
func (task *ManifestTask) Patch() error
func (*ManifestTask) PatchOrCreate ¶
func (task *ManifestTask) PatchOrCreate() error
Click to show internal directories.
Click to hide internal directories.