test

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func NewStaticHCPConfig(scadaEndpoint string, useTLS bool) *staticHCPConfig

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.

func (ErrorTokenSource) Token added in v0.1.1

func (m ErrorTokenSource) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL