docker

package
v0.0.0-...-64df793 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleErrorAndRemoveData

func HandleErrorAndRemoveData(h *SidecarHandler, w http.ResponseWriter, s string, err error, podNamespace string, podUID string)

Types

type CreateStruct

type CreateStruct struct {
	PodUID string `json:"PodUID"`
	PodJID string `json:"PodJID"`
}

type DockerRunStruct

type DockerRunStruct struct {
	Name            string `json:"name"`
	Command         string `json:"command"`
	IsInitContainer bool   `json:"isInitContainer"`
	GpuArgs         string `json:"gpuArgs"`
	FpgaArgs        string `json:"fpgaArgs"`
}

type SidecarHandler

func (*SidecarHandler) CreateHandler

func (h *SidecarHandler) CreateHandler(w http.ResponseWriter, r *http.Request)

func (*SidecarHandler) DeleteHandler

func (h *SidecarHandler) DeleteHandler(w http.ResponseWriter, r *http.Request)

DeleteHandler stops and deletes Docker containers from provided data

func (*SidecarHandler) GetLogsHandler

func (h *SidecarHandler) GetLogsHandler(w http.ResponseWriter, r *http.Request)

GetLogsHandler performs a Docker logs command and returns its manipulated output

func (*SidecarHandler) StatusHandler

func (h *SidecarHandler) StatusHandler(w http.ResponseWriter, r *http.Request)

StatusHandler checks Docker Container's status by running docker ps -af command and returns that status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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