query

package
v0.33.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const AllCategory = "all"

Variables

This section is empty.

Functions

func ParseTypesAndNames

func ParseTypesAndNames(args ...string) (resourceTuples []typeGroupNames, errs []error)

ParseTypesAndNames parses

	``
 	`<type1>[,<type2>,...] [<name1> [<name2>...]]`
 	`<type1>/<name1> [<type2>/<name2>...]`

into resource tuples. Every tuple will result in a query lateron.

func SplitGroupKindAndCategories

func SplitGroupKindAndCategories(tgns []typeGroupNames) (GroupKindNames, CategoryNames)

SplitGroupKindAndCategories splits specified types into fully qualified GroupKinds and categories.

Types

type CategoryNames

type CategoryNames map[string][]string

type GetCmd

type GetCmd struct {
	Namespace     string `short:"n" name:"namespace" help:"If present, the namespace scope for this CLI request."`
	AllNamespaces bool   `` /* 178-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetCmd) AfterApply

func (c *GetCmd) AfterApply(kongCtx *kong.Context) error

AfterApply constructs and binds Upbound-specific context to any subcommands that have Run() methods that receive it.

func (*GetCmd) BeforeReset

func (c *GetCmd) BeforeReset(p *kong.Path, maturity feature.Maturity) error

func (*GetCmd) Help

func (c *GetCmd) Help() string

func (*GetCmd) Run

func (c *GetCmd) Run(ctx context.Context, kongCtx *kong.Context, upCtx *upbound.Context, queryTemplate resource.QueryObject, kubeconfig *rest.Config, notFound NotFound) error

type GroupKindNames

type GroupKindNames map[metav1.GroupKind][]string

type NotFound

type NotFound interface {
	PrintMessage() error
}

type NotFoundFunc

type NotFoundFunc func() error

func (NotFoundFunc) PrintMessage

func (f NotFoundFunc) PrintMessage() error

type QueryCmd

type QueryCmd struct {

	// flags about the scope
	Namespace    string `` /* 211-byte string literal not displayed */
	Group        string `` /* 138-byte string literal not displayed */
	ControlPlane string `` /* 159-byte string literal not displayed */
	AllGroups    bool   `short:"A" name:"all-groups" help:"Query in all groups."`
	// contains filtered or unexported fields
}

func (*QueryCmd) AfterApply

func (c *QueryCmd) AfterApply(kongCtx *kong.Context) error

AfterApply constructs and binds Upbound-specific context to any subcommands that have Run() methods that receive it.

func (*QueryCmd) BeforeReset

func (c *QueryCmd) BeforeReset(p *kong.Path, maturity feature.Maturity) error

BeforeReset is the first hook to run.

func (*QueryCmd) Help

func (c *QueryCmd) Help() string

func (*QueryCmd) Run

func (c *QueryCmd) Run(ctx context.Context, kongCtx *kong.Context, upCtx *upbound.Context, queryTemplate resource.QueryObject, kubeconfig *rest.Config, notFound NotFound) error

type RESTScopeNameFunc

type RESTScopeNameFunc string

func (RESTScopeNameFunc) Name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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