resources

package
v4.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL