api

package
v0.0.0-...-5c8f720 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CONNECTED    = "ACCEPT"
	DISCONNECTED = "DROP"
)
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
	OfcUrl        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