Documentation
¶
Overview ¶
Package control implements the fenced Kernel-to-Runtime gRPC boundary.
Index ¶
- type Option
- type Service
- func (s *Service) AcknowledgeCancellation(ctx context.Context, request *runtimev1.AcknowledgeCancellationRequest) (*runtimev1.AcknowledgeCancellationResponse, error)
- func (s *Service) CommitCheckpoint(ctx context.Context, request *runtimev1.CommitCheckpointRequest) (*runtimev1.CommitCheckpointResponse, error)
- func (s *Service) CompleteAttempt(ctx context.Context, request *runtimev1.CompleteAttemptRequest) (*runtimev1.CompleteAttemptResponse, error)
- func (s *Service) GetAssignment(ctx context.Context, request *runtimev1.GetAssignmentRequest) (*runtimev1.GetAssignmentResponse, error)
- func (s *Service) Heartbeat(ctx context.Context, request *runtimev1.HeartbeatRequest) (*runtimev1.HeartbeatResponse, error)
- func (s *Service) PollAssignment(ctx context.Context, request *runtimev1.PollAssignmentRequest) (*runtimev1.PollAssignmentResponse, error)
- func (s *Service) TransitionAttempt(ctx context.Context, request *runtimev1.TransitionAttemptRequest) (*runtimev1.TransitionAttemptResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Service)
Option configures the runtime control service.
func WithSpiffeClaimBinding ¶
WithSpiffeClaimBinding binds every request's tenant (and, where present, runtime instance) claims to the peer's X.509-SVID SPIFFE ID (ADR-011). The transport must be mutual TLS; requests without a verified SVID are rejected.
type Service ¶
type Service struct {
runtimev1.UnimplementedRuntimeControlServiceServer
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AcknowledgeCancellation ¶
func (s *Service) AcknowledgeCancellation(ctx context.Context, request *runtimev1.AcknowledgeCancellationRequest) (*runtimev1.AcknowledgeCancellationResponse, error)
func (*Service) CommitCheckpoint ¶
func (s *Service) CommitCheckpoint(ctx context.Context, request *runtimev1.CommitCheckpointRequest) (*runtimev1.CommitCheckpointResponse, error)
func (*Service) CompleteAttempt ¶
func (s *Service) CompleteAttempt(ctx context.Context, request *runtimev1.CompleteAttemptRequest) (*runtimev1.CompleteAttemptResponse, error)
func (*Service) GetAssignment ¶
func (s *Service) GetAssignment(ctx context.Context, request *runtimev1.GetAssignmentRequest) (*runtimev1.GetAssignmentResponse, error)
func (*Service) Heartbeat ¶
func (s *Service) Heartbeat(ctx context.Context, request *runtimev1.HeartbeatRequest) (*runtimev1.HeartbeatResponse, error)
func (*Service) PollAssignment ¶
func (s *Service) PollAssignment(ctx context.Context, request *runtimev1.PollAssignmentRequest) (*runtimev1.PollAssignmentResponse, error)
func (*Service) TransitionAttempt ¶
func (s *Service) TransitionAttempt(ctx context.Context, request *runtimev1.TransitionAttemptRequest) (*runtimev1.TransitionAttemptResponse, error)
Click to show internal directories.
Click to hide internal directories.