Documentation ¶
Index ¶
- Constants
- func Add(root *cobra.Command, sub *cobra.Command) *cobra.Command
- func Bind(root *cobra.Command, subs ...*cobra.Command) *cobra.Command
- func NewConnection(f *factory.Factory) (connection.Connection, error)
- func NewFactory() (*factory.Factory, error)
- func PromptConfirm(format string, args ...interface{}) (bool, error)
- func ValidOutputs() []string
- func ValidateOutputs(cmd *cobra.Command) error
- type FlagOptions
- func AddAllPages(cmd *cobra.Command, output *bool) *FlagOptions
- func AddChannelUpdate(cmd *cobra.Command, output *bool) *FlagOptions
- func AddClusterID(cmd *cobra.Command, output *string) *FlagOptions
- func AddDanglingDeployments(cmd *cobra.Command, output *bool) *FlagOptions
- func AddFile(cmd *cobra.Command, output *string) *FlagOptions
- func AddForce(cmd *cobra.Command, output *bool) *FlagOptions
- func AddID(cmd *cobra.Command, output *string) *FlagOptions
- func AddLimit(cmd *cobra.Command, output *int) *FlagOptions
- func AddName(cmd *cobra.Command, output *string) *FlagOptions
- func AddNamespaceID(cmd *cobra.Command, output *string) *FlagOptions
- func AddOperatorId(cmd *cobra.Command, output *string) *FlagOptions
- func AddOperatorUpdate(cmd *cobra.Command, output *bool) *FlagOptions
- func AddOrderBy(cmd *cobra.Command, output *string) *FlagOptions
- func AddOutput(cmd *cobra.Command, output *string) *FlagOptions
- func AddPage(cmd *cobra.Command, output *int) *FlagOptions
- func AddRevision(cmd *cobra.Command, output *int64) *FlagOptions
- func AddSearch(cmd *cobra.Command, output *string) *FlagOptions
- func AddTenantID(cmd *cobra.Command, output *string) *FlagOptions
- func AddTenantKind(cmd *cobra.Command, output *string) *FlagOptions
- func AddUse(cmd *cobra.Command, output *bool) *FlagOptions
- func AddYes(cmd *cobra.Command, yes *bool) *FlagOptions
- type OutputWriter
Constants ¶
View Source
const ( OutputFormatWide = "wide" OutputFormatCSV = "csv" )
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection(f *factory.Factory) (connection.Connection, error)
func NewFactory ¶
func PromptConfirm ¶
func ValidOutputs ¶
func ValidOutputs() []string
func ValidateOutputs ¶
Types ¶
type FlagOptions ¶
type FlagOptions struct { Required func() *FlagOptions Complete func(func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)) *FlagOptions }
FlagOptions defines additional flag options
func AddAllPages ¶
func AddAllPages(cmd *cobra.Command, output *bool) *FlagOptions
func AddChannelUpdate ¶
func AddChannelUpdate(cmd *cobra.Command, output *bool) *FlagOptions
func AddClusterID ¶
func AddClusterID(cmd *cobra.Command, output *string) *FlagOptions
func AddDanglingDeployments ¶
func AddDanglingDeployments(cmd *cobra.Command, output *bool) *FlagOptions
func AddNamespaceID ¶
func AddNamespaceID(cmd *cobra.Command, output *string) *FlagOptions
func AddOperatorId ¶
func AddOperatorId(cmd *cobra.Command, output *string) *FlagOptions
func AddOperatorUpdate ¶
func AddOperatorUpdate(cmd *cobra.Command, output *bool) *FlagOptions
func AddOrderBy ¶
func AddOrderBy(cmd *cobra.Command, output *string) *FlagOptions
func AddRevision ¶
func AddRevision(cmd *cobra.Command, output *int64) *FlagOptions
func AddTenantID ¶
func AddTenantID(cmd *cobra.Command, output *string) *FlagOptions
func AddTenantKind ¶
func AddTenantKind(cmd *cobra.Command, output *string) *FlagOptions
type OutputWriter ¶
type OutputWriter struct {
// contains filtered or unexported fields
}
func NewOutputFileWriter ¶
func NewOutputFileWriter(path string) (*OutputWriter, error)
func NewOutputWriter ¶
func NewOutputWriter(delegate io.Writer) (*OutputWriter, error)
func (*OutputWriter) Close ¶
func (in *OutputWriter) Close() error
Click to show internal directories.
Click to hide internal directories.