completion

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTagResourceCompletion

func GetTagResourceCompletion(ctx context.Context, r resources.ResourceType, namespace *string,
	fetchConfig *fetcher.Fetcher, tagType TagType) (string, []string, error)

func PrepareCmdArgs added in v3.0.4

func PrepareCmdArgs(cmdArgs []string) []string

Types

type CompletionResult

type CompletionResult struct {
	Cluster     string
	Header      string
	Completions []string
}

func ProcessCommandArgs

func ProcessCommandArgs(cmdVerb string, args []string, f *fetcher.Fetcher) (*CompletionResult, error)

func (*CompletionResult) GetFormattedOutput

func (c *CompletionResult) GetFormattedOutput() string

type TagResourceKey

type TagResourceKey struct {
	Namespace string
	Value     string
}

type TagResourcePair

type TagResourcePair struct {
	Key         TagResourceKey
	Occurrences int
}

func (*TagResourcePair) ToString

func (l *TagResourcePair) ToString(isNamespaced bool) string

type TagResourcePairList

type TagResourcePairList []TagResourcePair

func (TagResourcePairList) Len

func (p TagResourcePairList) Len() int

func (TagResourcePairList) Less

func (p TagResourcePairList) Less(i, j int) bool

func (TagResourcePairList) Swap

func (p TagResourcePairList) Swap(i, j int)

type TagType

type TagType int64
const (
	TagTypeLabel TagType = iota
	TagTypeFieldSelector
)

Jump to

Keyboard shortcuts

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