manager

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: Apache-2.0 Imports: 9 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
	InstanceAddress 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
	NetOut     []garden.NetOutRule `json:"netout_rules"`
	NetIn      []garden.NetIn      `json:"netin"`
}

type UpOutputs

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

Jump to

Keyboard shortcuts

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