cli

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

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 NewCmdAddNode added in v1.8.0

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

NewCmdAddNode returns the command for adding node to the cluster

func NewCmdApply

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

NewCmdApply creates a cluter using the plan file

func NewCmdCertificates added in v1.5.0

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

NewCmdCertificates creates a new certificates command

func NewCmdDashboard added in v1.2.0

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

NewCmdDashboard opens or displays the dashboard URL

func NewCmdDashboardKubeconfig added in v1.12.0

func NewCmdDashboardKubeconfig(out io.Writer, opts dashboardOpts) *cobra.Command

func NewCmdDashboardToken added in v1.12.0

func NewCmdDashboardToken(out io.Writer, opts dashboardOpts) *cobra.Command

func NewCmdDashboardURL added in v1.12.0

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

func NewCmdDiagnostic added in v1.3.0

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

NewCmdDiagnostic collects diagnostic data on remote nodes

func NewCmdGenerate added in v1.5.0

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

NewCmdGenerate creates a new certificates generate command

func NewCmdIP added in v1.2.0

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

NewCmdIP prints the cluster's IP

func NewCmdInfo added in v1.3.0

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

NewCmdInfo returns the info command

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 NewCmdReset added in v1.10.0

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

NewCmdReset resets nodes

func NewCmdSSH added in v1.2.0

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

NewCmdSSH returns an ssh shell

func NewCmdSeedRegistry added in v1.6.0

func NewCmdSeedRegistry(stdout, stderr io.Writer) *cobra.Command

NewCmdSeedRegistry returns the command for seeding a container image registry with the images required by KET

func NewCmdStep added in v1.0.1

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

NewCmdStep returns the step command

func NewCmdUpgrade added in v1.3.0

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

NewCmdUpgrade returns the upgrade command

func NewCmdUpgradeOffline added in v1.3.0

func NewCmdUpgradeOffline(in io.Reader, out io.Writer, opts *upgradeOpts) *cobra.Command

NewCmdUpgradeOffline returns the command for running offline upgrades

func NewCmdUpgradeOnline added in v1.3.0

func NewCmdUpgradeOnline(in io.Reader, out io.Writer, opts *upgradeOpts) *cobra.Command

NewCmdUpgradeOnline returns the command for running online upgrades

func NewCmdValidate

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

NewCmdValidate creates a new install validate command

func NewCmdVersion

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

NewCmdVersion returns the version command

func NewCmdVolume added in v1.2.0

func NewCmdVolume(in io.Reader, 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 NewCmdVolumeDelete added in v1.6.0

func NewCmdVolumeDelete(in io.Reader, out io.Writer, planFile *string) *cobra.Command

NewCmdVolumeDelete returns the command for deleting 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, stderr io.Writer) (*cobra.Command, error)

NewKismaticCommand creates the kismatic command

func VolumeBrickToString added in v1.2.1

func VolumeBrickToString(bricks []Brick) string

VolumeBrickToString joins the volume bricks into a CSV string

Types

type Brick added in v1.2.1

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

Brick contains Host and Path information

func (*Brick) Readable added in v1.2.1

func (b *Brick) Readable() string

Readable joins a brick's host and path in the format "host:path"

type Claim added in v1.2.1

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

Claim contains Name and Namespace information

func (*Claim) Readable added in v1.2.1

func (c *Claim) Readable() string

Readable joins a claim's namespace and name in the format "namespace/name"

type Container added in v1.2.1

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

Container contains Name and mounting information (name and path)

type ListResponse added in v1.2.1

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

ListResponse contains a slice of volumes with corresponding json fields

type Pod added in v1.2.1

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

Pod contains Name and Namespace information, as well as associated containers

func (*Pod) Readable added in v1.2.1

func (p *Pod) Readable() string

Readable joins a pod's namespace and name in the format "namespace/name"

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 contains name, storage class, labels, capacity, availability, replicacount, distribution count, bricks, status, claim, and pods

Jump to

Keyboard shortcuts

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