Documentation
¶
Index ¶
- func ConvertEntityBundleToSPIFFEBundle(galadrielBundle *entity.Bundle) (*spiffebundle.Bundle, error)
- func ConvertSPIFFEBundleToEntityBundle(spiffeBundle *spiffebundle.Bundle) (*entity.Bundle, error)
- type BundleUpdates
- type BundlesDigests
- type PostBundleRequest
- type SyncBundleRequest
- type SyncBundleResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertEntityBundleToSPIFFEBundle ¶
func ConvertEntityBundleToSPIFFEBundle(galadrielBundle *entity.Bundle) (*spiffebundle.Bundle, error)
ConvertEntityBundleToSPIFFEBundle converts a Galadriel bundle to a SPIFFE bundle.
func ConvertSPIFFEBundleToEntityBundle ¶
func ConvertSPIFFEBundleToEntityBundle(spiffeBundle *spiffebundle.Bundle) (*entity.Bundle, error)
ConvertSPIFFEBundleToEntityBundle converts a SPIFFE bundle to a Galadriel bundle.
Types ¶
type BundleUpdates ¶
type BundleUpdates map[spiffeid.TrustDomain]*entity.Bundle
BundleUpdates is a map of trust bundles keyed by trust domain.
type BundlesDigests ¶
type BundlesDigests map[spiffeid.TrustDomain][]byte
BundlesDigests is a map of trust bundle digests keyed by trust domain.
type PostBundleRequest ¶
PostBundleRequest represents the request to submit the local SPIRE Server's bundle.
type SyncBundleRequest ¶
type SyncBundleRequest struct {
State BundlesDigests `json:"state"`
}
SyncBundleRequest represents a request to send the current state of federated bundles digests.
type SyncBundleResponse ¶
type SyncBundleResponse struct { // Update conveys trust bundles that are new or updates. Updates BundleUpdates `json:"updates"` // State is the current source-of-truth map of all trust bundles. // It essentially allows triggering deletions of trust bundles on harvesters. State BundlesDigests `json:"state"` }
SyncBundleResponse represents a response from Galadriel Server containing the federated trust bundles updates.
Click to show internal directories.
Click to hide internal directories.