link

package
v1.0.0-alpha-64 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerError

type ContainerError struct {
	ContainerPath string
	Error         error
}

ContainerError struct

type Errors

type Errors struct {
	List []ContainerError
}

Errors list

func (Errors) Error

func (le Errors) Error() string
type Link struct {
	Container     *containers.Container
	ContainerPath string
}

Link holds the information of container to be linked

func New

func New(dir string) (*Link, error)

New Container link

type Machine

type Machine struct {
	ProjectID   string
	Links       []*Link
	Errors      *Errors
	ErrorsMutex sync.Mutex

	Watcher *list.Watcher
	// contains filtered or unexported fields
}

Machine structure

func (*Machine) Run

func (m *Machine) Run()

Run links the containers of the list input

func (*Machine) Setup

func (m *Machine) Setup(list []string) error

Setup the linking machine

func (*Machine) Watch

func (m *Machine) Watch()

Watch changes due to linking

Jump to

Keyboard shortcuts

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