entry

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 18 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 []*types.Entry, 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