Documentation ¶
Index ¶
- type DeploymentCreateOpts
- type DeploymentInfo
- type KubeClient
- func (client *KubeClient) Close() error
- func (client *KubeClient) DeploymentCreate(opts *DeploymentCreateOpts) error
- func (client *KubeClient) DeploymentDelete(namespace string, name string) error
- func (client *KubeClient) DeploymentList(namespace string) ([]DeploymentInfo, error)
- func (client *KubeClient) GetPodInfo(deployment *appsv1.Deployment) (*PodInfo, error)
- func (client *KubeClient) NamespaceApply(name string) error
- func (client *KubeClient) NamespaceDelete(name string) error
- func (client *KubeClient) PodExec(opts *PodExecOpts) error
- func (client *KubeClient) PodPortForward(opts *PodPortForwardOpts) error
- func (client *KubeClient) ServiceCreate(namespace string, spec *corev1.Service) error
- func (client *KubeClient) ServiceDelete(namespace string, name string) error
- type KubeClientConfig
- type KubeResource
- type PodExecOpts
- type PodInfo
- type PodPortForwardOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentCreateOpts ¶
type DeploymentCreateOpts struct { Namespace string Spec *appsv1.Deployment OnStatusEventCallback func(event string) }
type DeploymentInfo ¶
type KubeClient ¶
type KubeClient struct {
// contains filtered or unexported fields
}
func NewInClusterKubeClient ¶
func NewInClusterKubeClient() (*KubeClient, error)
func NewOutOfClusterKubeClient ¶
func NewOutOfClusterKubeClient(configPath string) (*KubeClient, error)
func (*KubeClient) Close ¶
func (client *KubeClient) Close() error
func (*KubeClient) DeploymentCreate ¶
func (client *KubeClient) DeploymentCreate(opts *DeploymentCreateOpts) error
func (*KubeClient) DeploymentDelete ¶
func (client *KubeClient) DeploymentDelete(namespace string, name string) error
func (*KubeClient) DeploymentList ¶
func (client *KubeClient) DeploymentList(namespace string) ([]DeploymentInfo, error)
func (*KubeClient) GetPodInfo ¶
func (client *KubeClient) GetPodInfo(deployment *appsv1.Deployment) (*PodInfo, error)
func (*KubeClient) NamespaceApply ¶
func (client *KubeClient) NamespaceApply(name string) error
func (*KubeClient) NamespaceDelete ¶
func (client *KubeClient) NamespaceDelete(name string) error
func (*KubeClient) PodExec ¶
func (client *KubeClient) PodExec(opts *PodExecOpts) error
func (*KubeClient) PodPortForward ¶
func (client *KubeClient) PodPortForward(opts *PodPortForwardOpts) error
func (*KubeClient) ServiceCreate ¶
func (client *KubeClient) ServiceCreate(namespace string, spec *corev1.Service) error
func (*KubeClient) ServiceDelete ¶
func (client *KubeClient) ServiceDelete(namespace string, name string) error
type KubeClientConfig ¶
type KubeClientConfig struct { ConfigPath string Namespace string Resource *KubeResource }
type KubeResource ¶
type PodExecOpts ¶
Click to show internal directories.
Click to hide internal directories.