credentialcomposer

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 1 module, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialComposer

type CredentialComposer interface {
	catalog.PluginInfo

	ComposeServerX509CA(ctx context.Context, attributes X509CAAttributes) (X509CAAttributes, error)
	ComposeServerX509SVID(ctx context.Context, attributes X509SVIDAttributes) (X509SVIDAttributes, error)
	ComposeAgentX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, attributes X509SVIDAttributes) (X509SVIDAttributes, error)
	ComposeWorkloadX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, attributes X509SVIDAttributes) (X509SVIDAttributes, error)
	ComposeWorkloadJWTSVID(ctx context.Context, id spiffeid.ID, attributes JWTSVIDAttributes) (JWTSVIDAttributes, error)
}

type JWTSVIDAttributes

type JWTSVIDAttributes struct {
	Claims map[string]interface{}
}

type Repository

type Repository struct {
	CredentialComposers []CredentialComposer
}

func (*Repository) AddCredentialComposer

func (repo *Repository) AddCredentialComposer(credentialComposer CredentialComposer)

func (*Repository) Clear

func (repo *Repository) Clear()

func (*Repository) GetCredentialComposers

func (repo *Repository) GetCredentialComposers() []CredentialComposer

type V1

func (V1) ComposeAgentX509SVID

func (v1 V1) ComposeAgentX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, attributes X509SVIDAttributes) (X509SVIDAttributes, error)

func (V1) ComposeServerX509CA

func (v1 V1) ComposeServerX509CA(ctx context.Context, attributes X509CAAttributes) (X509CAAttributes, error)

func (V1) ComposeServerX509SVID

func (v1 V1) ComposeServerX509SVID(ctx context.Context, attributes X509SVIDAttributes) (X509SVIDAttributes, error)

func (V1) ComposeWorkloadJWTSVID

func (v1 V1) ComposeWorkloadJWTSVID(ctx context.Context, id spiffeid.ID, attributes JWTSVIDAttributes) (JWTSVIDAttributes, error)

func (V1) ComposeWorkloadX509SVID

func (v1 V1) ComposeWorkloadX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, attributes X509SVIDAttributes) (X509SVIDAttributes, error)

type X509CAAttributes

type X509CAAttributes struct {
	Subject           pkix.Name
	PolicyIdentifiers []asn1.ObjectIdentifier
	ExtraExtensions   []pkix.Extension
}

type X509SVIDAttributes

type X509SVIDAttributes struct {
	Subject         pkix.Name
	DNSNames        []string
	ExtraExtensions []pkix.Extension
}

Jump to

Keyboard shortcuts

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