viewdash

package
v0.0.0-...-5a14af6 Latest Latest
Warning

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

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

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

func FillCobraCommand(cmd *cobra.Command)

FillCobraCommand assigns default parameters for this command to the Cobra command.

Types

type DashboardViewing

type DashboardViewing interface {
	ViewDashboard(parms Parms) error
}

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.

Jump to

Keyboard shortcuts

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