list

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

func NewListCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

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

func (*NamespacesCmd) RunSpaces

func (cmd *NamespacesCmd) RunSpaces(ctx context.Context) error

RunSpaces executes the functionality

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 {
	*flags.GlobalFlags
	Namespace   string
	Project     []string
	All         bool
	AllProjects bool
	// contains filtered or unexported fields
}

SharedSecretsCmd holds the cmd flags

func (*SharedSecretsCmd) Run

func (cmd *SharedSecretsCmd) Run(command *cobra.Command) error

Run executes the functionality

type TeamsCmd

type TeamsCmd struct {
	*flags.GlobalFlags
	// contains filtered or unexported fields
}

TeamsCmd holds the cmd flags

func (*TeamsCmd) Run

func (cmd *TeamsCmd) Run(ctx context.Context) error

type VClustersCmd

type VClustersCmd struct {
	*flags.GlobalFlags
	cli.ListOptions

	Project string
	// contains filtered or unexported fields
}

VClustersCmd holds the login cmd flags

func (*VClustersCmd) Run

func (cmd *VClustersCmd) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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