Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceStorage ¶
type ResourceStorage interface {
// GVK returns the GroupVersionKind of the resource
GVK() schema.GroupVersionKind
// GVRs returns all GroupVersionResources of the resource (including subresources)
// For example: tasks and tasks/status
GVRs() []schema.GroupVersionResource
// Storage returns the REST storage for the given GVR
// Main resource and subresource may use different storage implementations
Storage(gvr schema.GroupVersionResource) apirest.Storage
// IsAlwaysLocal returns true if the resource should always use local storage
// Task resources are always locally stored because they are running data
IsAlwaysLocal() bool
}
ResourceStorage defines the storage and metadata interface for a REST resource. Each resource type (Task, Inventory, Playbook) must implement this interface.
Click to show internal directories.
Click to hide internal directories.