Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AuthConfigTypeAuthCodePKCE represents the OAuth 2.0 Authorization Code Grant with Proof Key // for Code Exchange (PKCE) flow. AuthConfigTypeAuthCodePKCE = "AuthCodePKCE" // AuthConfigTypeClientCredentials represents the OAuth 2.0 Client Credentials flow. AuthConfigTypeClientCredentials = "ClientCredentials" )
View Source
const (
// DefaultBaseURI is the default URI for the fuzzball-service
DefaultBaseURI = "http://localhost:8080"
)
Variables ¶
View Source
var ( // ErrRemoteNotFound is returned with the specified remote is not found. ErrRemoteNotFound = errors.New("remote not found") )
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config represents a configuration.
func (*Config) GetActiveRemote ¶
GetActiveRemote returns the active remote.
type Remote ¶
type Remote interface { GetAuthType() string SetAuthType(string) error GetAuthCodePKCEConfig() *oauth2.Config GetClientCredentialsConfig() *clientcredentials.Config GetToken() *oauth2.Token SetToken(t *oauth2.Token) error GetBaseURI() string SetBaseURI(baseURI string) error }
Remote defines the operations that can be performed on a remote config.
Click to show internal directories.
Click to hide internal directories.