api

package
Version: v0.0.0-...-29f4744 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathGateway = "daolinet/gateways"
)

Variables

View Source
var (
	ErrGroupExists         = errors.New("group already exists")
	ErrFirewallNameExists  = errors.New("firewall name already exists")
	ErrFirewallPortExists  = errors.New("firewall gateway port already exists")
	ErrGroupDoesNotExist   = errors.New("group does not exist")
	ErrPolicyDoesNotExist  = errors.New("policy does not exist")
	ErrGatewayDoesNotExist = errors.New("gateway does not exist")
	ErrPolicyConflict      = errors.New("policy should not be same container")
	ErrPolicyFormat        = errors.New("policy format should be <CONTAINER:CONTAINER>")
)

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func NewApi

func NewApi(config ApiConfig) (*Api, error)

func (*Api) Run

func (a *Api) Run() error

type ApiConfig

type ApiConfig struct {
	ListenAddr    string
	Client        *dockerclient.DockerClient
	Store         *kv.Discovery
	AllowInsecure bool
}

type ContainerInfo

type ContainerInfo struct {
	dockerclient.ContainerInfo
	Node struct {
		ID   string
		IP   string
		Addr string
		Name string
	}
}

Jump to

Keyboard shortcuts

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