docker

package
v0.0.0-...-c49594f Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID      string
	Name    string
	State   string
	Created string
}

Container is ...

func GetContainers

func GetContainers() []Container

GetContainers is ...

func (Container) GetLogs

func (c Container) GetLogs()

GetLogs is ...

func (Container) GetName

func (c Container) GetName() string

GetName is ...

func (Container) Inspect

func (c Container) Inspect()

Inspect is ...

type IContainer

type IContainer interface {
	GetLogs()
	Inspect()
	GetName() string
}

IContainer is ...

type INode

type INode interface {
	Promote()
	Demote()
	Inspect()
	GetName() string
}

INode is ...

type IService

type IService interface {
	Inspect()
	Restart()
	GetName() string
}

IService is ...

type Node

type Node struct {
	ID            string
	Name          string
	Status        string
	Availability  string
	EngineVersion string
	Role          string
}

Node is ...

func GetNodes

func GetNodes() []Node

GetNodes is ...

func (Node) Demote

func (n Node) Demote()

Demote is ...

func (Node) GetName

func (n Node) GetName() string

GetName is ...

func (Node) Inspect

func (n Node) Inspect()

Inspect is ...

func (Node) Promote

func (n Node) Promote()

Promote is ...

type Service

type Service struct {
	ID       string
	Name     string
	Mode     string
	Replicas uint64
	Created  string
	Updated  string
}

Service is ...

func GetServices

func GetServices() []Service

GetServices is ...

func (Service) GetName

func (s Service) GetName() string

GetName is ...

func (Service) Inspect

func (s Service) Inspect()

Inspect is ...

func (Service) Restart

func (s Service) Restart()

Restart is ...

Jump to

Keyboard shortcuts

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