Documentation
¶
Index ¶
- Constants
- func NetworkConfigSchema() *schema.Schema
- func NewContext(parent context.Context, config *Config) context.Context
- type Config
- func (c *Config) AddTempKeyPair(pairName, keyID, keySecret string)
- func (c *Config) BuiltInConfigs() (map[string]*core.Schema, error)
- func (c *Config) Delete(key string) error
- func (c *Config) FilePath() string
- func (c *Config) Get(key string, out any) error
- func (c *Config) GetTempKeyPair(pairName string) *KeyPair
- func (c *Config) NewTempConfig()
- func (c *Config) Set(key string, value interface{}) error
- func (c *Config) SetTempConfig(key string, value interface{}) error
- func (c *Config) TempConfig() map[string]interface{}
- type KeyPair
- type NetworkConfig
Constants ¶
View Source
const ( CONFIG_FILE_TYPE = "yaml" CONFIG_FILE = "cli.yaml" ENV_PREFIX = "MGC" )
Variables ¶
This section is empty.
Functions ¶
func NetworkConfigSchema ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func FromContext ¶
func New ¶
func New(pm *profile_manager.ProfileManager) *Config
func (*Config) AddTempKeyPair ¶
func (*Config) GetTempKeyPair ¶
func (*Config) NewTempConfig ¶
func (c *Config) NewTempConfig()
func (*Config) SetTempConfig ¶
func (*Config) TempConfig ¶
type NetworkConfig ¶
type NetworkConfig struct {
ServerUrl string `json:"serverUrl,omitempty" jsonschema:"description=Manually specify the server to use,format=uri"`
}
Click to show internal directories.
Click to hide internal directories.