Documentation ¶
Overview ¶
Package cli contains the implementation of the command-line tool for managing the Kubernetes cluster.
Index ¶
- func HumanFormat(bytes float64) string
- func NewCmdAddNode(out io.Writer, installOpts *installOpts) *cobra.Command
- func NewCmdApply(out io.Writer, installOpts *installOpts) *cobra.Command
- func NewCmdCertificates(out io.Writer) *cobra.Command
- func NewCmdDashboard(in io.Reader, out io.Writer) *cobra.Command
- func NewCmdDashboardKubeconfig(out io.Writer, opts dashboardOpts) *cobra.Command
- func NewCmdDashboardToken(out io.Writer, opts dashboardOpts) *cobra.Command
- func NewCmdDashboardURL(out io.Writer) *cobra.Command
- func NewCmdDiagnostic(out io.Writer) *cobra.Command
- func NewCmdGenerate(out io.Writer) *cobra.Command
- func NewCmdIP(out io.Writer) *cobra.Command
- func NewCmdInfo(out io.Writer) *cobra.Command
- func NewCmdInstall(in io.Reader, out io.Writer) *cobra.Command
- func NewCmdPlan(in io.Reader, out io.Writer, options *installOpts) *cobra.Command
- func NewCmdReset(in io.Reader, out io.Writer) *cobra.Command
- func NewCmdSSH(out io.Writer) *cobra.Command
- func NewCmdSeedRegistry(stdout, stderr io.Writer) *cobra.Command
- func NewCmdStep(out io.Writer, opts *installOpts) *cobra.Command
- func NewCmdUpgrade(in io.Reader, out io.Writer) *cobra.Command
- func NewCmdUpgradeOffline(in io.Reader, out io.Writer, opts *upgradeOpts) *cobra.Command
- func NewCmdUpgradeOnline(in io.Reader, out io.Writer, opts *upgradeOpts) *cobra.Command
- func NewCmdValidate(out io.Writer, installOpts *installOpts) *cobra.Command
- func NewCmdVersion(buildDate string, out io.Writer) *cobra.Command
- func NewCmdVolume(in io.Reader, out io.Writer) *cobra.Command
- func NewCmdVolumeAdd(out io.Writer, planFile *string) *cobra.Command
- func NewCmdVolumeDelete(in io.Reader, out io.Writer, planFile *string) *cobra.Command
- func NewCmdVolumeList(out io.Writer, planFile *string) *cobra.Command
- func NewKismaticCommand(version string, buildDate string, in io.Reader, out, stderr io.Writer) (*cobra.Command, error)
- func VolumeBrickToString(bricks []Brick) string
- type Brick
- type Claim
- type Container
- type ListResponse
- type Pod
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanFormat ¶ added in v1.2.1
HumanFormat converts bytes to human readable KB,MB,GB,TB formats
func NewCmdAddNode ¶ added in v1.8.0
NewCmdAddNode returns the command for adding node to the cluster
func NewCmdApply ¶
NewCmdApply creates a cluter using the plan file
func NewCmdCertificates ¶ added in v1.5.0
NewCmdCertificates creates a new certificates command
func NewCmdDashboard ¶ added in v1.2.0
NewCmdDashboard opens or displays the dashboard URL
func NewCmdDashboardKubeconfig ¶ added in v1.12.0
func NewCmdDashboardToken ¶ added in v1.12.0
func NewCmdDiagnostic ¶ added in v1.3.0
NewCmdDiagnostic collects diagnostic data on remote nodes
func NewCmdGenerate ¶ added in v1.5.0
NewCmdGenerate creates a new certificates generate command
func NewCmdInfo ¶ added in v1.3.0
NewCmdInfo returns the info command
func NewCmdInstall ¶
NewCmdInstall creates a new install command
func NewCmdPlan ¶
NewCmdPlan creates a new install plan command
func NewCmdReset ¶ added in v1.10.0
NewCmdReset resets nodes
func NewCmdSeedRegistry ¶ added in v1.6.0
NewCmdSeedRegistry returns the command for seeding a container image registry with the images required by KET
func NewCmdStep ¶ added in v1.0.1
NewCmdStep returns the step command
func NewCmdUpgrade ¶ added in v1.3.0
NewCmdUpgrade returns the upgrade command
func NewCmdUpgradeOffline ¶ added in v1.3.0
NewCmdUpgradeOffline returns the command for running offline upgrades
func NewCmdUpgradeOnline ¶ added in v1.3.0
NewCmdUpgradeOnline returns the command for running online upgrades
func NewCmdValidate ¶
NewCmdValidate creates a new install validate command
func NewCmdVersion ¶
NewCmdVersion returns the version command
func NewCmdVolume ¶ added in v1.2.0
NewCmdVolume returns the storage command
func NewCmdVolumeAdd ¶ added in v1.2.0
NewCmdVolumeAdd returns the command for adding storage volumes
func NewCmdVolumeDelete ¶ added in v1.6.0
NewCmdVolumeDelete returns the command for deleting storage volumes
func NewCmdVolumeList ¶ added in v1.2.1
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
VolumeBrickToString joins the volume bricks into a CSV string
Types ¶
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
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