resources

package
v0.0.0-...-086c857 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDeployment

func CreateDeployment(config *servconf.ServerConfig, deployment *appsv1.Deployment) error

func CreateNodeport

func CreateNodeport(config *servconf.ServerConfig) error

func CreatePersistentVolumeClaim

func CreatePersistentVolumeClaim(config *servconf.ServerConfig) error

Creates a PersistentVolumeClaim on the cluster in the default namespace, and with the given parameters

Size should be the number of bytes requested

func DeleteDeployment

func DeleteDeployment(config *servconf.ServerConfig) error

func DeleteNodeport

func DeleteNodeport(config *servconf.ServerConfig) error

func DeletePersistentVolumeClaim

func DeletePersistentVolumeClaim(config *servconf.ServerConfig) error

func GetDeployment

func GetDeployment(config *servconf.ServerConfig) (*appsv1.Deployment, error)

func GetExternalPort

func GetExternalPort(config *servconf.ServerConfig) (int32, error)

func GetNodeIP

func GetNodeIP(config *servconf.ServerConfig) string

Returns the IP address of the node currently running the server described in the ServerConfig

func GetPod

func GetPod(config *servconf.ServerConfig) *apiv1.Pod

Returns a Pod struct corresponding to the ServerConfig provided

func ListUserDeployments

func ListUserDeployments(config *servconf.ServerConfig) (*appsv1.DeploymentList, error)

func ShellPrompt

func ShellPrompt(config *servconf.ServerConfig, stdin io.Reader, stdout io.Writer) error

ShellPrompt takes a ServerConfig, an input stream, and an output stream. A bash shell is executed, and the io streams are attached to the process

Types

This section is empty.

Jump to

Keyboard shortcuts

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