Documentation ¶
Index ¶
- type 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, req *datastore.CountAttestedNodesRequest) (int32, error)
- func (s *DataStore) CountBundles(ctx context.Context) (int32, error)
- func (s *DataStore) CountRegistrationEntries(ctx context.Context, req *datastore.CountRegistrationEntriesRequest) (int32, error)
- func (s *DataStore) CreateAttestedNode(ctx context.Context, node *common.AttestedNode) (*common.AttestedNode, error)
- func (s *DataStore) CreateAttestedNodeEventForTesting(ctx context.Context, event *datastore.AttestedNodeEvent) 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) CreateRegistrationEntryEventForTesting(ctx context.Context, event *datastore.RegistrationEntryEvent) error
- func (s *DataStore) DeleteAttestedNode(ctx context.Context, spiffeID string) (*common.AttestedNode, error)
- func (s *DataStore) DeleteAttestedNodeEventForTesting(ctx context.Context, eventID uint) 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) DeleteRegistrationEntryEventForTesting(ctx context.Context, eventID uint) error
- func (s *DataStore) FetchAttestedNode(ctx context.Context, spiffeID string) (*common.AttestedNode, error)
- func (s *DataStore) FetchAttestedNodeEvent(ctx context.Context, eventID uint) (*datastore.AttestedNodeEvent, error)
- func (s *DataStore) FetchBundle(ctx context.Context, trustDomain string) (*common.Bundle, error)
- func (s *DataStore) FetchCAJournal(ctx context.Context, activeX509AuthorityID string) (*datastore.CAJournal, 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) FetchRegistrationEntryEvent(ctx context.Context, eventID uint) (*datastore.RegistrationEntryEvent, 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) ListAttestedNodesEvents(ctx context.Context, req *datastore.ListAttestedNodesEventsRequest) (*datastore.ListAttestedNodesEventsResponse, error)
- func (s *DataStore) ListBundles(ctx context.Context, req *datastore.ListBundlesRequest) (*datastore.ListBundlesResponse, error)
- func (s *DataStore) ListCAJournalsForTesting(ctx context.Context) ([]*datastore.CAJournal, 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) ListRegistrationEntriesEvents(ctx context.Context, req *datastore.ListRegistrationEntriesEventsRequest) (*datastore.ListRegistrationEntriesEventsResponse, error)
- func (s *DataStore) PruneAttestedNodesEvents(ctx context.Context, olderThan time.Duration) error
- func (s *DataStore) PruneBundle(ctx context.Context, trustDomainID string, expiresBefore time.Time) (bool, error)
- func (s *DataStore) PruneCAJournals(ctx context.Context, allCAsExpireBefore int64) 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) PruneRegistrationEntriesEvents(ctx context.Context, olderThan time.Duration) error
- func (s *DataStore) RevokeJWTKey(ctx context.Context, trustDomainID string, authorityID string) (*common.PublicKey, error)
- func (s *DataStore) RevokeX509CA(ctx context.Context, trustDomainID string, publicKeyToRevoke crypto.PublicKey) error
- func (s *DataStore) SetBundle(ctx context.Context, bundle *common.Bundle) (*common.Bundle, error)
- func (s *DataStore) SetCAJournal(ctx context.Context, caJournal *datastore.CAJournal) (*datastore.CAJournal, error)
- func (s *DataStore) SetNextError(err error)
- func (s *DataStore) SetNodeSelectors(ctx context.Context, spiffeID string, selectors []*common.Selector) error
- func (s *DataStore) TaintJWTKey(ctx context.Context, trustDomainID string, authorityID string) (*common.PublicKey, error)
- func (s *DataStore) TaintX509CA(ctx context.Context, trustDomainID string, publicKeyToTaint crypto.PublicKey) 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
func (*DataStore) AppendBundle ¶
func (*DataStore) AppendNextError ¶ added in v0.11.0
func (*DataStore) CountAttestedNodes ¶ added in v0.12.0
func (*DataStore) CountBundles ¶ added in v0.12.0
func (*DataStore) CountRegistrationEntries ¶ added in v0.12.0
func (*DataStore) CreateAttestedNode ¶
func (s *DataStore) CreateAttestedNode(ctx context.Context, node *common.AttestedNode) (*common.AttestedNode, error)
func (*DataStore) CreateAttestedNodeEventForTesting ¶ added in v1.10.0
func (*DataStore) CreateBundle ¶
func (*DataStore) CreateFederationRelationship ¶ added in v1.1.0
func (s *DataStore) CreateFederationRelationship(c context.Context, fr *datastore.FederationRelationship) (*datastore.FederationRelationship, error)
func (*DataStore) CreateJoinToken ¶
func (*DataStore) CreateOrReturnRegistrationEntry ¶ added in v1.1.0
func (s *DataStore) CreateOrReturnRegistrationEntry(ctx context.Context, entry *common.RegistrationEntry) (*common.RegistrationEntry, bool, error)
func (*DataStore) CreateRegistrationEntry ¶
func (s *DataStore) CreateRegistrationEntry(ctx context.Context, entry *common.RegistrationEntry) (*common.RegistrationEntry, error)
func (*DataStore) CreateRegistrationEntryEventForTesting ¶ added in v1.10.0
func (*DataStore) DeleteAttestedNode ¶
func (*DataStore) DeleteAttestedNodeEventForTesting ¶ added in v1.10.0
func (*DataStore) DeleteBundle ¶
func (*DataStore) DeleteFederationRelationship ¶ added in v1.1.0
func (*DataStore) DeleteJoinToken ¶
func (*DataStore) DeleteRegistrationEntry ¶
func (*DataStore) DeleteRegistrationEntryEventForTesting ¶ added in v1.10.0
func (*DataStore) FetchAttestedNode ¶
func (*DataStore) FetchAttestedNodeEvent ¶ added in v1.10.0
func (*DataStore) FetchBundle ¶
func (*DataStore) FetchCAJournal ¶ added in v1.9.0
func (*DataStore) FetchFederationRelationship ¶ added in v1.1.0
func (s *DataStore) FetchFederationRelationship(c context.Context, trustDomain spiffeid.TrustDomain) (*datastore.FederationRelationship, error)
func (*DataStore) FetchJoinToken ¶
func (*DataStore) FetchRegistrationEntry ¶
func (*DataStore) FetchRegistrationEntryEvent ¶ added in v1.10.0
func (*DataStore) GetNodeSelectors ¶
func (*DataStore) ListAttestedNodes ¶
func (s *DataStore) ListAttestedNodes(ctx context.Context, req *datastore.ListAttestedNodesRequest) (*datastore.ListAttestedNodesResponse, error)
func (*DataStore) ListAttestedNodesEvents ¶ added in v1.8.3
func (s *DataStore) ListAttestedNodesEvents(ctx context.Context, req *datastore.ListAttestedNodesEventsRequest) (*datastore.ListAttestedNodesEventsResponse, error)
func (*DataStore) ListBundles ¶
func (s *DataStore) ListBundles(ctx context.Context, req *datastore.ListBundlesRequest) (*datastore.ListBundlesResponse, error)
func (*DataStore) ListCAJournalsForTesting ¶ added in v1.9.0
func (*DataStore) ListFederationRelationships ¶ added in v1.1.0
func (s *DataStore) ListFederationRelationships(ctx context.Context, req *datastore.ListFederationRelationshipsRequest) (*datastore.ListFederationRelationshipsResponse, error)
func (*DataStore) ListNodeSelectors ¶ added in v0.12.0
func (s *DataStore) ListNodeSelectors(ctx context.Context, req *datastore.ListNodeSelectorsRequest) (*datastore.ListNodeSelectorsResponse, error)
func (*DataStore) ListRegistrationEntries ¶
func (s *DataStore) ListRegistrationEntries(ctx context.Context, req *datastore.ListRegistrationEntriesRequest) (*datastore.ListRegistrationEntriesResponse, error)
func (*DataStore) ListRegistrationEntriesEvents ¶ added in v1.8.0
func (s *DataStore) ListRegistrationEntriesEvents(ctx context.Context, req *datastore.ListRegistrationEntriesEventsRequest) (*datastore.ListRegistrationEntriesEventsResponse, error)
func (*DataStore) PruneAttestedNodesEvents ¶ added in v1.8.3
func (*DataStore) PruneBundle ¶
func (*DataStore) PruneCAJournals ¶ added in v1.9.0
func (*DataStore) PruneJoinTokens ¶
func (*DataStore) PruneRegistrationEntries ¶
func (*DataStore) PruneRegistrationEntriesEvents ¶ added in v1.8.0
func (*DataStore) RevokeJWTKey ¶ added in v1.6.3
func (*DataStore) RevokeX509CA ¶ added in v1.6.3
func (*DataStore) SetCAJournal ¶ added in v1.9.0
func (*DataStore) SetNextError ¶ added in v0.11.0
func (*DataStore) SetNodeSelectors ¶
func (*DataStore) TaintJWTKey ¶ added in v1.6.3
func (*DataStore) TaintX509CA ¶ added in v1.6.3
func (*DataStore) UpdateAttestedNode ¶
func (s *DataStore) UpdateAttestedNode(ctx context.Context, node *common.AttestedNode, mask *common.AttestedNodeMask) (*common.AttestedNode, error)
func (*DataStore) UpdateBundle ¶
func (*DataStore) UpdateFederationRelationship ¶ added in v1.1.0
func (s *DataStore) UpdateFederationRelationship(ctx context.Context, fr *datastore.FederationRelationship, mask *types.FederationRelationshipMask) (*datastore.FederationRelationship, error)
func (*DataStore) UpdateRegistrationEntry ¶
func (s *DataStore) UpdateRegistrationEntry(ctx context.Context, entry *common.RegistrationEntry, mask *common.RegistrationEntryMask) (*common.RegistrationEntry, error)
Click to show internal directories.
Click to hide internal directories.