k8s

package
v0.0.0-...-207fd04 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerSpec

type ContainerSpec struct {
	Args           []string
	Name           string
	ContainerImage string
}

type K8sHandler

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

func CreateK8sHandler

func CreateK8sHandler(namespace string) (*K8sHandler, error)

func (K8sHandler) ComposeDeployment

func (handler K8sHandler) ComposeDeployment(name string, containerImage string, cmdStr string, args []string, colonyID string, cores int, mem int, gpu int, runtimePrvKey string, coloniesServerHost string, coloniesServerPort string) string

func (K8sHandler) CreateDeployment

func (handler K8sHandler) CreateDeployment(yamlFile string) error

func (K8sHandler) DeleteDeployment

func (handler K8sHandler) DeleteDeployment(deploymentName string, force bool) error

func (K8sHandler) GetDeployments

func (handler K8sHandler) GetDeployments() ([]string, error)

Jump to

Keyboard shortcuts

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