commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDeployment

type CreateDeployment struct {
	Name           string
	Namespace      string
	NumReplicats   int32
	ContainerImage string
	ContainerTag   string
	ContainerPort  int32
	MemoryRequest  string
	CPURequest     string
	MemoryLimit    string
	CPULimit       string
	EnvVars        []apiv1.EnvVar
	Labels         map[string]string
	Clientset      *kubernetes.Clientset
	Logger         logrus.FieldLogger
}

CreateDeployment creates a deployment with a POD

func (*CreateDeployment) Execute

func (c *CreateDeployment) Execute() error

Execute run the command

type CreateIngressCommand

type CreateIngressCommand struct {
	Name        string
	Namespace   string
	Host        string
	Path        string
	ServicePort int
	IngressPath string
	Labels      map[string]string
	Annotations map[string]string
	Clientset   *kubernetes.Clientset
	Logger      logrus.FieldLogger
}

CreateIngressCommand creates an ingress for a service

func (*CreateIngressCommand) Execute

func (c *CreateIngressCommand) Execute() error

Execute run the command

type CreateNamespace

type CreateNamespace struct {
	Name      string
	Clientset *kubernetes.Clientset
	Logger    logrus.FieldLogger
}

CreateNamespace creates a namespace

func (*CreateNamespace) Execute

func (c *CreateNamespace) Execute() error

Execute run the command

type CreateService

type CreateService struct {
	Name        string
	Namespace   string
	ServicePort []apiv1.ServicePort
	ServiceType apiv1.ServiceType
	Labels      map[string]string
	Annotations map[string]string
	Clientset   *kubernetes.Clientset
	Logger      logrus.FieldLogger
}

CreateService creates an service for a POD

func (*CreateService) Execute

func (c *CreateService) Execute() error

Execute run the

type DeleteNamespace

type DeleteNamespace struct {
	Namespace string
	Clientset *kubernetes.Clientset
	Logger    logrus.FieldLogger
}

DeleteNamespace deletes the namespace

func (*DeleteNamespace) Execute

func (c *DeleteNamespace) Execute() error

Execute run the command

Jump to

Keyboard shortcuts

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