k8s_service

package
v0.0.0-...-ae1ecbe Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	NameSpaceName  string
	DeploymentName string
	Replica        int32
	Image          string
}

分层代码,一般将前端所传的参数申明成在一个结构体内

func (*Deployment) DeployM

func (d *Deployment) DeployM() error

func (*Deployment) ExistByDeployment

func (d *Deployment) ExistByDeployment() (bool bool, err error)

func (*Deployment) ExistByNameSpace

func (d *Deployment) ExistByNameSpace() (bool, error)

func (*Deployment) GetDeployment

func (d *Deployment) GetDeployment() (*appv1.Deployment, error)

func (*Deployment) GetDeploymentsAll

func (d *Deployment) GetDeploymentsAll() (data []string, err error)

func (*Deployment) GetDeploymentsAllCount

func (d *Deployment) GetDeploymentsAllCount() (data int, err error)

func (*Deployment) GetNameSpace

func (d *Deployment) GetNameSpace() (*apiv1.Namespace, error)

func (*Deployment) GetNameSpaces

func (d *Deployment) GetNameSpaces() (data []string, err error)

func (*Deployment) GetNameSpacesCount

func (d *Deployment) GetNameSpacesCount() (data int32, err error)

Jump to

Keyboard shortcuts

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