id

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadIdentity

func LoadIdentity(certPath string) ([]byte, error)

Types

type ConfigProvider

type ConfigProvider interface {
	GetPath(s string) string
	GetStringSlice(key string) []string
	TranslatePath(path string) string
}

type EndpointService

type EndpointService interface {
	GetIdentity(label string, pkid []byte) (view.Identity, error)
}

type Provider added in v0.4.0

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

func NewProvider

func NewProvider(configProvider ConfigProvider, sigService SigService, endpointService EndpointService, kms *kms.KMS) (*Provider, error)

func (*Provider) Admins added in v0.4.0

func (p *Provider) Admins() []view.Identity

func (*Provider) Clients added in v0.4.0

func (p *Provider) Clients() []view.Identity

func (*Provider) DefaultIdentity added in v0.4.0

func (p *Provider) DefaultIdentity() view.Identity

func (*Provider) Identity added in v0.4.0

func (p *Provider) Identity(label string) view.Identity

func (*Provider) Load added in v0.4.0

func (p *Provider) Load() error

type SigService

type SigService interface {
	RegisterSigner(identity view.Identity, signer driver.Signer, verifier driver.Verifier) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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