package dynamic
import "k8s.io/client-go/dynamic"
Index ¶
- func ConfigFor(inConfig *rest.Config) *rest.Config
- func LegacyAPIPathResolverFunc(kind schema.GroupVersionKind) string
- type APIPathResolverFunc
- type DynamicClient
- func New(c rest.Interface) *DynamicClient
- func NewForConfig(inConfig *rest.Config) (*DynamicClient, error)
- func NewForConfigAndClient(inConfig *rest.Config, h *http.Client) (*DynamicClient, error)
- func NewForConfigOrDie(c *rest.Config) *DynamicClient
- func (c *DynamicClient) Resource(resource schema.GroupVersionResource) NamespaceableResourceInterface
- type Interface
- type NamespaceableResourceInterface
- type ResourceInterface
Functions ¶
func ConfigFor ¶
ConfigFor returns a copy of the provided config with the appropriate dynamic client defaults set.
func LegacyAPIPathResolverFunc ¶
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
Types ¶
type APIPathResolverFunc ¶
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 DynamicClient ¶
type DynamicClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(c rest.Interface) *DynamicClient
New creates a new DynamicClient for the given RESTClient.
func NewForConfig ¶
func NewForConfig(inConfig *rest.Config) (*DynamicClient, error)
NewForConfig creates a new dynamic client or returns an error. NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), where httpClient was generated with rest.HTTPClientFor(c).
func NewForConfigAndClient ¶
NewForConfigAndClient creates a new dynamic client for the given config and http client. Note the http client provided takes precedence over the configured transport values.
func NewForConfigOrDie ¶
func NewForConfigOrDie(c *rest.Config) *DynamicClient
NewForConfigOrDie creates a new DynamicClient for the given config and panics if there is an error in the config.
func (*DynamicClient) Resource ¶
func (c *DynamicClient) Resource(resource schema.GroupVersionResource) NamespaceableResourceInterface
type Interface ¶
type Interface interface { Resource(resource schema.GroupVersionResource) NamespaceableResourceInterface }
type NamespaceableResourceInterface ¶
type NamespaceableResourceInterface interface { Namespace(string) ResourceInterface ResourceInterface }
type ResourceInterface ¶
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) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions, subresources ...string) (*unstructured.Unstructured, error) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions) (*unstructured.Unstructured, error) }
Source Files ¶
interface.go scheme.go simple.go
Directories ¶
Path | Synopsis |
---|---|
dynamic/dynamicinformer | |
dynamic/dynamiclister | |
dynamic/fake |
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 19 packages
- Last checked
- 36 minutes ago –
Tools for package owners.