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"`
	Organization string `yaml:"organization,omitempty"`
	Project      string `yaml:"project,omitempty"`
	Component    string `yaml:"component,omitempty"`
	Environment  string `yaml:"environment,omitempty"`
	DataPlane    string `yaml:"dataPlane,omitempty"`
}
    Context represents a single named configuration context.
type ControlPlane ¶ added in v0.3.0
type ControlPlane struct {
	Type     string `yaml:"type"`            // "local" or "remote"
	Endpoint string `yaml:"endpoint"`        // API server URL
	Token    string `yaml:"token,omitempty"` // Optional auth token
}
    ControlPlane defines OpenChoreo API server configuration
type StoredConfig ¶
type StoredConfig struct {
	CurrentContext string        `yaml:"currentContext"`
	ControlPlane   *ControlPlane `yaml:"controlPlane,omitempty"`
	Contexts       []Context     `yaml:"contexts"`
}
    StoredConfig is the structure to store configuration contexts.
 Click to show internal directories. 
   Click to hide internal directories.