localauthority

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService added in v1.9.0

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

RegisterService registers the service on the gRPC server.

Types

type CAManager

type CAManager interface {
	// JWT
	GetCurrentJWTKeySlot() manager.Slot
	GetNextJWTKeySlot() manager.Slot
	PrepareJWTKey(ctx context.Context) error
	RotateJWTKey(ctx context.Context)

	// X509
	GetCurrentX509CASlot() manager.Slot
	GetNextX509CASlot() manager.Slot
	PrepareX509CA(ctx context.Context) error
	RotateX509CA(ctx context.Context)
}

type Config

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

Config is the service configuration

type Service

type Service struct {
	localauthorityv1.UnsafeLocalAuthorityServer
	// contains filtered or unexported fields
}

Service implements the v1 LocalAuthority service

func New

func New(config Config) *Service

New creates a new LocalAuthority service

Jump to

Keyboard shortcuts

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