Documentation
¶
Index ¶
- func AddCommonFlags(cmd *cobra.Command, options *cli.ListOptions)
- func NewListCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
- func PrintData[T any](logger log.Logger, outputType string, headers []string, items []T, ...) error
- type ClustersCmd
- type NamespacesCmd
- type ProjectsCmd
- type SharedSecretsCmd
- type TeamsCmd
- type VClustersCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommonFlags ¶ added in v0.25.0
func AddCommonFlags(cmd *cobra.Command, options *cli.ListOptions)
func NewListCmd ¶
NewListCmd creates a new cobra command
func PrintData ¶ added in v0.25.0
func PrintData[T any](logger log.Logger, outputType string, headers []string, items []T, getValues func(T) []string) error
PrintData is a generic function that prints data in different formats (JSON or table). It takes a logger for output, an output type (json/table), a list of headers, a slice of items, and a function to extract values from each item.
Types ¶
type ClustersCmd ¶
type ClustersCmd struct {
*flags.GlobalFlags
// contains filtered or unexported fields
}
ClustersCmd holds the login cmd flags
func (*ClustersCmd) RunClusters ¶
func (cmd *ClustersCmd) RunClusters(ctx context.Context) error
RunClusters executes the functionality
type NamespacesCmd ¶
type NamespacesCmd struct {
*flags.GlobalFlags
// contains filtered or unexported fields
}
NamespacesCmd holds the login cmd flags
type ProjectsCmd ¶
type ProjectsCmd struct {
*flags.GlobalFlags
cli.ListOptions
// contains filtered or unexported fields
}
ProjectsCmd holds the login cmd flags
func (*ProjectsCmd) RunProjects ¶
func (cmd *ProjectsCmd) RunProjects(ctx context.Context) error
RunProjects executes the functionality
type SharedSecretsCmd ¶
type SharedSecretsCmd struct {
// contains filtered or unexported fields
}
SharedSecretsCmd holds the cmd flags
type TeamsCmd ¶
type TeamsCmd struct {
*flags.GlobalFlags
// contains filtered or unexported fields
}
TeamsCmd holds the cmd flags
type VClustersCmd ¶
type VClustersCmd struct {
*flags.GlobalFlags
cli.ListOptions
Project string
// contains filtered or unexported fields
}
VClustersCmd holds the login cmd flags
Click to show internal directories.
Click to hide internal directories.