routes

package
v0.0.0-...-6c3e1e1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const NoneTag = "<none>"

Variables

This section is empty.

Functions

func New

func New(endpoints []*docker.Client) http.Handler

New instantiates a new Web UI route handler.

Types

type BaseContext

type BaseContext struct {
	SiteContext
}

type ContainerContext

type ContainerContext struct {
	BaseContext
	ContainerCount int
	Containers     []ContainerInstance
}

type ContainerInstance

type ContainerInstance struct {
	ID              string
	Service         string
	Image, ImageTag string
	Node            string
	Created         string
}

type DashboardContext

type DashboardContext struct {
	BaseContext
	ServiceListContext
	NodeListContext
	System SystemContext
}

type ErrorContext

type ErrorContext struct {
	BaseContext
	Err string
}

type ImageContext

type ImageContext struct {
	ID         string
	Repository string
	Tag        string
	Size       string
	Created    string
}

type ImageListContext

type ImageListContext struct {
	BaseContext
	Images     []ImageContext
	ImageCount int
}
type NavContext struct {
	Link, Name string
	Active     bool
}

type NetworkContext

type NetworkContext struct {
	BaseContext
	NetworkCount int
	Networks     []NetworkInstance
}

type NetworkInstance

type NetworkInstance struct {
	ID     string
	Name   string
	Driver string
}

type NodeContext

type NodeContext struct {
	Status       string
	ID           string
	Hostname     string
	Availability string
	Role         string
}

type NodeListContext

type NodeListContext struct {
	BaseContext
	Nodes     []NodeContext
	NodeCount int
}

type Router

type Router struct {
	// contains filtered or unexported fields
}

func (*Router) ServeHTTP

func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ServiceContext

type ServiceContext struct {
	ID           string
	Name         string
	LastUpdate   string
	InstanceMode string
	Instances    uint64
	Image        string
	ImageTag     string
}

type ServiceListContext

type ServiceListContext struct {
	BaseContext
	Services     []ServiceContext
	ServiceCount int
}

type SiteContext

type SiteContext struct {
	Title string
	Year  int
	Nav   []NavContext
}

func (SiteContext) SetActive

func (ctx SiteContext) SetActive(nav string) SiteContext

type SystemContext

type SystemContext struct {
	ID              string
	ServerVersion   string
	KernelVersion   string
	OperatingSystem string
	Architecture    string
	Swarm           string
	SwarmVersion    uint64
	Nodes, Managers int
}

type VolumeContext

type VolumeContext struct {
	BaseContext
	VolumeCount int
	Volumes     []VolumeInstance
}

type VolumeInstance

type VolumeInstance struct {
	Name    string
	Driver  string
	Created string
}

Jump to

Keyboard shortcuts

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