Documentation ¶
Overview ¶
Package config contains a JSON-serializable configuration file for use by the CLI tooling. This is a separate package to allow a browser-based user to download a ready-to-run configuration file from the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DefaultTenant *tenant.ID Host string Insecure bool Session *session.Session Token string }
Config contains the JSON-serializable configuration data.
func (*Config) ConfigureHostname ¶
ConfigureHostname parses the given host as a URL and updates the Host and Insecure fields. The url must include a username and may include a password. If no password is provided, then one will be read in a secure fashion from the console.
func (*Config) ConfigureSession ¶
ConfigureSession extracts the elements from the IssueResponse.
func (*Config) WriteToFile ¶
WriteToFile writes the configuration to disk. This method will create any necessary directories.