Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + type DataStore struct + func New(tb testing.TB) *DataStore + func (s *DataStore) AppendBundle(ctx context.Context, bundle *common.Bundle) (*common.Bundle, error) + func (s *DataStore) AppendNextError(err error) + func (s *DataStore) CountAttestedNodes(ctx context.Context) (int32, error) + func (s *DataStore) CountBundles(ctx context.Context) (int32, error) + func (s *DataStore) CountRegistrationEntries(ctx context.Context) (int32, error) + func (s *DataStore) CreateAttestedNode(ctx context.Context, node *common.AttestedNode) (*common.AttestedNode, error) + func (s *DataStore) CreateBundle(ctx context.Context, bundle *common.Bundle) (*common.Bundle, error) + func (s *DataStore) CreateFederationRelationship(c context.Context, fr *datastore.FederationRelationship) (*datastore.FederationRelationship, error) + func (s *DataStore) CreateJoinToken(ctx context.Context, token *datastore.JoinToken) error + func (s *DataStore) CreateOrReturnRegistrationEntry(ctx context.Context, entry *common.RegistrationEntry) (*common.RegistrationEntry, bool, error) + func (s *DataStore) CreateRegistrationEntry(ctx context.Context, entry *common.RegistrationEntry) (*common.RegistrationEntry, error) + func (s *DataStore) DeleteAttestedNode(ctx context.Context, spiffeID string) (*common.AttestedNode, error) + func (s *DataStore) DeleteBundle(ctx context.Context, trustDomain string, mode datastore.DeleteMode) error + func (s *DataStore) DeleteFederationRelationship(c context.Context, trustDomain spiffeid.TrustDomain) error + func (s *DataStore) DeleteJoinToken(ctx context.Context, token string) error + func (s *DataStore) DeleteRegistrationEntry(ctx context.Context, entryID string) (*common.RegistrationEntry, error) + func (s *DataStore) FetchAttestedNode(ctx context.Context, spiffeID string) (*common.AttestedNode, error) + func (s *DataStore) FetchBundle(ctx context.Context, trustDomain string) (*common.Bundle, error) + func (s *DataStore) FetchFederationRelationship(c context.Context, trustDomain spiffeid.TrustDomain) (*datastore.FederationRelationship, error) + func (s *DataStore) FetchJoinToken(ctx context.Context, token string) (*datastore.JoinToken, error) + func (s *DataStore) FetchRegistrationEntry(ctx context.Context, entryID string) (*common.RegistrationEntry, error) + func (s *DataStore) GetNodeSelectors(ctx context.Context, spiffeID string, ...) ([]*common.Selector, error) + func (s *DataStore) ListAttestedNodes(ctx context.Context, req *datastore.ListAttestedNodesRequest) (*datastore.ListAttestedNodesResponse, error) + func (s *DataStore) ListBundles(ctx context.Context, req *datastore.ListBundlesRequest) (*datastore.ListBundlesResponse, error) + func (s *DataStore) ListFederationRelationships(ctx context.Context, req *datastore.ListFederationRelationshipsRequest) (*datastore.ListFederationRelationshipsResponse, error) + func (s *DataStore) ListNodeSelectors(ctx context.Context, req *datastore.ListNodeSelectorsRequest) (*datastore.ListNodeSelectorsResponse, error) + func (s *DataStore) ListRegistrationEntries(ctx context.Context, req *datastore.ListRegistrationEntriesRequest) (*datastore.ListRegistrationEntriesResponse, error) + func (s *DataStore) PruneBundle(ctx context.Context, trustDomainID string, expiresBefore time.Time) (bool, error) + func (s *DataStore) PruneJoinTokens(ctx context.Context, expiresBefore time.Time) error + func (s *DataStore) PruneRegistrationEntries(ctx context.Context, expiresBefore time.Time) error + func (s *DataStore) SetBundle(ctx context.Context, bundle *common.Bundle) (*common.Bundle, error) + func (s *DataStore) SetNextError(err error) + func (s *DataStore) SetNodeSelectors(ctx context.Context, spiffeID string, selectors []*common.Selector) error + func (s *DataStore) UpdateAttestedNode(ctx context.Context, node *common.AttestedNode, mask *common.AttestedNodeMask) (*common.AttestedNode, error) + func (s *DataStore) UpdateBundle(ctx context.Context, bundle *common.Bundle, mask *common.BundleMask) (*common.Bundle, error) + func (s *DataStore) UpdateFederationRelationship(ctx context.Context, fr *datastore.FederationRelationship, ...) (*datastore.FederationRelationship, error) + func (s *DataStore) UpdateRegistrationEntry(ctx context.Context, entry *common.RegistrationEntry, ...) (*common.RegistrationEntry, error)