command

package
v0.0.0-...-e6a51b7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2015 License: MIT Imports: 26 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Boot2docker related constants.
	// These constants are from github.com/boot2docker/boot2docker-cli
	B2DSshKeyFile string = "id_boot2docker"
	B2DSshServer  string = "localhost:2022"
	B2DSshUser    string = "docker"

	// ClosingTime is time to wait until all server is closing
	ClosingTime = 1 * time.Second
)
View Source
const (
	// CheckInterval is how often check k8s container is ready
	CheckInterval = 3 * time.Second

	// CheckTimeout is timeout for waiting k8s container is ready
	CheckTimeOut = 300 * time.Second
)

Variables

View Source
var (
	DefaultLocalServer  = "localhost:8080"
	DefaultRemoteServer = "localhost:8080"
)
View Source
var FilterK8SRelated = map[string][]string{
	"label": []string{"io.kubernetes.pod.name"},
}
View Source
var FilterLocalMaster = map[string][]string{
	"label": []string{"io.kubernetes.pod.name=default/k8s-master-127.0.0.1"},
}

Functions

func AskYesNo

func AskYesNo() (bool, error)

func B2DSshAuthMethod

func B2DSshAuthMethod() (ssh.AuthMethod, error)

B2DSshAuthMethod return ssh auth method for boot2docker. It reads & parses ssh key file and constructs auth method. If something wrong, returns error.

Types

type DestroyCommand

type DestroyCommand struct {
	Meta
}

func (*DestroyCommand) Help

func (c *DestroyCommand) Help() string

func (*DestroyCommand) Run

func (c *DestroyCommand) Run(args []string) int

func (*DestroyCommand) Synopsis

func (c *DestroyCommand) Synopsis() string

type ForwardCommand

type ForwardCommand struct {
	Meta
}

func (*ForwardCommand) Help

func (c *ForwardCommand) Help() string

func (*ForwardCommand) Run

func (c *ForwardCommand) Run(args []string) int

func (*ForwardCommand) Synopsis

func (c *ForwardCommand) Synopsis() string

type ListCommand

type ListCommand struct {
	Meta
}

func (*ListCommand) Help

func (c *ListCommand) Help() string

func (*ListCommand) Run

func (c *ListCommand) Run(args []string) int

func (*ListCommand) Synopsis

func (c *ListCommand) Synopsis() string

type Meta

type Meta struct {
	Ui cli.Ui
}

Meta contain the meta-option that nearly all subcommand inherited.

type PortForwardServer

type PortForwardServer struct {
	Logger       *log.Logger
	LocalServer  string
	RemoteServer string
}

PortforwardServer

func (*PortForwardServer) Start

func (s *PortForwardServer) Start() (chan struct{}, chan error, error)

Start starts server

type UpCommand

type UpCommand struct {
	Meta
}

func (*UpCommand) Help

func (c *UpCommand) Help() string

func (*UpCommand) Run

func (c *UpCommand) Run(args []string) int

func (*UpCommand) Synopsis

func (c *UpCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Meta

	Name     string
	Version  string
	Revision string
}

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Run

func (c *VersionCommand) Run(args []string) int

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Jump to

Keyboard shortcuts

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