deployment

package
v0.0.0-...-072ee57 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTime

func AddTime(c *fiber.Ctx, userid int, level int) (bool, string, int64)

func BuildImage

func BuildImage(instance_name string, flag string, level int, password string) error

func CatchError

func CatchError(rd io.Reader) error

Taken from https://github.com/Atish03/podwiz

func DeleteImage

func DeleteImage(imageIDs []string) error

func DeleteInstance

func DeleteInstance(c *fiber.Ctx, userid int, level int) error

func DeployInstance

func DeployInstance(c *fiber.Ctx, userid int, level int) (int64, string, int32, string, error)

func GetClient

func GetClient() (*client.Client, error)

func GetKubeClient

func GetKubeClient() (*kubernetes.Clientset, error)

func GetParsedDockerfile

func GetParsedDockerfile(level int, flag string, password string, username string) (*bytes.Reader, error)

func ImageExists

func ImageExists(image string) ([]string, bool, error)

func UpdateDeadline

func UpdateDeadline(kubeclient *kubernetes.Clientset, instance_name string, deadline int64) error

Types

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

Jump to

Keyboard shortcuts

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