client-go: Index | Files | Directories

package dynamic

import ""


Package Files

interface.go scheme.go simple.go

func ConfigFor Uses

func ConfigFor(inConfig *rest.Config) *rest.Config

ConfigFor returns a copy of the provided config with the appropriate dynamic client defaults set.

func LegacyAPIPathResolverFunc Uses

func LegacyAPIPathResolverFunc(kind schema.GroupVersionKind) string

LegacyAPIPathResolverFunc can resolve paths properly with the legacy API. TODO find a better place to move this for existing callers

type APIPathResolverFunc Uses

type APIPathResolverFunc func(kind schema.GroupVersionKind) string

APIPathResolverFunc knows how to convert a groupVersion to its API path. The Kind field is optional. TODO find a better place to move this for existing callers

type Interface Uses

type Interface interface {
    Resource(resource schema.GroupVersionResource) NamespaceableResourceInterface

func NewForConfig Uses

func NewForConfig(inConfig *rest.Config) (Interface, error)

NewForConfig creates a new dynamic client or returns an error.

func NewForConfigOrDie Uses

func NewForConfigOrDie(c *rest.Config) Interface

NewForConfigOrDie creates a new Interface for the given config and panics if there is an error in the config.

type NamespaceableResourceInterface Uses

type NamespaceableResourceInterface interface {
    Namespace(string) ResourceInterface

type ResourceInterface Uses

type ResourceInterface interface {
    Create(ctx context.Context, obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
    Update(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
    UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions) (*unstructured.Unstructured, error)
    Delete(ctx context.Context, name string, options metav1.DeleteOptions, subresources ...string) error
    DeleteCollection(ctx context.Context, options metav1.DeleteOptions, listOptions metav1.ListOptions) error
    Get(ctx context.Context, name string, options metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
    List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
    Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
    Patch(ctx context.Context, name string, pt types.PatchType, data []byte, options metav1.PatchOptions, subresources ...string) (*unstructured.Unstructured, error)



Package dynamic imports 12 packages (graph) and is imported by 1435 packages. Updated 2020-12-03. Refresh now. Tools for package owners.