entry

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

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

RegisterService registers the entry service on the gRPC server.

Types

type Config

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

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.

Jump to

Keyboard shortcuts

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