docker

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

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HTTPClient global http client object
	HTTPClient *fasthttp.Client = &fasthttp.Client{
		MaxConnsPerHost: 16384,
		ReadTimeout:     5 * time.Second,
		WriteTimeout:    5 * time.Second,
	}
)

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	component.Core
}

Endpoint contains the dependencies.

func New

func New(bc component.Core) *Endpoint

New returns a new instance of the endpoint.

func (*Endpoint) Containers

func (p *Endpoint) Containers(w http.ResponseWriter, r *http.Request) (int, error)

Index . swagger:route GET /v1/docker docker DockerContainers

Return all docker.

Security:

token:

Responses:

200: DockerContainersData
400: BadRequestResponse
401: UnauthorizedResponse
500: InternalServerErrorResponse

func (*Endpoint) Info

func (p *Endpoint) Info(w http.ResponseWriter, r *http.Request) (int, error)

Index . swagger:route GET /v1/docker docker DockerIndex

Return all docker.

Security:

token:

Responses:

200: DockerInfoResponse
400: BadRequestResponse
401: UnauthorizedResponse
500: InternalServerErrorResponse

func (*Endpoint) Routes

func (p *Endpoint) Routes(router component.IRouter)

Routes will set up the endpoints.

Jump to

Keyboard shortcuts

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