dockerui

package module
v0.0.0-...-cbcf5f7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

docker-ui

UI for docker. A great example of a full stack on go + vue.

Up an running

Is very simple!

docker run \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 9000:9000 \
    --restart always \
    -it powerfreelance/docker-ui

open at http://localhost:9000.

See examples dir.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CliFlags = []cli.Flag{
	cli.BoolFlag{Name: "debug", EnvVar: "DEBUG", Usage: "Enable debug mode"},
	cli.StringFlag{Name: "listen", Value: ":9000", EnvVar: "LISTEN", Usage: "Listen address for HTTP access"},
	cli.StringFlag{Name: "staticRoot", Value: "web/dist", EnvVar: "STATIC_ROOT", Usage: "Static files root dir"},
}

Functions

func Action

func Action(c *cli.Context) error

func EndpointComposeProjectList

func EndpointComposeProjectList(hc *Context) error

func EndpointContainerList

func EndpointContainerList(hc *Context) error

func EndpointImageList

func EndpointImageList(hc *Context) error

func EndpointIndex

func EndpointIndex(c *Context) error

func MiddlewareDockerClient

func MiddlewareDockerClient(dc *client.Client) echo.MiddlewareFunc

func UseContext

func UseContext(next HandleFunc) echo.HandlerFunc

Types

type ComposeProject

type ComposeProject struct {
	ConfigHash string
	Name       string
	Version    string
	Services   map[string]ComposeService
}

type ComposeService

type ComposeService struct {
	Name       string
	Containers map[int]types.Container
}

type ContainerListParams

type ContainerListParams struct {
	All    bool     `query:"all"`
	Status []string `query:"status[]"`
}

func (ContainerListParams) GetOpts

type Context

type Context struct {
	echo.Context
}

func (Context) GetDockerClient

func (c Context) GetDockerClient() *client.Client

type Flags

type Flags struct {
	Debug      bool
	Listen     string
	StaticRoot string
}

func NewFlags

func NewFlags(c *cli.Context) *Flags

type HandleFunc

type HandleFunc func(*Context) error

Directories

Path Synopsis
cmd
docker-ui command

Jump to

Keyboard shortcuts

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