report

package
v0.0.0-...-50abef9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterReportCommand

func NewClusterReportCommand() *cobra.Command

NewClusterReportCommand creates a command that generates and outputs the cluster report.

func NewDeprovisioningReportCommand

func NewDeprovisioningReportCommand() *cobra.Command

NewDeprovisioningReportCommand creates a command that generates and outputs the cluster report.

func NewProvisioningReportCommand

func NewProvisioningReportCommand() *cobra.Command

NewProvisioningReportCommand creates a command that generates and outputs the cluster report.

Types

type DeprovisioningReportOptions

type DeprovisioningReportOptions struct {
	// ClusterType filters the report to only clusters of the given type.
	ClusterType string
}

DeprovisioningReportOptions is the set of options for the desired report.

func (*DeprovisioningReportOptions) Complete

func (o *DeprovisioningReportOptions) Complete(cmd *cobra.Command, args []string) error

Complete finishes parsing arguments for the command

func (*DeprovisioningReportOptions) Run

func (o *DeprovisioningReportOptions) Run(dynClient client.Client) error

Run executes the command

func (*DeprovisioningReportOptions) Validate

func (o *DeprovisioningReportOptions) Validate(cmd *cobra.Command) error

Validate ensures that option values make sense

type ProvisioningReportOptions

type ProvisioningReportOptions struct {
	// AgeLT is a duration to filter to cluster created less than this duration ago.
	AgeLT string
	// AgeGT is a duration to filter to cluster created more than this duration ago.
	AgeGT string
	// ClusterType filters the report to only clusters of the given type.
	ClusterType string
}

ProvisioningReportOptions is the set of options for the desired report.

func (*ProvisioningReportOptions) Complete

func (o *ProvisioningReportOptions) Complete(cmd *cobra.Command, args []string) error

Complete finishes parsing arguments for the command

func (*ProvisioningReportOptions) Run

func (o *ProvisioningReportOptions) Run(dynClient client.Client) error

Run executes the command

func (*ProvisioningReportOptions) Validate

func (o *ProvisioningReportOptions) Validate(cmd *cobra.Command) error

Validate ensures that option values make sense

Jump to

Keyboard shortcuts

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