Documentation ¶
Index ¶
- func Confirm(s string) bool
- func Convert(tncfg, mncfg string) error
- func HtmlHandler(w http.ResponseWriter, r *http.Request)
- func JsonResHandler(filepath string)
- func LinkUp(linkname string) error
- func RemoveBr(bridgeName string) error
- func SetBridge(node utils.Node, inf utils.Interface) error
- func SetLink(node utils.Node, inf utils.Interface) error
- type Component
- type Container
- func (c *Container) CreateContainerPort(imageName string, hostName string, cport string, hport string, cfgfile string) error
- func (c *Container) Dockertonetns(nodename string) error
- func (c *Container) Pull(nodes []utils.Node) error
- func (c *Container) RemoveContainer(nodename string) error
- func (c *Container) RemoveNs(nodename string) error
- func (c *Container) SetConf(containerName string, cmd string) error
- func (c *Container) StartContainer(nodename string) error
- func (c *Container) StatusNs(nodename string) (string, error)
- func (c *Container) StopContainer(nodename string) error
- type D3Link
- type D3Node
- type D3json
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HtmlHandler ¶
func HtmlHandler(w http.ResponseWriter, r *http.Request)
HtmlHandler func is template html view
func JsonResHandler ¶
func JsonResHandler(filepath string)
JsonResHandler func is d3 force layout json response adn create frontend server
Types ¶
type Container ¶
Container Operation struct
func NewContainer ¶
NewContainer func is Create Container Client
func (*Container) CreateContainerPort ¶
func (c *Container) CreateContainerPort(imageName string, hostName string, cport string, hport string, cfgfile string) error
CreateContainerPort func is container create port binding
func (*Container) Dockertonetns ¶
Dockertonetns is Mount Docker network namespace tp network namespace
func (*Container) Pull ¶
Pull and Create Docker Container from config and Set Option for sysctl and volume
func (*Container) RemoveContainer ¶
RemoveContainer is Remove Docker Container
func (*Container) StartContainer ¶
StartContainer is start docker container
func (*Container) StopContainer ¶
StopContainer is stop docker container
Click to show internal directories.
Click to hide internal directories.