fakeupstreamauthority

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TrustDomain                 string
	UseIntermediate             bool
	DisallowPublishJWTKey       bool
	MutateMintX509CAResponse    func(*upstreamauthority.MintX509CAResponse)
	MutatePublishJWTKeyResponse func(*upstreamauthority.PublishJWTKeyResponse)
}

type UpstreamAuthority

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

func New

func New(t *testing.T, config Config) *UpstreamAuthority

func (*UpstreamAuthority) AppendJWTKey

func (ua *UpstreamAuthority) AppendJWTKey(jwtKey *common.PublicKey)

func (*UpstreamAuthority) JWTKeys

func (ua *UpstreamAuthority) JWTKeys() []*common.PublicKey

func (*UpstreamAuthority) RotateX509CA

func (ua *UpstreamAuthority) RotateX509CA()

func (*UpstreamAuthority) TriggerJWTKeysChanged

func (ua *UpstreamAuthority) TriggerJWTKeysChanged()

func (*UpstreamAuthority) TriggerX509RootsChanged

func (ua *UpstreamAuthority) TriggerX509RootsChanged()

func (*UpstreamAuthority) X509Intermediate

func (ua *UpstreamAuthority) X509Intermediate() *x509.Certificate

func (*UpstreamAuthority) X509Root

func (ua *UpstreamAuthority) X509Root() *x509.Certificate

func (*UpstreamAuthority) X509Roots

func (ua *UpstreamAuthority) X509Roots() []*x509.Certificate

Jump to

Keyboard shortcuts

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