flags

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagHelper

type FlagHelper[T any] interface {
	Declare(cmd *cobra.Command)
	Parse(elem T, cmd *cobra.Command, args []string)
}

func NewOverrideFlags

func NewOverrideFlags() FlagHelper[*OverrideConfig]

func NewSelectorFlags

func NewSelectorFlags(clientGetter func() client.Client) FlagHelper[*SelectedRecordsResult]

type OverrideConfig

type OverrideConfig struct {
	Namespace  string
	DataSource string
}

type SelectedRecordData

type SelectedRecordData struct {
	Total    uint32
	Resource *model.Resource
	Records  chan *model.Record
}

type SelectedRecordsResult

type SelectedRecordsResult struct {
	RecordProviders []func() SelectedRecordData
	Resources       []*model.Resource
}

Jump to

Keyboard shortcuts

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