Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigCmd ¶
func NewConfigCmd(impl api.CommandImplementationInterface) *cobra.Command
Types ¶
type Context ¶
type Context struct {
Name string `yaml:"name"`
ControlPlane string `yaml:"controlplane"` // Reference to controlplanes[].name
Credentials string `yaml:"credentials,omitempty"` // Reference to credentials[].name
Namespace string `yaml:"namespace,omitempty"`
Project string `yaml:"project,omitempty"`
Component string `yaml:"component,omitempty"`
}
Context represents a single named configuration context.
type ControlPlane ¶ added in v0.3.0
ControlPlane defines OpenChoreo API server configuration
type Credential ¶ added in v0.11.0
type Credential struct {
Name string `yaml:"name"`
ClientID string `yaml:"clientId,omitempty"`
ClientSecret string `yaml:"clientSecret,omitempty"`
Token string `yaml:"token,omitempty"`
RefreshToken string `yaml:"refreshToken,omitempty"`
AuthMethod string `yaml:"authMethod,omitempty"` // "pkce" or "client_credentials"
}
Credential represents authentication credentials
type StoredConfig ¶
type StoredConfig struct {
CurrentContext string `yaml:"currentContext"`
ControlPlanes []ControlPlane `yaml:"controlplanes"`
Credentials []Credential `yaml:"credentials,omitempty"`
Contexts []Context `yaml:"contexts"`
}
StoredConfig is the structure to store configuration contexts.
Click to show internal directories.
Click to hide internal directories.