Documentation ¶
Index ¶
- func ApplyOne(ctx context.Context, c client.Client, obj manifest.Object, dryRun bool) error
- func AutoMergePath(gvk schema.GroupVersionKind, live client.Object) client.Patch
- func ResolveKubeConfig(contextName string) (*rest.Config, error)
- type KubeClient
- func (c *KubeClient) AllListableGroupVersionKinds() (gvks []schema.GroupVersionKind, err error)
- func (c *KubeClient) ApplyResources(ctx context.Context, list manifest.List) error
- func (c *KubeClient) DeleteResources(ctx context.Context, list manifest.List) error
- func (c *KubeClient) Diff(ctx context.Context, objs []manifest.Object) ([]byte, error)
- func (c *KubeClient) Info() string
- func (c *KubeClient) ListAll(ctx context.Context, groupVersionKinds []schema.GroupVersionKind, ...) (l manifest.List, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMergePath ¶
Types ¶
type KubeClient ¶
func NewClient ¶
func NewClient() (*KubeClient, error)
func NewClientForContext ¶
func NewClientForContext(contextName string) (*KubeClient, error)
func (*KubeClient) AllListableGroupVersionKinds ¶
func (c *KubeClient) AllListableGroupVersionKinds() (gvks []schema.GroupVersionKind, err error)
func (*KubeClient) ApplyResources ¶
func (*KubeClient) DeleteResources ¶
func (*KubeClient) Info ¶
func (c *KubeClient) Info() string
func (*KubeClient) ListAll ¶
func (c *KubeClient) ListAll(ctx context.Context, groupVersionKinds []schema.GroupVersionKind, listOptions ...client.ListOption) (l manifest.List, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.