docker

package
v0.0.0-...-15dca4e Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDAlphabet = "abcdef0123456789"
	IDLength   = 12
)

Variables

This section is empty.

Functions

func CloseStreams

func CloseStreams(streams ...interface{})

func HijackedResponse

func HijackedResponse(c *gin.Context, exitCode string, output ...string)

Types

type Server

type Server struct {
	PingHandler             func(c *gin.Context)
	ContainerInspectHandler func(c *gin.Context)
	ExecCreateHandler       func(c *gin.Context)
	ExecStartHandler        func(c *gin.Context)
}

Server struct with route handlers

func NewServer

func NewServer() *Server

NewServer creates a new server with default handlers

func (*Server) NewRouter

func (s *Server) NewRouter() *gin.Engine

NewRouter creating a new router and setting the routes for the server.

Jump to

Keyboard shortcuts

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