cli

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2017 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Overview

Package cli contains the implementation of the command-line tool for managing the Kubernetes cluster.

Index

Constants

View Source
const (
	KB float64 = 1 << (10 * iota)
	MB
	GB
	TB
)

Variables

This section is empty.

Functions

func HumanFormat added in v1.2.1

func HumanFormat(bytes float64) string

HumanFormat converts bytes to human readable KB,MB,GB,TB formats

func NewCmdAddWorker

func NewCmdAddWorker(out io.Writer, installOpts *installOpts) *cobra.Command

NewCmdAddWorker returns the command for adding workers to the cluster

func NewCmdApply

func NewCmdApply(out io.Writer, installOpts *installOpts) *cobra.Command

NewCmdApply creates a cluter using the plan file

func NewCmdDashboard added in v1.2.0

func NewCmdDashboard(out io.Writer) *cobra.Command

NewCmdDashboard opens or displays the dashboard URL

func NewCmdIP added in v1.2.0

func NewCmdIP(out io.Writer) *cobra.Command

NewCmdIP prints the cluster's IP

func NewCmdInstall

func NewCmdInstall(in io.Reader, out io.Writer) *cobra.Command

NewCmdInstall creates a new install command

func NewCmdPlan

func NewCmdPlan(in io.Reader, out io.Writer, options *installOpts) *cobra.Command

NewCmdPlan creates a new install plan command

func NewCmdSSH added in v1.2.0

func NewCmdSSH(out io.Writer) *cobra.Command

NewCmdSSH returns an ssh shell

func NewCmdStep added in v1.0.1

func NewCmdStep(out io.Writer, opts *installOpts) *cobra.Command

NewCmdStep returns the step command

func NewCmdValidate

func NewCmdValidate(out io.Writer, installOpts *installOpts) *cobra.Command

NewCmdValidate creates a new install validate command

func NewCmdVersion

func NewCmdVersion(version string, buildDate string, out io.Writer) *cobra.Command

NewCmdVersion returns the version command

func NewCmdVolume added in v1.2.0

func NewCmdVolume(out io.Writer) *cobra.Command

NewCmdVolume returns the storage command

func NewCmdVolumeAdd added in v1.2.0

func NewCmdVolumeAdd(out io.Writer, planFile *string) *cobra.Command

NewCmdVolumeAdd returns the command for adding storage volumes

func NewCmdVolumeList added in v1.2.1

func NewCmdVolumeList(out io.Writer, planFile *string) *cobra.Command

NewCmdVolumeList returns the command for listgin storage volumes

func NewKismaticCommand

func NewKismaticCommand(version string, buildDate string, in io.Reader, out io.Writer) (*cobra.Command, error)

NewKismaticCommand creates the kismatic command

func VolumeBrickToString added in v1.2.1

func VolumeBrickToString(bricks []Brick) string

Types

type Brick added in v1.2.1

type Brick struct {
	Host string `json:"host"`
	Path string `json:"path"`
}

Brick

func (*Brick) Readable added in v1.2.1

func (b *Brick) Readable() string

type Claim added in v1.2.1

type Claim struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

Claim

func (*Claim) Readable added in v1.2.1

func (c *Claim) Readable() string

type Container added in v1.2.1

type Container struct {
	Name      string `json:"name"`
	MountName string `json:"mountName"`
	MountPath string `json:"mountPath"`
}

Container

type ListResponse added in v1.2.1

type ListResponse struct {
	Volumes []Volume `json:"items"`
}

ListResponse

type Pod added in v1.2.1

type Pod struct {
	Name       string      `json:"name"`
	Namespace  string      `json:"namespace"`
	Containers []Container `json:"containers"`
}

Pod

func (*Pod) Readable added in v1.2.1

func (p *Pod) Readable() string

type Volume added in v1.2.1

type Volume struct {
	Name              string            `json:"name"`
	StorageClass      string            `json:"storageClass,omitempty"`
	Labels            map[string]string `json:"labels,omitempty"`
	Capacity          string            `json:"capacity"`
	Available         string            `json:"available"`
	ReplicaCount      uint              `json:"replicaCount"`
	DistributionCount uint              `json:"distributionCount"`
	Bricks            []Brick           `json:"bricks"`
	Status            string            `json:"status"`
	Claim             *Claim            `json:"claim,omitempty"`
	Pods              []Pod             `json:"pods,omitempty"`
}

Volume

Jump to

Keyboard shortcuts

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