Documentation ¶
Index ¶
- func RegisterService(s grpc.ServiceRegistrar, service *Service)
- type CAManager
- type Config
- type Service
- func (s *Service) ActivateJWTAuthority(ctx context.Context, req *localauthorityv1.ActivateJWTAuthorityRequest) (*localauthorityv1.ActivateJWTAuthorityResponse, error)
- func (s *Service) ActivateX509Authority(ctx context.Context, req *localauthorityv1.ActivateX509AuthorityRequest) (*localauthorityv1.ActivateX509AuthorityResponse, error)
- func (s *Service) GetJWTAuthorityState(ctx context.Context, _ *localauthorityv1.GetJWTAuthorityStateRequest) (*localauthorityv1.GetJWTAuthorityStateResponse, error)
- func (s *Service) GetX509AuthorityState(ctx context.Context, _ *localauthorityv1.GetX509AuthorityStateRequest) (*localauthorityv1.GetX509AuthorityStateResponse, error)
- func (s *Service) PrepareJWTAuthority(ctx context.Context, _ *localauthorityv1.PrepareJWTAuthorityRequest) (*localauthorityv1.PrepareJWTAuthorityResponse, error)
- func (s *Service) PrepareX509Authority(ctx context.Context, _ *localauthorityv1.PrepareX509AuthorityRequest) (*localauthorityv1.PrepareX509AuthorityResponse, error)
- func (s *Service) RevokeJWTAuthority(ctx context.Context, req *localauthorityv1.RevokeJWTAuthorityRequest) (*localauthorityv1.RevokeJWTAuthorityResponse, error)
- func (s *Service) RevokeX509Authority(ctx context.Context, req *localauthorityv1.RevokeX509AuthorityRequest) (*localauthorityv1.RevokeX509AuthorityResponse, error)
- func (s *Service) TaintJWTAuthority(ctx context.Context, req *localauthorityv1.TaintJWTAuthorityRequest) (*localauthorityv1.TaintJWTAuthorityResponse, error)
- func (s *Service) TaintX509Authority(ctx context.Context, req *localauthorityv1.TaintX509AuthorityRequest) (*localauthorityv1.TaintX509AuthorityResponse, error)
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 (*Service) ActivateJWTAuthority ¶
func (s *Service) ActivateJWTAuthority(ctx context.Context, req *localauthorityv1.ActivateJWTAuthorityRequest) (*localauthorityv1.ActivateJWTAuthorityResponse, error)
func (*Service) ActivateX509Authority ¶
func (s *Service) ActivateX509Authority(ctx context.Context, req *localauthorityv1.ActivateX509AuthorityRequest) (*localauthorityv1.ActivateX509AuthorityResponse, error)
func (*Service) GetJWTAuthorityState ¶
func (s *Service) GetJWTAuthorityState(ctx context.Context, _ *localauthorityv1.GetJWTAuthorityStateRequest) (*localauthorityv1.GetJWTAuthorityStateResponse, error)
func (*Service) GetX509AuthorityState ¶
func (s *Service) GetX509AuthorityState(ctx context.Context, _ *localauthorityv1.GetX509AuthorityStateRequest) (*localauthorityv1.GetX509AuthorityStateResponse, error)
func (*Service) PrepareJWTAuthority ¶
func (s *Service) PrepareJWTAuthority(ctx context.Context, _ *localauthorityv1.PrepareJWTAuthorityRequest) (*localauthorityv1.PrepareJWTAuthorityResponse, error)
func (*Service) PrepareX509Authority ¶
func (s *Service) PrepareX509Authority(ctx context.Context, _ *localauthorityv1.PrepareX509AuthorityRequest) (*localauthorityv1.PrepareX509AuthorityResponse, error)
func (*Service) RevokeJWTAuthority ¶
func (s *Service) RevokeJWTAuthority(ctx context.Context, req *localauthorityv1.RevokeJWTAuthorityRequest) (*localauthorityv1.RevokeJWTAuthorityResponse, error)
func (*Service) RevokeX509Authority ¶
func (s *Service) RevokeX509Authority(ctx context.Context, req *localauthorityv1.RevokeX509AuthorityRequest) (*localauthorityv1.RevokeX509AuthorityResponse, error)
func (*Service) TaintJWTAuthority ¶
func (s *Service) TaintJWTAuthority(ctx context.Context, req *localauthorityv1.TaintJWTAuthorityRequest) (*localauthorityv1.TaintJWTAuthorityResponse, error)
func (*Service) TaintX509Authority ¶
func (s *Service) TaintX509Authority(ctx context.Context, req *localauthorityv1.TaintX509AuthorityRequest) (*localauthorityv1.TaintX509AuthorityResponse, error)
Click to show internal directories.
Click to hide internal directories.