api

package
v0.0.0-...-54350d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientSet

func GetClientSet() *kubernetes.Clientset

Types

type Dep

type Dep struct {
	DeploymentClient v1.DeploymentInterface
}

func (Dep) CreateDelployment

func (d Dep) CreateDelployment()

func (Dep) DeleteDeployment

func (d Dep) DeleteDeployment()

func (Dep) GetDeployment

func (d Dep) GetDeployment()

func (Dep) UpdateDeployment

func (d Dep) UpdateDeployment()

type Resource

type Resource struct {
	//holds on the file path of the wanted api object
	FilePath string
	// type of the api obeject like depl,statefulset,etc
	Kind appsv1.Deployment
	// such as depl client, statefulset client
	Clientset v1.DeploymentInterface
}

func (Resource) Create

func (r Resource) Create()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL