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 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 PortForwardServer ¶
PortforwardServer
func (*PortForwardServer) Start ¶
func (s *PortForwardServer) Start() (chan struct{}, chan error, error)
Start starts server
type VersionCommand ¶
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
Click to show internal directories.
Click to hide internal directories.