Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + const MySQL + const PluginName + const PostgreSQL + const SQLite + type AttestedNode struct + CanReattest bool + DataType string + ExpiresAt time.Time + NewExpiresAt *time.Time + NewSerialNumber string + Selectors []*NodeSelector + SerialNumber string + SpiffeID string + func (AttestedNode) TableName() string + type Bundle struct + Data []byte + FederatedEntries []RegisteredEntry + TrustDomain string + type DNSName struct + RegisteredEntryID uint + Value string + func (DNSName) TableName() string + type FederatedTrustDomain struct + BundleEndpointProfile string + BundleEndpointURL string + EndpointSPIFFEID string + Implicit bool + TrustDomain string + func (FederatedTrustDomain) TableName() string + type JoinToken struct + Expiry int64 + Token string + type Migration struct + CodeVersion string + Version int + type Model struct + CreatedAt time.Time + ID uint + UpdatedAt time.Time + type NodeSelector struct + SpiffeID string + Type string + Value string + func (NodeSelector) TableName() string + type Plugin struct + func New(log logrus.FieldLogger) *Plugin + func (ds *Plugin) AppendBundle(ctx context.Context, b *common.Bundle) (bundle *common.Bundle, err error) + func (ds *Plugin) Close() error + func (ds *Plugin) Configure(ctx context.Context, hclConfiguration string) error + func (ds *Plugin) CountAttestedNodes(ctx context.Context) (count int32, err error) + func (ds *Plugin) CountBundles(ctx context.Context) (count int32, err error) + func (ds *Plugin) CountRegistrationEntries(ctx context.Context) (count int32, err error) + func (ds *Plugin) CreateAttestedNode(ctx context.Context, node *common.AttestedNode) (attestedNode *common.AttestedNode, err error) + func (ds *Plugin) CreateBundle(ctx context.Context, b *common.Bundle) (bundle *common.Bundle, err error) + func (ds *Plugin) CreateFederationRelationship(ctx context.Context, fr *datastore.FederationRelationship) (newFr *datastore.FederationRelationship, err error) + func (ds *Plugin) CreateJoinToken(ctx context.Context, token *datastore.JoinToken) (err error) + func (ds *Plugin) CreateOrReturnRegistrationEntry(ctx context.Context, entry *common.RegistrationEntry) (registrationEntry *common.RegistrationEntry, existing bool, err error) + func (ds *Plugin) CreateRegistrationEntry(ctx context.Context, entry *common.RegistrationEntry) (registrationEntry *common.RegistrationEntry, err error) + func (ds *Plugin) DeleteAttestedNode(ctx context.Context, spiffeID string) (attestedNode *common.AttestedNode, err error) + func (ds *Plugin) DeleteBundle(ctx context.Context, trustDomainID string, mode datastore.DeleteMode) (err error) + func (ds *Plugin) DeleteFederationRelationship(ctx context.Context, trustDomain spiffeid.TrustDomain) error + func (ds *Plugin) DeleteJoinToken(ctx context.Context, token string) (err error) + func (ds *Plugin) DeleteRegistrationEntry(ctx context.Context, entryID string) (registrationEntry *common.RegistrationEntry, err error) + func (ds *Plugin) FetchAttestedNode(ctx context.Context, spiffeID string) (attestedNode *common.AttestedNode, err error) + func (ds *Plugin) FetchBundle(ctx context.Context, trustDomainID string) (resp *common.Bundle, err error) + func (ds *Plugin) FetchFederationRelationship(ctx context.Context, trustDomain spiffeid.TrustDomain) (fr *datastore.FederationRelationship, err error) + func (ds *Plugin) FetchJoinToken(ctx context.Context, token string) (resp *datastore.JoinToken, err error) + func (ds *Plugin) FetchRegistrationEntry(ctx context.Context, entryID string) (*common.RegistrationEntry, error) + func (ds *Plugin) GetNodeSelectors(ctx context.Context, spiffeID string, ...) (selectors []*common.Selector, err error) + func (ds *Plugin) ListAttestedNodes(ctx context.Context, req *datastore.ListAttestedNodesRequest) (resp *datastore.ListAttestedNodesResponse, err error) + func (ds *Plugin) ListBundles(ctx context.Context, req *datastore.ListBundlesRequest) (resp *datastore.ListBundlesResponse, err error) + func (ds *Plugin) ListFederationRelationships(ctx context.Context, req *datastore.ListFederationRelationshipsRequest) (resp *datastore.ListFederationRelationshipsResponse, err error) + func (ds *Plugin) ListNodeSelectors(ctx context.Context, req *datastore.ListNodeSelectorsRequest) (resp *datastore.ListNodeSelectorsResponse, err error) + func (ds *Plugin) ListRegistrationEntries(ctx context.Context, req *datastore.ListRegistrationEntriesRequest) (resp *datastore.ListRegistrationEntriesResponse, err error) + func (ds *Plugin) PruneBundle(ctx context.Context, trustDomainID string, expiresBefore time.Time) (changed bool, err error) + func (ds *Plugin) PruneJoinTokens(ctx context.Context, expiry time.Time) (err error) + func (ds *Plugin) PruneRegistrationEntries(ctx context.Context, expiresBefore time.Time) (err error) + func (ds *Plugin) SetBundle(ctx context.Context, b *common.Bundle) (bundle *common.Bundle, err error) + func (ds *Plugin) SetNodeSelectors(ctx context.Context, spiffeID string, selectors []*common.Selector) (err error) + func (ds *Plugin) UpdateAttestedNode(ctx context.Context, n *common.AttestedNode, mask *common.AttestedNodeMask) (node *common.AttestedNode, err error) + func (ds *Plugin) UpdateBundle(ctx context.Context, b *common.Bundle, mask *common.BundleMask) (bundle *common.Bundle, err error) + func (ds *Plugin) UpdateFederationRelationship(ctx context.Context, fr *datastore.FederationRelationship, ...) (newFr *datastore.FederationRelationship, err error) + func (ds *Plugin) UpdateRegistrationEntry(ctx context.Context, e *common.RegistrationEntry, ...) (entry *common.RegistrationEntry, err error) + type RegisteredEntry struct + Admin bool + DNSList []DNSName + Downstream bool + EntryID string + Expiry int64 + FederatesWith []Bundle + Hint string + JWTSvidTTL int32 + ParentID string + RevisionNumber int64 + Selectors []Selector + SpiffeID string + StoreSvid bool + TTL int32 + type Selector struct + RegisteredEntryID uint + Type string + Value string + type V3AttestedNode struct + DataType string + ExpiresAt time.Time + SerialNumber string + SpiffeID string + func (V3AttestedNode) TableName() string