utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GroupApp = new(SpecGroup)

Functions

This section is empty.

Types

type GvaK8sutils

type GvaK8sutils struct {
}

func (*GvaK8sutils) Deployment

func (GvaK8sutils *GvaK8sutils) Deployment(deployment GvaResponse.DeploymentSpec) *appsv1.Deployment

func (*GvaK8sutils) GetK8sClient

func (GvaK8sutils *GvaK8sutils) GetK8sClient(k8sConf string) (*kubernetes.Clientset, error)

获取k8s Clientset

func (*GvaK8sutils) GetRestConf

func (GvaK8sutils *GvaK8sutils) GetRestConf(k8sConf string) (restConf *rest.Config, err error)

获取k8s RESTConfig

func (*GvaK8sutils) Pod

func (GvaK8sutils *GvaK8sutils) Pod(k8sDeployments GvaResponse.DeploymentSpec) (list []corev1.Container)

func (*GvaK8sutils) Port

func (GvaK8sutils *GvaK8sutils) Port(k8sDeployments GvaResponse.DeploymentSpec, name string) (list []corev1.ContainerPort)

type SpecGroup

type SpecGroup struct {
	GvaK8sutils
}

Jump to

Keyboard shortcuts

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