Documentation ¶
Overview ¶
A binary that can morph into all of the other kubernetes binaries. You can also soft-link to it busybox style.
Index ¶
- type HyperKube
- func (hk *HyperKube) AddServer(s *Server)
- func (hk *HyperKube) FindServer(name string) (*Server, error)
- func (hk *HyperKube) Flags() *pflag.FlagSet
- func (hk *HyperKube) MakeSymlinks(command string) error
- func (hk *HyperKube) Out() io.Writer
- func (hk *HyperKube) Print(i ...interface{})
- func (hk *HyperKube) Printf(format string, i ...interface{})
- func (hk *HyperKube) Println(i ...interface{})
- func (hk *HyperKube) Run(args []string, stopCh <-chan struct{}) error
- func (hk *HyperKube) RunToExit(args []string)
- func (hk *HyperKube) Servers() []Server
- func (hk *HyperKube) SetOut(w io.Writer)
- func (hk *HyperKube) Usage()
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HyperKube ¶
type HyperKube struct { Name string // The executable name, used for help and soft-link invocation Long string // A long description of the binary. It will be world wrapped before output. // contains filtered or unexported fields }
HyperKube represents a single binary that can morph/manage into multiple servers.
func (*HyperKube) FindServer ¶
FindServer will find a specific server named name.
func (*HyperKube) MakeSymlinks ¶
MakeSymlinks will create a symlink for each registered hyperkube server in the local directory.
func (*HyperKube) Print ¶
func (hk *HyperKube) Print(i ...interface{})
Print is a convenience method to Print to the defined output
func (*HyperKube) Println ¶
func (hk *HyperKube) Println(i ...interface{})
Println is a convenience method to Println to the defined output
func (*HyperKube) RunToExit ¶
RunToExit will run the hyperkube and then call os.Exit with an appropriate exit code.
type Server ¶
type Server struct { SimpleUsage string // One line description of the server. Long string // Longer free form description of the server Run serverRunFunc // Run the server. This is not expected to return. AlternativeName string RespectsStopCh bool // contains filtered or unexported fields }
Server describes a server that this binary can morph into.
func NewKubeAPIServer ¶
func NewKubeAPIServer() *Server
NewKubeAPIServer creates a new hyperkube Server object that includes the description and flags.
func NewKubeAggregator ¶
func NewKubeAggregator() *Server
NewKubeAggregator creates a new hyperkube Server object that includes the description and flags.
func NewKubeControllerManager ¶
func NewKubeControllerManager() *Server
NewKubeControllerManager creates a new hyperkube Server object that includes the description and flags.
func NewKubeProxy ¶
func NewKubeProxy() *Server
NewKubeProxy creates a new hyperkube Server object that includes the description and flags.
func NewKubectlServer ¶
func NewKubectlServer() *Server
Create a Server that implements the kubectl command
func NewKubelet ¶
NewKubelet creates a new hyperkube Server object that includes the description and flags.
func NewScheduler ¶
func NewScheduler() *Server
NewScheduler creates a new hyperkube Server object that includes the description and flags.