Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster interface { CreateDeployment(deploymentData deploymentconfig.DeploymentConfig) (name string, err error) FindPodIP(deploymentName string) (string, error) DeleteDeployment(deploymentName string) error }
Cluster interface provides common function for work and testing with k8s cluster
type FakeKubernetes ¶
FakeKubernetes is rub for k8s client
func (FakeKubernetes) CreateDeployment ¶
func (k FakeKubernetes) CreateDeployment(deploymentData deploymentconfig.DeploymentConfig) (name string, err error)
CreateDeployment creates deployment
func (FakeKubernetes) DeleteDeployment ¶
func (k FakeKubernetes) DeleteDeployment(deploymentName string) error
DeleteDeployment deletes deployment
type Kubernetes ¶
Kubernetes helps to access k8s cluster methods
func (*Kubernetes) CreateClient ¶
func (k *Kubernetes) CreateClient() error
CreateClient creayes k8s client
func (*Kubernetes) CreateDeployment ¶
func (k *Kubernetes) CreateDeployment(deploymentData deploymentconfig.DeploymentConfig) (name string, err error)
CreateDeployment creates deployment
func (*Kubernetes) DeleteDeployment ¶
func (k *Kubernetes) DeleteDeployment(deploymentName string) error
DeleteDeployment deletes deployment
Click to show internal directories.
Click to hide internal directories.