Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v0.4.0
type Config struct {
Use string
Short string
Long string
Version string
Env cliruntime.Env
Auth cliruntime.AuthProvider
ExtraCommands []*cobra.Command
Disabled map[string]bool // command paths to remove, such as "db migrate goto"
ExtraMigrationSources []migrate.Source
DeclarativeKinds []DeclarativeKind
OnTokenResolved func(token string) error
}
Config describes one CLI instance.
func DefaultConfig ¶ added in v0.4.0
func DefaultConfig() Config
type DeclarativeKind ¶ added in v0.4.0
type DeclarativeKind struct {
Name string
Plural string
CanonicalKind string
Aliases []string
TableColumns []string
NewObject func() v1alpha1.Object
Row func(v1alpha1.Object) []string
}
DeclarativeKind describes a downstream v1alpha1 kind exposed through generic get, list, and delete dispatch.
Click to show internal directories.
Click to hide internal directories.