models

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

type PostBundleRequest struct {
	*entity.Bundle `json:"state"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL