commands

package
v0.0.0-...-92a250d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DNS_INTERFACE_NAME = "dns0"

Variables

This section is empty.

Functions

func All

func All(commands ...executor.Command) executor.Command

Types

type AddAddress

type AddAddress struct {
	InterfaceName string
	Address       net.IPNet
}

func (AddAddress) Execute

func (aa AddAddress) Execute(context executor.Context) error

func (AddAddress) String

func (aa AddAddress) String() string

type AddRoute

type AddRoute struct {
	Interface   string
	Destination net.IPNet
	Gateway     net.IP
}

func (AddRoute) Execute

func (ad AddRoute) Execute(context executor.Context) error

func (AddRoute) String

func (ad AddRoute) String() string

type CleanupSandbox

type CleanupSandbox struct {
	SandboxName     string
	VxlanDeviceName string
}

func (CleanupSandbox) Execute

func (c CleanupSandbox) Execute(context executor.Context) error

func (CleanupSandbox) String

func (c CleanupSandbox) String() string

type CreateBridge

type CreateBridge struct {
	Name string
}

func (CreateBridge) Execute

func (cb CreateBridge) Execute(context executor.Context) error

func (CreateBridge) String

func (cb CreateBridge) String() string

type CreateDummy

type CreateDummy struct {
	Name string
}

func (CreateDummy) Execute

func (cv CreateDummy) Execute(context executor.Context) error

func (CreateDummy) String

func (cv CreateDummy) String() string

type CreateSandbox

type CreateSandbox struct {
	Name string
}

func (CreateSandbox) Execute

func (cn CreateSandbox) Execute(context executor.Context) error

func (CreateSandbox) String

func (cn CreateSandbox) String() string

type CreateVeth

type CreateVeth struct {
	Name     string
	PeerName string
	MTU      int
}

func (CreateVeth) Execute

func (cv CreateVeth) Execute(context executor.Context) error

func (CreateVeth) String

func (cs CreateVeth) String() string

type CreateVxlan

type CreateVxlan struct {
	Name string
	VNI  int
}

func (CreateVxlan) Execute

func (cv CreateVxlan) Execute(context executor.Context) error

func (CreateVxlan) String

func (cv CreateVxlan) String() string
type DeleteLink struct {
	LinkName string
}

func (DeleteLink) Execute

func (c DeleteLink) Execute(context executor.Context) error

func (DeleteLink) String

func (c DeleteLink) String() string

type GetHardwareAddress

type GetHardwareAddress struct {
	LinkName string
	Result   net.HardwareAddr
}

func (*GetHardwareAddress) Execute

func (cmd *GetHardwareAddress) Execute(context executor.Context) error

func (*GetHardwareAddress) String

func (cmd *GetHardwareAddress) String() string

type Group

type Group []executor.Command

func (Group) Execute

func (g Group) Execute(context executor.Context) error

func (Group) String

func (g Group) String() string

type GroupError

type GroupError struct {
	Err error
	// contains filtered or unexported fields
}

func (*GroupError) Error

func (ge *GroupError) Error() string

type InNamespace

type InNamespace struct {
	Namespace namespace.Namespace
	Command   executor.Command
}

func (InNamespace) Execute

func (i InNamespace) Execute(context executor.Context) error

func (InNamespace) String

func (i InNamespace) String() string
type MoveLink struct {
	Name        string
	SandboxName string
}

func (MoveLink) Execute

func (s MoveLink) Execute(context executor.Context) error

func (MoveLink) String

func (s MoveLink) String() string

type SetLinkMaster

type SetLinkMaster struct {
	Master string
	Slave  string
}

func (SetLinkMaster) Execute

func (slm SetLinkMaster) Execute(context executor.Context) error

func (SetLinkMaster) String

func (slm SetLinkMaster) String() string

type SetLinkUp

type SetLinkUp struct {
	LinkName string
}

func (SetLinkUp) Execute

func (s SetLinkUp) Execute(context executor.Context) error

func (SetLinkUp) String

func (s SetLinkUp) String() string

type StartDNSServer

type StartDNSServer struct {
	ListenAddress string
	SandboxName   string
}

func (StartDNSServer) Execute

func (sd StartDNSServer) Execute(context executor.Context) error

func (StartDNSServer) String

func (sd StartDNSServer) String() string

type StartMonitor

type StartMonitor struct {
	HostNamespace namespace.Namespace
	Watcher       watcher.MissWatcher
	SandboxName   string
	VxlanLinkName string
}

func (StartMonitor) Execute

func (sm StartMonitor) Execute(context executor.Context) error

func (StartMonitor) String

func (sm StartMonitor) String() string

type Unless

type Unless struct {
	Condition executor.Condition
	Command   executor.Command
}

func (Unless) Execute

func (u Unless) Execute(context executor.Context) error

func (Unless) String

func (u Unless) String() string

Jump to

Keyboard shortcuts

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