{"modulePath":"github.com/UnityTech/client-go","version":"v11.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package deprecated_dynamic\n\nPackage dynamic provides a client interface to arbitrary Kubernetes APIs that exposes common high level operations and exposes common metadata.\n\n## Functions\n\n```go\nfunc ContentConfig() rest.ContentConfig\n```\nContentConfig returns a rest.ContentConfig for dynamic types. Deprecated only used by test code and its wrong\n\n```go\nfunc LegacyAPIPathResolverFunc(kind schema.GroupVersionKind) string\n```\nLegacyAPIPathResolverFunc can resolve paths properly with the legacy API.\n\n## Types\n\n```go\ntype APIPathResolverFunc func(kind schema.GroupVersionKind) string\n```\nAPIPathResolverFunc knows how to convert a groupVersion to its API path. The Kind field is optional.\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient is a Kubernetes client that allows you to access metadata and manipulate metadata of a Kubernetes API group, and implements Interface.\n\n```go\nfunc NewClient(conf *restclient.Config, version schema.GroupVersion) (*Client, error)\n```\nNewClient returns a new client based on the passed in config. The codec is ignored, as the dynamic client uses it's own codec.\n\n```go\nfunc (c *Client) Resource(resource *metav1.APIResource, namespace string) ResourceInterface\n```\nResource returns an API interface to the specified resource for this client's group and version. If resource is not a namespaced resource, then namespace is ignored. The ResourceInterface inherits the parameter codec of c.\n\n```go\ntype ClientPool interface {\n\t// ClientForGroupVersionResource returns a client configured for the specified groupVersionResource.\n\t// Resource may be empty.\n\tClientForGroupVersionResource(resource schema.GroupVersionResource) (Interface, error)\n\t// ClientForGroupVersionKind returns a client configured for the specified groupVersionKind.\n\t// Kind may be empty.\n\tClientForGroupVersionKind(kind schema.GroupVersionKind) (Interface, error)\n}\n```\nClientPool manages a pool of dynamic clients.\n\n```go\nfunc NewClientPool(config *restclient.Config, mapper meta.RESTMapper, apiPathResolverFunc APIPathResolverFunc) ClientPool\n```\nNewClientPool returns a ClientPool from the specified config. It reuses clients for the same group version. It is expected this type may be wrapped by specific logic that special cases certain resources or groups.\n\n```go\nfunc NewDynamicClientPool(cfg *restclient.Config) ClientPool\n```\nInstantiates a new dynamic client pool with the given config.\n\n```go\ntype Interface interface {\n\t// Resource returns an API interface to the specified resource for this client's\n\t// group and version.  If resource is not a namespaced resource, then namespace\n\t// is ignored.  The ResourceInterface inherits the parameter codec of this client.\n\tResource(resource *metav1.APIResource, namespace string) ResourceInterface\n}\n```\nInterface is a Kubernetes client that allows you to access metadata and manipulate metadata of a Kubernetes API group.\n\n```go\ntype ResourceInterface interface {\n\t// List returns a list of objects for this resource.\n\tList(opts metav1.ListOptions) (runtime.Object, error)\n\t// Get gets the resource with the specified name.\n\tGet(name string, opts metav1.GetOptions) (*unstructured.Unstructured, error)\n\t// Delete deletes the resource with the specified name.\n\tDelete(name string, opts *metav1.DeleteOptions) error\n\t// DeleteCollection deletes a collection of objects.\n\tDeleteCollection(deleteOptions *metav1.DeleteOptions, listOptions metav1.ListOptions) error\n\t// Create creates the provided resource.\n\tCreate(obj *unstructured.Unstructured) (*unstructured.Unstructured, error)\n\t// Update updates the provided resource.\n\tUpdate(obj *unstructured.Unstructured) (*unstructured.Unstructured, error)\n\t// Watch returns a watch.Interface that watches the resource.\n\tWatch(opts metav1.ListOptions) (watch.Interface, error)\n\t// Patch patches the provided resource.\n\tPatch(name string, pt types.PatchType, data []byte) (*unstructured.Unstructured, error)\n}\n```\nResourceInterface is an API interface to a specific resource under a dynamic client.\n\n","path":"github.com/UnityTech/client-go/deprecated-dynamic","name":"deprecated_dynamic","synopsis":"Package dynamic provides a client interface to arbitrary Kubernetes APIs that exposes common high level operations and exposes common metadata.","isRedistributable":true}
