container

package
v0.0.0-...-d197850 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ambassador

type Ambassador struct {
	Type   string
	Remote string
	Port   string
}

type Container

type Container struct {
	Name         string
	Type         string
	Extends      string
	Image        string
	Path         string
	Template     string
	Running      bool
	Id           string
	Ip           string
	BeforeScript string            "before_script"
	AfterScript  string            "after_script"
	AptPackets   []string          "apt_get"
	Add          map[string]string "add"
	Links        []string
	Dependencies []*Container
	Ambassador   Ambassador
	Ports        map[string]string
	Volumes      map[string]string
	Environments map[string]string "environments"
	Custom       map[string]interface{}
}

func (*Container) AddDependency

func (c *Container) AddDependency(container *Container)

func (*Container) Build

func (c *Container) Build(done chan bool)

func (*Container) BuildAndRun

func (c *Container) BuildAndRun(currentPath string, arguments []string)

func (*Container) BuildOrPull

func (c *Container) BuildOrPull(buildChans chan bool)

func (*Container) Clean

func (c *Container) Clean(done chan bool)

func (*Container) DependsOf

func (c *Container) DependsOf(otherComponentType string) bool

func (*Container) ExtendsContainer

func (c *Container) ExtendsContainer(parent *Container)

func (*Container) FirstLinked

func (c *Container) FirstLinked() *Container

func (*Container) GetCustomValue

func (c *Container) GetCustomValue(params ...string) interface{}

func (*Container) GetCustomValueAsString

func (c *Container) GetCustomValueAsString(params ...string) string

func (*Container) GetFirstLocalPort

func (c *Container) GetFirstLocalPort(args ...string) string

func (*Container) GetFirstMountedDir

func (c *Container) GetFirstMountedDir() string

func (*Container) GetFirstPort

func (c *Container) GetFirstPort() string

func (*Container) GetFullName

func (c *Container) GetFullName() string

func (*Container) HasAfterScript

func (c *Container) HasAfterScript() bool

func (*Container) HasAfterScriptFile

func (c *Container) HasAfterScriptFile() bool

func (*Container) HasBeforeScript

func (c *Container) HasBeforeScript() bool

func (*Container) HasBeforeScriptFile

func (c *Container) HasBeforeScriptFile() bool

func (*Container) Init

func (c *Container) Init()

func (*Container) IsGaudiManaged

func (c *Container) IsGaudiManaged() bool

func (*Container) IsPreBuild

func (c *Container) IsPreBuild() bool

func (*Container) IsReady

func (c *Container) IsReady() bool

func (*Container) IsRemote

func (c *Container) IsRemote() bool

func (*Container) IsRunning

func (c *Container) IsRunning() bool

func (*Container) Kill

func (c *Container) Kill(silent bool, done chan bool)

func (*Container) Pull

func (c *Container) Pull(done chan bool)

func (*Container) Remove

func (c *Container) Remove()

func (*Container) RetrieveIp

func (c *Container) RetrieveIp()

func (*Container) Run

func (c *Container) Run(currentPath string, arguments []string)

*

  • Starts a container as a binary file

func (*Container) SetCustomValue

func (c *Container) SetCustomValue(name, value string) string

func (*Container) Start

func (c *Container) Start(rebuild bool)

*

  • Starts a container as a server

Jump to

Keyboard shortcuts

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