Documentation
¶
Index ¶
- type Client
- func (c *Client) GetCurrentAccountSettings() Config
- func (c Client) GetGlobalHeader() map[string]string
- func (c Client) GetLocalHeader() map[string]string
- func (c Client) PushConfigToServer(idx int)
- func (c *Client) ReadLockfile()
- func (c *Client) SetupEntitlements()
- func (c *Client) SetupHttpClient()
- func (c *Client) SetupLocalHeader()
- type Config
- type ConfigManager
- type Entitlements
- type Lockfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Lockfile Lockfile
LocalAuthHeader string
HttpClient http.Client
Entitlements Entitlements
ConfigManager ConfigManager
}
func (*Client) GetCurrentAccountSettings ¶
func (Client) GetGlobalHeader ¶
func (Client) GetLocalHeader ¶
func (Client) PushConfigToServer ¶
func (*Client) ReadLockfile ¶
func (c *Client) ReadLockfile()
func (*Client) SetupEntitlements ¶
func (c *Client) SetupEntitlements()
func (*Client) SetupHttpClient ¶
func (c *Client) SetupHttpClient()
func (*Client) SetupLocalHeader ¶
func (c *Client) SetupLocalHeader()
type Config ¶
type Config struct {
Type string `json:"type"`
Data string `json:"data"`
Modified int `json:"modified"`
Filename string `json:"-"`
}
func (Config) WriteConfigToFile ¶
func (cfg_file Config) WriteConfigToFile()
type ConfigManager ¶
type ConfigManager struct {
Configs []Config
}
func (*ConfigManager) LoadAllConfigurationFiles ¶
func (cm *ConfigManager) LoadAllConfigurationFiles()
type Entitlements ¶
Click to show internal directories.
Click to hide internal directories.