sample

package
v0.0.0-...-cb1a7a4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

func NewAuthenticator

func NewAuthenticator(sc *opt.SampleConfig, key interface{}) *Authenticator

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(r *http.Request) (*middleware.Credential, error)

type TokenGenerator

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

func NewHS256TokenGenerator

func NewHS256TokenGenerator(key []byte) (*TokenGenerator, error)

func (*TokenGenerator) GenerateAll

func (tg *TokenGenerator) GenerateAll(ctx context.Context, sc *opt.SampleConfig) *TokenMap

func (*TokenGenerator) Key

func (tg *TokenGenerator) Key() interface{}

type TokenMap

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

func (*TokenMap) ForStep

func (tm *TokenMap) ForStep(runID, stepName string) (tok string, found bool)

func (*TokenMap) ForTrigger

func (tm *TokenMap) ForTrigger(triggerName string) (tok string, found bool)

Jump to

Keyboard shortcuts

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