k8s

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8s

type K8s struct {
	// contains filtered or unexported fields
}

func NewK8s

func NewK8s(namespace string, clientset *kubernetes.Clientset, logger func() *logrus.Entry) *K8s

func (*K8s) CreateDeployment

func (k *K8s) CreateDeployment(ctx context.Context, deployment *appsv1.Deployment, timeout time.Duration) error

func (*K8s) CreateIngress

func (k *K8s) CreateIngress(ctx context.Context, ingress *networkingv1.Ingress, timeout time.Duration) error

func (*K8s) CreateNamespace

func (k *K8s) CreateNamespace(ctx context.Context, ns *apiv1.Namespace) error

Createは本当はApplyにしたいんだけど、ApplyがないのでCreateで代用

func (*K8s) CreateService

func (k *K8s) CreateService(ctx context.Context, service *apiv1.Service) error

func (*K8s) DeleteDeployment

func (k *K8s) DeleteDeployment(deploymentName string) error

func (*K8s) DeleteIngress

func (k *K8s) DeleteIngress(ingressName string) error

func (*K8s) DeleteNamespace

func (k *K8s) DeleteNamespace() error

func (*K8s) DeleteService

func (k *K8s) DeleteService(serviceName string) error

Jump to

Keyboard shortcuts

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