Documentation ¶
Index ¶
- func NewStaticHCPCloudDevConfig() *staticHCPConfig
- func NewStaticHCPCloudDevConfigWithClientCredentials(clientID, clientSecret string) *staticHCPConfig
- func NewStaticHCPConfig(scadaEndpoint string, useTLS bool) *staticHCPConfig
- func NewStaticHCPConfigErrorTokenSource(scadaEndpoint string, useTLS bool, err error) *staticHCPConfig
- type ErrorTokenSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStaticHCPCloudDevConfig ¶
func NewStaticHCPCloudDevConfig() *staticHCPConfig
NewStaticHCPCloudDevConfig will return a static configuration that is configured with cloud-dev's Traefik SCADA port.
func NewStaticHCPCloudDevConfigWithClientCredentials ¶
func NewStaticHCPCloudDevConfigWithClientCredentials(clientID, clientSecret string) *staticHCPConfig
func NewStaticHCPConfig ¶
NewStaticHCPConfig creates an instance of HCPConfig using provided endpoint and TLS setting. If TLS is enabled it will not verify the server's certificate.
func NewStaticHCPConfigErrorTokenSource ¶ added in v0.1.1
func NewStaticHCPConfigErrorTokenSource(scadaEndpoint string, useTLS bool, err error) *staticHCPConfig
NewStaticHCPConfigErrorTokenSource is the same as NewStaticHCPConfig but has a token source that always returns err
Types ¶
type ErrorTokenSource ¶ added in v0.1.1
type ErrorTokenSource struct {
// contains filtered or unexported fields
}
ErrorTokenSource is an implementation of an oauth2 token source that always returns an error when its Token() function is called.
Click to show internal directories.
Click to hide internal directories.