Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArgHost string
ArgHost is used to populate command line argments for the Host.
View Source
var ArgInteractive bool
ArgInteractive is used to populate command line argments for the Interactive.
View Source
var ArgNamespace string
ArgNamespace is used to populate command line argments for the Namespace.
Functions ¶
func FillCobraCommand ¶
FillCobraCommand assigns default parameters for this command to the Cobra command.
Types ¶
type DashboardViewing ¶
DashboardViewing looks up the dashboard port and opens up a browser using that port for local Kubernetes administration.
func NewDashboardViewing ¶
func NewDashboardViewing() (DashboardViewing, error)
NewDashboardViewing uses local kubernetes configuration files in $HOME/.kub/config to connect to Kubernetes and passess back a DashboardViewing.
type Parms ¶
type Parms struct { //TODO(doug4j@gmail.com): implment validators for parameters Namespace string `validate:"min=2" arg:"shortname=n,defaultValue=kube-system" help:"Kubernetes namespace."` Interactive bool `arg:"defaultValue=true" help:"Determines whether user actions are expected and waited on."` Host string `arg:"defaultValue=https://localhost,shortname=o" help:"Host name of the kubernetes api."` }
Parms are the parameters for the command.
Click to show internal directories.
Click to hide internal directories.