v1alpha1

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyT

type KeyT struct {
	Key                      []byte
	ExcludeFromOidcDiscovery bool
}

type MockSigner

type MockSigner struct {
	SigningKey                *rsa.PrivateKey
	SigningKeyID              string
	SigningAlg                string
	TokenType                 string
	MaxTokenExpirationSeconds int64

	FetchError    error
	MetadataError error
	// contains filtered or unexported fields
}

func NewMockSigner

func NewMockSigner(t *testing.T, socketPath string) *MockSigner

NewMockSigner starts and returns a new MockSigner It servers on the provided socket.

func (*MockSigner) CleanUp

func (m *MockSigner) CleanUp()

CleanUp stops gRPC server and the underlying listener.

func (*MockSigner) FetchKeys

func (*MockSigner) GetSupportedKeys

func (m *MockSigner) GetSupportedKeys() map[string]KeyT

func (*MockSigner) Metadata

func (*MockSigner) Reset

func (m *MockSigner) Reset() error

Reset genrate and adds signing/supported keys to MockSigner instance.

func (*MockSigner) SetSupportedKeys

func (m *MockSigner) SetSupportedKeys(keys map[string]KeyT)

func (*MockSigner) Sign

func (*MockSigner) WaitForSupportedKeysFetch

func (m *MockSigner) WaitForSupportedKeysFetch()

Jump to

Keyboard shortcuts

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