Documentation ¶
Index ¶
- func NewClientConfig(configPath string, contextName string) clientcmd.ClientConfig
- func WriteKubeconfig(config clientcmdapi.Config, filename string) error
- type CreateOptions
- type DeleteOptions
- type ExecClient
- type ExecOptions
- type GetOptions
- type ListOptions
- type PatchOptions
- type PortForwardClient
- type PortForwardOptions
- type UnstructuredClient
- func (u *UnstructuredClient) Apply(ctx context.Context, obj *unstructured.Unstructured, opts PatchOptions) (*unstructured.Unstructured, error)
- func (u *UnstructuredClient) Create(ctx context.Context, obj *unstructured.Unstructured, opts metav1.CreateOptions) (*unstructured.Unstructured, error)
- func (u *UnstructuredClient) Delete(ctx context.Context, obj *unstructured.Unstructured, opts metav1.DeleteOptions) error
- func (u *UnstructuredClient) Get(ctx context.Context, obj *unstructured.Unstructured, opts metav1.GetOptions) (*unstructured.Unstructured, error)
- func (u *UnstructuredClient) List(ctx context.Context, gvk schema.GroupVersionKind, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
- func (u *UnstructuredClient) Update(ctx context.Context, obj *unstructured.Unstructured, opts metav1.UpdateOptions) (*unstructured.Unstructured, error)
- func (u *UnstructuredClient) Watch(ctx context.Context, gvk schema.GroupVersionKind, opts ListOptions) (watch.Interface, error)
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientConfig ¶
func NewClientConfig(configPath string, contextName string) clientcmd.ClientConfig
func WriteKubeconfig ¶
func WriteKubeconfig(config clientcmdapi.Config, filename string) error
Types ¶
type CreateOptions ¶
type CreateOptions = metav1.CreateOptions
type DeleteOptions ¶
type DeleteOptions = metav1.DeleteOptions
type ExecClient ¶
type ExecClient struct {
// contains filtered or unexported fields
}
func NewExecClient ¶
func NewExecClient(restConfig *rest.Config) *ExecClient
func (*ExecClient) Exec ¶
func (c *ExecClient) Exec(ctx context.Context, pod *corev1.Pod, opts ExecOptions) error
type ExecOptions ¶
type GetOptions ¶
type GetOptions = metav1.GetOptions
type ListOptions ¶
type ListOptions = metav1.ListOptions
type PatchOptions ¶
type PatchOptions = metav1.PatchOptions
type PortForwardClient ¶
type PortForwardClient struct {
// contains filtered or unexported fields
}
func NewPortForwardClient ¶
func NewPortForwardClient(restConfig *rest.Config) *PortForwardClient
func (*PortForwardClient) PortForward ¶
func (c *PortForwardClient) PortForward(ctx context.Context, pod *corev1.Pod, opts PortForwardOptions) error
type PortForwardOptions ¶
type UnstructuredClient ¶
type UnstructuredClient struct {
// contains filtered or unexported fields
}
func NewUnstructuredClient ¶
func NewUnstructuredClient(restConfig *rest.Config) *UnstructuredClient
func (*UnstructuredClient) Apply ¶
func (u *UnstructuredClient) Apply(ctx context.Context, obj *unstructured.Unstructured, opts PatchOptions) (*unstructured.Unstructured, error)
func (*UnstructuredClient) Create ¶
func (u *UnstructuredClient) Create(ctx context.Context, obj *unstructured.Unstructured, opts metav1.CreateOptions) (*unstructured.Unstructured, error)
func (*UnstructuredClient) Delete ¶
func (u *UnstructuredClient) Delete(ctx context.Context, obj *unstructured.Unstructured, opts metav1.DeleteOptions) error
func (*UnstructuredClient) Get ¶
func (u *UnstructuredClient) Get(ctx context.Context, obj *unstructured.Unstructured, opts metav1.GetOptions) (*unstructured.Unstructured, error)
func (*UnstructuredClient) List ¶
func (u *UnstructuredClient) List(ctx context.Context, gvk schema.GroupVersionKind, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
func (*UnstructuredClient) Update ¶
func (u *UnstructuredClient) Update(ctx context.Context, obj *unstructured.Unstructured, opts metav1.UpdateOptions) (*unstructured.Unstructured, error)
func (*UnstructuredClient) Watch ¶
func (u *UnstructuredClient) Watch(ctx context.Context, gvk schema.GroupVersionKind, opts ListOptions) (watch.Interface, error)
type UpdateOptions ¶
type UpdateOptions = metav1.UpdateOptions
Click to show internal directories.
Click to hide internal directories.