kas

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: BSD-3-Clause-Clear Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoActiveKeyForAlgorithm = errors.New("no active key found for specified algorithm")

Functions

func OnConfigUpdate added in v0.5.3

Types

type KeyAdapter added in v0.5.3

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

platformKeyAdapter is an adapter for KeyDetails, where keys come from the platform

func (*KeyAdapter) Algorithm added in v0.5.3

func (p *KeyAdapter) Algorithm() ocrypto.KeyType

Might need to convert this to a standard format

func (*KeyAdapter) ExportCertificate added in v0.5.3

func (p *KeyAdapter) ExportCertificate(_ context.Context) (string, error)

func (*KeyAdapter) ExportPrivateKey added in v0.5.5

func (p *KeyAdapter) ExportPrivateKey(_ context.Context) (*trust.PrivateKey, error)

func (*KeyAdapter) ExportPublicKey added in v0.5.3

func (p *KeyAdapter) ExportPublicKey(ctx context.Context, format trust.KeyType) (string, error)

func (*KeyAdapter) ID added in v0.5.3

func (p *KeyAdapter) ID() trust.KeyIdentifier

func (*KeyAdapter) IsLegacy added in v0.5.3

func (p *KeyAdapter) IsLegacy() bool

func (*KeyAdapter) ProviderConfig added in v0.7.0

func (p *KeyAdapter) ProviderConfig() *policy.KeyProviderConfig

func (*KeyAdapter) System added in v0.5.3

func (p *KeyAdapter) System() string

This will point to the correct "manager"

type KeyIndexer added in v0.5.3

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

Used for reaching out to platform to get keys

func NewPlatformKeyIndexer added in v0.5.3

func NewPlatformKeyIndexer(sdk *sdk.SDK, kasURI string, l *logger.Logger) *KeyIndexer

func (*KeyIndexer) FindKeyByAlgorithm added in v0.5.3

func (p *KeyIndexer) FindKeyByAlgorithm(ctx context.Context, algorithm string, includeLegacy bool) (trust.KeyDetails, error)

func (*KeyIndexer) FindKeyByID added in v0.5.3

func (p *KeyIndexer) FindKeyByID(ctx context.Context, id trust.KeyIdentifier) (trust.KeyDetails, error)

func (*KeyIndexer) ListKeys added in v0.5.3

func (p *KeyIndexer) ListKeys(ctx context.Context) ([]trust.KeyDetails, error)

func (*KeyIndexer) ListKeysWith added in v0.9.0

func (p *KeyIndexer) ListKeysWith(ctx context.Context, opts trust.ListKeyOptions) ([]trust.KeyDetails, error)

func (*KeyIndexer) String added in v0.10.0

func (p *KeyIndexer) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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