Documentation ¶
Index ¶
- type Handler
- func (h *Handler) CreateEntry(ctx context.Context, request *common.RegistrationEntry) (response *registration.RegistrationEntryID, err error)
- func (h *Handler) CreateFederatedBundle(ctx context.Context, request *registration.FederatedBundle) (response *common.Empty, err error)
- func (h *Handler) CreateJoinToken(ctx context.Context, request *registration.JoinToken) (token *registration.JoinToken, err error)
- func (h *Handler) DeleteEntry(ctx context.Context, request *registration.RegistrationEntryID) (response *common.RegistrationEntry, err error)
- func (h *Handler) DeleteFederatedBundle(ctx context.Context, request *registration.DeleteFederatedBundleRequest) (response *common.Empty, err error)
- func (h *Handler) FetchBundle(ctx context.Context, request *common.Empty) (response *registration.Bundle, err error)
- func (h *Handler) FetchEntries(ctx context.Context, request *common.Empty) (response *common.RegistrationEntries, err error)
- func (h *Handler) FetchEntry(ctx context.Context, request *registration.RegistrationEntryID) (response *common.RegistrationEntry, err error)
- func (h *Handler) FetchFederatedBundle(ctx context.Context, request *registration.FederatedBundleID) (response *registration.FederatedBundle, err error)
- func (h *Handler) ListByParentID(ctx context.Context, request *registration.ParentID) (response *common.RegistrationEntries, err error)
- func (h *Handler) ListBySelector(ctx context.Context, request *common.Selector) (response *common.RegistrationEntries, err error)
- func (h *Handler) ListBySpiffeID(ctx context.Context, request *registration.SpiffeID) (response *common.RegistrationEntries, err error)
- func (h *Handler) ListFederatedBundles(request *common.Empty, ...) (err error)
- func (h *Handler) UpdateEntry(ctx context.Context, request *registration.UpdateEntryRequest) (response *common.RegistrationEntry, err error)
- func (h *Handler) UpdateFederatedBundle(ctx context.Context, request *registration.FederatedBundle) (response *common.Empty, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Log logrus.FieldLogger Metrics telemetry.Metrics Catalog catalog.Catalog TrustDomain url.URL }
Service is used to register SPIFFE IDs, and the attestation logic that should be performed on a workload before those IDs can be issued.
func (*Handler) CreateEntry ¶
func (h *Handler) CreateEntry( ctx context.Context, request *common.RegistrationEntry) ( response *registration.RegistrationEntryID, err error)
Creates an entry in the Registration table, used to assign SPIFFE IDs to nodes and workloads.
func (*Handler) CreateFederatedBundle ¶
func (h *Handler) CreateFederatedBundle( ctx context.Context, request *registration.FederatedBundle) ( response *common.Empty, err error)
func (*Handler) CreateJoinToken ¶
func (h *Handler) CreateJoinToken( ctx context.Context, request *registration.JoinToken) ( token *registration.JoinToken, err error)
func (*Handler) DeleteEntry ¶
func (h *Handler) DeleteEntry( ctx context.Context, request *registration.RegistrationEntryID) ( response *common.RegistrationEntry, err error)
func (*Handler) DeleteFederatedBundle ¶
func (h *Handler) DeleteFederatedBundle( ctx context.Context, request *registration.DeleteFederatedBundleRequest) ( response *common.Empty, err error)
func (*Handler) FetchBundle ¶
func (h *Handler) FetchBundle( ctx context.Context, request *common.Empty) ( response *registration.Bundle, err error)
FetchBundle retrieves the CA bundle.
func (*Handler) FetchEntries ¶
func (*Handler) FetchEntry ¶
func (h *Handler) FetchEntry( ctx context.Context, request *registration.RegistrationEntryID) ( response *common.RegistrationEntry, err error)
Retrieves a specific registered entry
func (*Handler) FetchFederatedBundle ¶
func (h *Handler) FetchFederatedBundle( ctx context.Context, request *registration.FederatedBundleID) ( response *registration.FederatedBundle, err error)
func (*Handler) ListByParentID ¶
func (h *Handler) ListByParentID( ctx context.Context, request *registration.ParentID) ( response *common.RegistrationEntries, err error)
Returns all the Entries associated with the ParentID value
func (*Handler) ListBySelector ¶
func (*Handler) ListBySpiffeID ¶
func (h *Handler) ListBySpiffeID( ctx context.Context, request *registration.SpiffeID) ( response *common.RegistrationEntries, err error)
func (*Handler) ListFederatedBundles ¶
func (h *Handler) ListFederatedBundles(request *common.Empty, stream registration.Registration_ListFederatedBundlesServer) (err error)
func (*Handler) UpdateEntry ¶
func (h *Handler) UpdateEntry( ctx context.Context, request *registration.UpdateEntryRequest) ( response *common.RegistrationEntry, err error)
func (*Handler) UpdateFederatedBundle ¶
func (h *Handler) UpdateFederatedBundle( ctx context.Context, request *registration.FederatedBundle) ( response *common.Empty, err error)
Click to show internal directories.
Click to hide internal directories.