container_apis

package
v0.0.0-...-7c20d64 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImageArray []string

Functions

func ContainerCreate

func ContainerCreate(ctx context.Context, cli *client.Client, imageName string, username string) (string, string, int)

Create a new container

func ContainerRemove

func ContainerRemove(ctx context.Context, cli *client.Client, containerName string, username string) int

Stop the container

func ContainerStart

func ContainerStart(ctx context.Context, cli *client.Client, containerName string, username string) (string, string, int)

Start the container if already created

func ContainerStop

func ContainerStop(ctx context.Context, cli *client.Client, containerName string, username string) int

Stop the container

func ImageInfo

func ImageInfo(ctx context.Context, cli *client.Client) []string

Gives images available on the server (the information is available on "system_details" collection)

func MakeSSHKeyPair

func MakeSSHKeyPair() (string, string, int)

Creating private-public key pairs to be used by the client to ssh into registered container

func OwnedContainerInfo

func OwnedContainerInfo(ctx context.Context, username string) (map[string]string, int)

Gives information about the containers that user holds

Types

This section is empty.

Jump to

Keyboard shortcuts

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