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

entry

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: 19 Imported by: 2

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 entry service on the gRPC server.

func SyncAuthorizedEntries added in v1.8.7

func SyncAuthorizedEntries(stream entryv1.Entry_SyncAuthorizedEntriesServer, entries []api.ReadOnlyEntry, entryPageSize int) (err error)

Types

type Config

type Config struct {
	TrustDomain   spiffeid.TrustDomain
	EntryFetcher  api.AuthorizedEntryFetcher
	DataStore     datastore.DataStore
	EntryPageSize int
}

Config defines the service configuration.

type Service

type Service struct {
	entryv1.UnsafeEntryServer
	// contains filtered or unexported fields
}

Service defines the v1 entry service.

func New

func New(config Config) *Service

New creates a new v1 entry service.

func (*Service) BatchCreateEntry

BatchCreateEntry adds one or more entries to the server.

func (*Service) BatchDeleteEntry

BatchDeleteEntry removes one or more entries from the server.

func (*Service) BatchUpdateEntry

BatchUpdateEntry updates one or more entries in the server.

func (*Service) CountEntries added in v1.0.0

CountEntries returns the total number of entries.

func (*Service) GetAuthorizedEntries

GetAuthorizedEntries returns the list of entries authorized for the caller ID in the context.

func (*Service) GetEntry

func (s *Service) GetEntry(ctx context.Context, req *entryv1.GetEntryRequest) (*types.Entry, error)

GetEntry returns the registration entry associated with the given SpiffeID

func (*Service) ListEntries

ListEntries returns the optionally filtered and/or paginated list of entries.

func (*Service) SyncAuthorizedEntries added in v1.8.7

func (s *Service) SyncAuthorizedEntries(stream entryv1.Entry_SyncAuthorizedEntriesServer) (err error)

SyncAuthorizedEntries returns the list of entries authorized for the caller ID in the context.

Jump to

Keyboard shortcuts

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