Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // HostPath is the host name of the HCP API, without a scheme prefix. HostPath string `json:"host_path"` // AuthURL is the URL of the authentication provider, inclusive of the 'https' scheme prefix. AuthURL string `json:"auth_url"` // ClientID is the client ID of a Service Principal Key. ClientID string `json:"client_id"` // ClientSecret is the client secret of a Service Principal Key, only provided on creation. ClientSecret string `json:"client_secret"` // SourceChannel denotes the client (channel) that originiated the request. // This is synonymous to a user-agent. SourceChannel string `json:"source_channel"` }
Config contains the client's configuration options
func (*Config) Canonicalize ¶
func (c *Config) Canonicalize()
Canonicalize populates default values for config fields that are otherwise unset.
Click to show internal directories.
Click to hide internal directories.