fake

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeAuthenticator

func NewFakeAuthenticator(defaultCredentials auth.Credentials) auth.Authenticator

NewFakeAuthenticator creates a Fake authenticator for Bayeux/Salesforce.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

Authenticator is a test oriented fake Authenticator.

func (*Authenticator) CreateOrRenewCredentials

func (a *Authenticator) CreateOrRenewCredentials() (*auth.Credentials, error)

CreateOrRenewCredentials will always create a new set of credentials.

func (*Authenticator) NewCredentials

func (a *Authenticator) NewCredentials() (*auth.Credentials, error)

NewCredentials generates a new set of credentials.

func (*Authenticator) RefreshCredentials

func (a *Authenticator) RefreshCredentials() (*auth.Credentials, error)

RefreshCredentials renews credentials.

Jump to

Keyboard shortcuts

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