cmd

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERROR_IN_USE    = uint8(48)
	ERROR_NOT_AVAIL = uint8(49)
	ERROR_DENIED    = uint8(71)
	ERROR_UNKNOWN   = uint8(66)
)
View Source
const AddIPAliasType = uint8(3)
View Source
const BOSH_IP = "10.245.0.2"
View Source
const BindType = uint8(6)
View Source
const GOROUTER_IP = "10.144.0.34"
View Source
const RemoveIPAliasType = uint8(2)
View Source
const UninstallType = uint8(1)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddIPAliasCommand

type AddIPAliasCommand struct {
}

func (*AddIPAliasCommand) Execute

func (u *AddIPAliasCommand) Execute(conn *net.UnixConn) error

type BindCommand

type BindCommand struct {
	Addr *net.TCPAddr
}

func UnmarshalBindCommand

func UnmarshalBindCommand(conn io.Reader) (*BindCommand, error)

func (*BindCommand) Execute

func (b *BindCommand) Execute(conn *net.UnixConn) error

type Command

type Command interface {
	Execute(*net.UnixConn) error
}

func UnmarshalCommand

func UnmarshalCommand(conn io.Reader) (Command, error)

type DaemonRunner

type DaemonRunner interface {
	RemoveDaemon(string) error
}

type RemoveIPAliasCommand

type RemoveIPAliasCommand struct {
}

func (*RemoveIPAliasCommand) Execute

func (u *RemoveIPAliasCommand) Execute(conn *net.UnixConn) error

func (*RemoveIPAliasCommand) RemoveLoopbackAliases

func (u *RemoveIPAliasCommand) RemoveLoopbackAliases(addrs ...string) error

type UnimplementedCommand

type UnimplementedCommand struct {
	Instruction uint8
	Logger      io.Writer
}

func (*UnimplementedCommand) Execute

func (u *UnimplementedCommand) Execute(conn *net.UnixConn) error

type UninstallCommand

type UninstallCommand struct {
	DaemonRunner DaemonRunner
}

func (*UninstallCommand) Execute

func (u *UninstallCommand) Execute(conn *net.UnixConn) error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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