Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicClient ¶
type DynamicClient interface { // New returns a new Object of its kind New() runtime.Object // Get returns an Object matching the UID from the storage Get(runtime.UID) (runtime.Object, error) // Set saves an Object into the persistent storage Set(runtime.Object) error // Patch performs a strategic merge patch on the object with // the given UID, using the byte-encoded patch given Patch(runtime.UID, []byte) error // Find returns an Object based on the given filter, filters can // match e.g. the Object's Name, UID or a specific property Find(filter filterer.BaseFilter) (runtime.Object, error) // FindAll returns multiple Objects based on the given filter, filters can // match e.g. the Object's Name, UID or a specific property FindAll(filter filterer.BaseFilter) ([]runtime.Object, error) // Delete deletes an Object from the storage Delete(uid runtime.UID) error // List returns a list of all Objects available List() ([]runtime.Object, error) }
DynamicClient is an interface for accessing API types generically
func NewDynamicClient ¶
func NewDynamicClient(s storage.Storage, gvk schema.GroupVersionKind) DynamicClient
NewDynamicClient builds the dynamicClient struct using the storage implementation and a new Filterer
Click to show internal directories.
Click to hide internal directories.