Help us shape the future of Go! Take the 2026 Go Developer Survey

bundle

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s grpc.ServiceRegistrar, service *Service)

RegisterService registers the bundle service on the gRPC server.

Types

type Config

type Config struct {
	DataStore         datastore.DataStore
	TrustDomain       spiffeid.TrustDomain
	UpstreamPublisher UpstreamPublisher
}

Config defines the bundle service configuration.

type Service

type Service struct {
	bundlev1.UnsafeBundleServer
	// contains filtered or unexported fields
}

Service defines the v1 bundle service properties.

func New

func New(config Config) *Service

New creates a new bundle service.

func (*Service) AppendBundle

func (s *Service) AppendBundle(ctx context.Context, req *bundlev1.AppendBundleRequest) (*types.Bundle, error)

AppendBundle appends the given authorities to the given bundlev1.

func (*Service) BatchCreateFederatedBundle

BatchCreateFederatedBundle adds one or more bundles to the server.

func (*Service) BatchDeleteFederatedBundle

BatchDeleteFederatedBundle removes one or more bundles from the server.

func (*Service) BatchSetFederatedBundle

BatchSetFederatedBundle upserts one or more bundles in the server.

func (*Service) BatchUpdateFederatedBundle

BatchUpdateFederatedBundle updates one or more bundles in the server.

func (*Service) CountBundles added in v1.0.0

CountBundles returns the total number of bundles.

func (*Service) GetBundle

func (s *Service) GetBundle(ctx context.Context, req *bundlev1.GetBundleRequest) (*types.Bundle, error)

GetBundle returns the bundle associated with the given trust domain.

func (*Service) GetFederatedBundle

func (s *Service) GetFederatedBundle(ctx context.Context, req *bundlev1.GetFederatedBundleRequest) (*types.Bundle, error)

GetFederatedBundle returns the bundle associated with the given trust domain.

func (*Service) ListFederatedBundles

ListFederatedBundles returns an optionally paginated list of federated bundles.

func (*Service) PublishJWTAuthority

PublishJWTAuthority published the JWT key on the server.

func (*Service) PublishWITAuthority added in v1.14.0

PublishWITAuthority published the WIT key on the server.

type UpstreamPublisher

type UpstreamPublisher interface {
	PublishJWTKey(ctx context.Context, jwtKey *common.PublicKey) ([]*common.PublicKey, error)
}

UpstreamPublisher defines the publisher interface.

type UpstreamPublisherFunc

type UpstreamPublisherFunc func(ctx context.Context, jwtKey *common.PublicKey) ([]*common.PublicKey, error)

UpstreamPublisherFunc defines the function.

func (UpstreamPublisherFunc) PublishJWTKey

func (fn UpstreamPublisherFunc) PublishJWTKey(ctx context.Context, jwtKey *common.PublicKey) ([]*common.PublicKey, error)

PublishJWTKey publishes the JWT key with the given function.

Jump to

Keyboard shortcuts

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