Documentation ¶
Index ¶
- type CredentialComposer
- type JWTSVIDAttributes
- type Repository
- type V1
- func (v1 V1) ComposeAgentX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, ...) (X509SVIDAttributes, error)
- func (v1 V1) ComposeServerX509CA(ctx context.Context, attributes X509CAAttributes) (X509CAAttributes, error)
- func (v1 V1) ComposeServerX509SVID(ctx context.Context, attributes X509SVIDAttributes) (X509SVIDAttributes, error)
- func (v1 V1) ComposeWorkloadJWTSVID(ctx context.Context, id spiffeid.ID, attributes JWTSVIDAttributes) (JWTSVIDAttributes, error)
- func (v1 V1) ComposeWorkloadX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, ...) (X509SVIDAttributes, error)
- type X509CAAttributes
- type X509SVIDAttributes
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 ¶
type V1 struct { plugin.Facade credentialcomposerv1.CredentialComposerPluginClient }
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 ¶
Click to show internal directories.
Click to hide internal directories.