Documentation
¶
Overview ¶
Package task contains Tasks implementation that encapsulate actions against an api-server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyTask ¶
type ApplyTask struct {
DryRun bool
FieldManager string
RemoteGetter cache.RemoteResourceGetter
Objects []*unstructured.Unstructured
Filters []filter.Interface
InfoFetcher InfoFetcher
}
ApplyTask will apply the Objects to a remote api-server with the server-side config of kubectl
type InfoFetcher ¶
type InfoFetcher func(*unstructured.Unstructured) (*resource.Info, error)
InfoFetcher function for transforming a jpl Resources in a kubernetes resource Info object
func DefaultInfoFetcherBuilder ¶
func DefaultInfoFetcherBuilder(factory util.ClientFactory) (InfoFetcher, error)
type InventoryTask ¶
InventoryTask is used for updating an inventory with the current state saved in the Manager
func (*InventoryTask) Run ¶
func (t *InventoryTask) Run(state runner.State)
Run implement the runner.Task interface
type PruneTask ¶
type PruneTask struct {
DryRun bool
FieldManager string
Client dynamic.Interface
Mapper meta.RESTMapper
Objects []*unstructured.Unstructured
}
PruneTask is the task used for removing Objects from the remote server
type WaitTask ¶
type WaitTask struct {
Objects []*unstructured.Unstructured
Poller poller.StatusPoller
Mapper meta.RESTMapper
Manager *inventory.Manager
// contains filtered or unexported fields
}
WaitTask is the task used for removing Objects from the remote server
Click to show internal directories.
Click to hide internal directories.