Documentation
¶
Index ¶
- Variables
- func NewRegistration() *serviceregistry.Service[kasconnect.AccessServiceHandler]
- func OnConfigUpdate(p *access.Provider) serviceregistry.OnConfigUpdateHook
- type KeyAdapter
- func (p *KeyAdapter) Algorithm() ocrypto.KeyType
- func (p *KeyAdapter) ExportCertificate(_ context.Context) (string, error)
- func (p *KeyAdapter) ExportPrivateKey(_ context.Context) (*trust.PrivateKey, error)
- func (p *KeyAdapter) ExportPublicKey(ctx context.Context, format trust.KeyType) (string, error)
- func (p *KeyAdapter) ID() trust.KeyIdentifier
- func (p *KeyAdapter) IsLegacy() bool
- func (p *KeyAdapter) ProviderConfig() *policy.KeyProviderConfig
- func (p *KeyAdapter) System() string
- type KeyIndexer
- func (p *KeyIndexer) FindKeyByAlgorithm(ctx context.Context, algorithm string, includeLegacy bool) (trust.KeyDetails, error)
- func (p *KeyIndexer) FindKeyByID(ctx context.Context, id trust.KeyIdentifier) (trust.KeyDetails, error)
- func (p *KeyIndexer) ListKeys(ctx context.Context) ([]trust.KeyDetails, error)
- func (p *KeyIndexer) ListKeysWith(ctx context.Context, opts trust.ListKeyOptions) ([]trust.KeyDetails, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoActiveKeyForAlgorithm = errors.New("no active key found for specified algorithm")
Functions ¶
func NewRegistration ¶
func NewRegistration() *serviceregistry.Service[kasconnect.AccessServiceHandler]
func OnConfigUpdate ¶ added in v0.5.3
func OnConfigUpdate(p *access.Provider) serviceregistry.OnConfigUpdateHook
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 (*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 (*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)
Click to show internal directories.
Click to hide internal directories.