Documentation ¶
Index ¶
- func CreateDeployment(config *servconf.ServerConfig, deployment *appsv1.Deployment) error
- func CreateNodeport(config *servconf.ServerConfig) error
- func CreatePersistentVolumeClaim(config *servconf.ServerConfig) error
- func DeleteDeployment(config *servconf.ServerConfig) error
- func DeleteNodeport(config *servconf.ServerConfig) error
- func DeletePersistentVolumeClaim(config *servconf.ServerConfig) error
- func GetDeployment(config *servconf.ServerConfig) (*appsv1.Deployment, error)
- func GetExternalPort(config *servconf.ServerConfig) (int32, error)
- func GetNodeIP(config *servconf.ServerConfig) string
- func GetPod(config *servconf.ServerConfig) *apiv1.Pod
- func ListUserDeployments(config *servconf.ServerConfig) (*appsv1.DeploymentList, error)
- func ShellPrompt(config *servconf.ServerConfig, stdin io.Reader, stdout io.Writer) error
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.