manager

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkNetOutInputs added in v0.7.0

type BulkNetOutInputs struct {
	ContainerIP string              `json:"container_ip"`
	NetOutRules []garden.NetOutRule `json:"netout_rules"`
}

type Manager

type Manager struct {
	Logger         lager.Logger
	CNIController  cniController
	Mounter        mounter
	BindMountRoot  string
	OverlayNetwork string
	PortAllocator  portAllocator
	NetInProvider  netInProvider
	NetOutProvider netOutProvider
}

func (*Manager) BulkNetOut added in v0.7.0

func (m *Manager) BulkNetOut(containerHandle string, inputs BulkNetOutInputs) error

func (*Manager) Down

func (m *Manager) Down(containerHandle string) error

func (*Manager) NetIn

func (m *Manager) NetIn(containerHandle string, inputs NetInInputs) (*NetInOutputs, error)

func (*Manager) NetOut

func (m *Manager) NetOut(containerHandle string, inputs NetOutInputs) error

func (*Manager) Up

func (m *Manager) Up(containerHandle string, inputs UpInputs) (*UpOutputs, error)

type NetInInputs

type NetInInputs struct {
	HostIP        string
	HostPort      int
	ContainerIP   string
	ContainerPort int
}

type NetInOutputs

type NetInOutputs struct {
	HostPort      int `json:"host_port"`
	ContainerPort int `json:"container_port"`
}

type NetOutInputs

type NetOutInputs struct {
	ContainerIP string            `json:"container_ip"`
	NetOutRule  garden.NetOutRule `json:"netout_rule"`
}

type UpInputs

type UpInputs struct {
	Pid        int
	Properties map[string]string
}

type UpOutputs

type UpOutputs struct {
	Properties struct {
		ContainerIP      string `json:"garden.network.container-ip"`
		DeprecatedHostIP string `json:"garden.network.host-ip"`
	} `json:"properties"`
}

Jump to

Keyboard shortcuts

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