Documentation ¶
Overview ¶
Package config parses config and plugin configuration files. It provides APIs to read and write config files and manage multiple profiles.
Index ¶
- Constants
- type AuthConfig
- type Config
- func (c Config) ClientId() string
- func (c Config) ClientSecret() string
- func (c Config) ConfigureCredentialsAuth(clientId string, clientSecret string) bool
- func (c Config) ConfigureLoginAuth(clientId string, redirectUri string, scopes string) bool
- func (c *Config) ConfigureOrgTenant(organization string, tenant string) bool
- func (c Config) ConfigurePatAuth(pat string) bool
- func (c Config) Pat() string
- func (c Config) RedirectUri() string
- func (c Config) Scopes() string
- func (c Config) SetAuthGrantType(grantType string)
- func (c Config) SetAuthProperty(key string, value string)
- func (c Config) SetAuthScopes(scopes string)
- func (c *Config) SetDebug(debug bool)
- func (c Config) SetHeader(key string, value string)
- func (c *Config) SetInsecure(insecure bool)
- func (c Config) SetParameter(key string, value string)
- func (c *Config) SetUri(uri string) error
- func (c *Config) SetVersion(version string)
- type ConfigFileStore
- type ConfigProvider
- type ConfigStore
Constants ¶
View Source
const DefaultProfile = "default"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
AuthConfig with metadata used for authenticating the caller.
type Config ¶
type Config struct { Uri *url.URL Organization string Tenant string Parameter map[string]string Header map[string]string Auth AuthConfig Insecure bool Debug bool Output string Version string }
The Config structure holds the config data from the selected profile.
func (Config) ClientSecret ¶
func (Config) ConfigureCredentialsAuth ¶
func (Config) ConfigureLoginAuth ¶
func (*Config) ConfigureOrgTenant ¶
func (Config) ConfigurePatAuth ¶
func (Config) RedirectUri ¶
func (Config) SetAuthGrantType ¶
func (Config) SetAuthProperty ¶
func (Config) SetAuthScopes ¶
func (*Config) SetInsecure ¶
func (Config) SetParameter ¶
func (*Config) SetVersion ¶
type ConfigFileStore ¶
type ConfigFileStore struct {
// contains filtered or unexported fields
}
ConfigFileStore reads and writes the configuration file
The config store is looking for the config file in "$HOME/.uipath/config" path.
func NewConfigFileStore ¶
func NewConfigFileStore(filePath string) *ConfigFileStore
func NewConfigFileStoreWithData ¶
func NewConfigFileStoreWithData(filePath string, data []byte) *ConfigFileStore
func (ConfigFileStore) Read ¶
func (s ConfigFileStore) Read() ([]byte, error)
func (ConfigFileStore) Write ¶
func (s ConfigFileStore) Write(data []byte) error
type ConfigProvider ¶
type ConfigProvider struct {
// contains filtered or unexported fields
}
ConfigProvider parses the config file with the profiles.
func NewConfigProvider ¶
func NewConfigProvider(store ConfigStore) *ConfigProvider
func (ConfigProvider) Config ¶
func (p ConfigProvider) Config(name string) *Config
func (*ConfigProvider) Load ¶
func (p *ConfigProvider) Load() error
func (ConfigProvider) New ¶
func (p ConfigProvider) New() Config
Click to show internal directories.
Click to hide internal directories.