k8s

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func CreateDaemonSet

func CreateDaemonSet(as string, ds appsv1.DaemonSet) error

CreateDaemonSet 通过 API Server 地址创建 DaemonSet

func CreateDeployment

func CreateDeployment(as string, deploy appsv1.Deployment) error

CreateDeployment 通过 API Server 地址创建 Deployment

func CreateIngress

func CreateIngress(as string, ingress extensionsv1beta1.Ingress) error

CreateIngress 通过 API Server 地址创建 Ingress

func CreateService

func CreateService(as string, svc corev1.Service) error

CreateService 通过 API Server 地址创建 Service

func DeleteDaemonSet

func DeleteDaemonSet(as string, ds appsv1.DaemonSet) error

DeleteDaemonSet 通过 API Server 地址删除 DaemonSet

func DeleteDeployment

func DeleteDeployment(as string, deploy appsv1.Deployment) error

DeleteDeployment 通过 API Server 地址删除 Deployment

func DeleteIngress

func DeleteIngress(as string, ingress extensionsv1beta1.Ingress) error

DeleteIngress 通过 API Server 地址删除 Ingress

func DeleteService

func DeleteService(as string, svc corev1.Service) error

DeleteService 通过 API Server 地址删除 Service

func ReadDaemonSet

func ReadDaemonSet(as, namespace, name string) (ds appsv1.DaemonSet, err error)

ReadDaemonSet 通过 API Server 地址获取 DaemonSet

func ReadDeployment

func ReadDeployment(as, namespace, name string) (deploy appsv1.Deployment, err error)

ReadDeployment 通过 API Server 地址获取 Deployment

func ReadIngress

func ReadIngress(as, namespace, name string) (ingress extensionsv1beta1.Ingress, err error)

ReadIngress 通过 API Server 地址获取 Ingress

func ReadService

func ReadService(as, namespace, name string) (svc corev1.Service, err error)

ReadService 通过 API Server 地址获取 Service

func ReplaceDaemonSet

func ReplaceDaemonSet(as string, ds appsv1.DaemonSet) error

ReplaceDaemonSet 通过 API Server 地址创建 DaemonSet

func ReplaceDeployment

func ReplaceDeployment(as string, deploy appsv1.Deployment) error

ReplaceDeployment 通过 API Server 地址创建 Deployment

func ReplaceIngress

func ReplaceIngress(as string, ingress extensionsv1beta1.Ingress) error

ReplaceIngress 通过 API Server 地址创建 Ingress

func ReplaceOrCreateDaemonSet

func ReplaceOrCreateDaemonSet(as string, ds appsv1.DaemonSet) error

ReplaceOrCreateDaemonSet 通过 API Server 地址创建 DaemonSet

func ReplaceOrCreateDeployment

func ReplaceOrCreateDeployment(as string, deploy appsv1.Deployment) error

ReplaceOrCreateDeployment 通过 API Server 地址创建 Deployment

func ReplaceOrCreateIngress

func ReplaceOrCreateIngress(as string, ingress extensionsv1beta1.Ingress) error

ReplaceOrCreateIngress 通过 API Server 地址创建 Ingress

func ReplaceOrCreateService

func ReplaceOrCreateService(as string, svc corev1.Service) error

ReplaceOrCreateService 通过 API Server 地址创建 Service

func ReplaceService

func ReplaceService(as string, svc corev1.Service) error

ReplaceService 通过 API Server 地址创建 Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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