container

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Start operation = true
	Stop  operation = false
)

Variables

This section is empty.

Functions

func Reorder added in v1.2.0

func Reorder(conts []Container, op operation)

Types

type Container

type Container struct {
	Category   string            `toml:"category"`
	Name       string            `toml:"name"`
	Image      string            `toml:"image"`
	Hostname   string            `toml:"hostname,omitempty"`
	Command    []string          `toml:"cmd,omitempty"`
	Arguments  string            `toml:"arguments,omitempty"`
	Networks   []network.Network `toml:"networks,omitempty"`
	Env        map[string]string `toml:"env,omitempty"`
	Mounts     []spec.Mount      `toml:"mounts,omitempty"`
	Restart    string            `toml:"restart,omitempty"`
	Umask      null.Int          `toml:"umask,omitempty"`
	User       string            `toml:"user,omitempty"`
	ExposeTcp  []uint16          `toml:"expose_tcp,omitempty"`
	ExposeUdp  []uint16          `toml:"expose_udp,omitempty"`
	PortsTcp   map[uint16]uint16 `toml:"ports,omitempty"`
	NetNS      string            `toml:"netns,omitempty"`
	StartOrder null.Int          `toml:"start_order,omitempty"`
	// contains filtered or unexported fields
}

func (*Container) ConditionalStartCommands added in v1.2.0

func (c *Container) ConditionalStartCommands() cmd.CommandSet

func (*Container) CreateCommands

func (c *Container) CreateCommands() cmd.CommandSet

func (*Container) Init

func (c *Container) Init(conn context.Context, nets []network.Network) error

func (*Container) IsCreated added in v1.1.0

func (c *Container) IsCreated() bool

func (*Container) IsRunning added in v1.0.8

func (c *Container) IsRunning() bool

func (*Container) LogEntry added in v1.1.1

func (c *Container) LogEntry() *log.Entry

func (*Container) Pid

func (c *Container) Pid() int

func (*Container) PullCommands added in v1.1.2

func (c *Container) PullCommands() cmd.CommandSet

func (*Container) RecreateCommands

func (c *Container) RecreateCommands() cmd.CommandSet

func (*Container) RemoveCommands added in v1.1.9

func (c *Container) RemoveCommands() cmd.CommandSet

unexported version just removes the container without attempting a stop.

func (*Container) StartCommands

func (c *Container) StartCommands() cmd.CommandSet

func (*Container) StopCommands

func (c *Container) StopCommands() cmd.CommandSet

func (*Container) UpdateCommands

func (c *Container) UpdateCommands() cmd.CommandSet

Jump to

Keyboard shortcuts

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