dockerapi

package
v0.11.2-2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Containers

func Containers(w http.ResponseWriter, r *http.Request)

func DockerInfo

func DockerInfo(w http.ResponseWriter, r *http.Request)

func GetDockerInfo

func GetDockerInfo(ctx context.Context, dockerClients DockerClients) ([]dockerInfo, gperr.Error)

func Logs

func Logs(w http.ResponseWriter, r *http.Request)

Types

type Container

type Container struct {
	Server string `json:"server"`
	Name   string `json:"name"`
	ID     string `json:"id"`
	Image  string `json:"image"`
	State  string `json:"state"`
}

func GetContainers

func GetContainers(ctx context.Context, dockerClients DockerClients) ([]Container, gperr.Error)

type DockerClients

type DockerClients map[string]*docker.SharedClient

type ResultType

type ResultType[T any] interface {
	map[string]T | []T
}

Jump to

Keyboard shortcuts

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