Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ControlService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "namespacelabs.breakpoint.private.ControlService", HandlerType: (*ControlServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Resume", Handler: _ControlService_Resume_Handler, }, { MethodName: "Extend", Handler: _ControlService_Extend_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/private/v1/service.proto", }
ControlService_ServiceDesc is the grpc.ServiceDesc for ControlService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_private_v1_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterControlServiceServer ¶
func RegisterControlServiceServer(s grpc.ServiceRegistrar, srv ControlServiceServer)
Types ¶
type ControlServiceClient ¶
type ControlServiceClient interface { Resume(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) Extend(ctx context.Context, in *ExtendRequest, opts ...grpc.CallOption) (*ExtendResponse, error) }
ControlServiceClient is the client API for ControlService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewControlServiceClient ¶
func NewControlServiceClient(cc grpc.ClientConnInterface) ControlServiceClient
type ControlServiceServer ¶
type ControlServiceServer interface { Resume(context.Context, *emptypb.Empty) (*emptypb.Empty, error) Extend(context.Context, *ExtendRequest) (*ExtendResponse, error) // contains filtered or unexported methods }
ControlServiceServer is the server API for ControlService service. All implementations must embed UnimplementedControlServiceServer for forward compatibility
type ExtendRequest ¶
type ExtendRequest struct { WaitFor *durationpb.Duration `protobuf:"bytes,1,opt,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"` // contains filtered or unexported fields }
func (*ExtendRequest) Descriptor
deprecated
func (*ExtendRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExtendRequest.ProtoReflect.Descriptor instead.
func (*ExtendRequest) GetWaitFor ¶
func (x *ExtendRequest) GetWaitFor() *durationpb.Duration
func (*ExtendRequest) ProtoMessage ¶
func (*ExtendRequest) ProtoMessage()
func (*ExtendRequest) ProtoReflect ¶
func (x *ExtendRequest) ProtoReflect() protoreflect.Message
func (*ExtendRequest) Reset ¶
func (x *ExtendRequest) Reset()
func (*ExtendRequest) String ¶
func (x *ExtendRequest) String() string
type ExtendResponse ¶
type ExtendResponse struct { Expiration *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=expiration,proto3" json:"expiration,omitempty"` // contains filtered or unexported fields }
func (*ExtendResponse) Descriptor
deprecated
func (*ExtendResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExtendResponse.ProtoReflect.Descriptor instead.
func (*ExtendResponse) GetExpiration ¶
func (x *ExtendResponse) GetExpiration() *timestamppb.Timestamp
func (*ExtendResponse) ProtoMessage ¶
func (*ExtendResponse) ProtoMessage()
func (*ExtendResponse) ProtoReflect ¶
func (x *ExtendResponse) ProtoReflect() protoreflect.Message
func (*ExtendResponse) Reset ¶
func (x *ExtendResponse) Reset()
func (*ExtendResponse) String ¶
func (x *ExtendResponse) String() string
type UnimplementedControlServiceServer ¶
type UnimplementedControlServiceServer struct { }
UnimplementedControlServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedControlServiceServer) Extend ¶
func (UnimplementedControlServiceServer) Extend(context.Context, *ExtendRequest) (*ExtendResponse, error)
type UnsafeControlServiceServer ¶
type UnsafeControlServiceServer interface {
// contains filtered or unexported methods
}
UnsafeControlServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ControlServiceServer will result in compilation errors.
type WaitConfig ¶
type WaitConfig struct { Endpoint string `json:"endpoint"` Duration string `json:"duration"` AuthorizedKeys []string `json:"authorized_keys"` AuthorizedGithubUsers []string `json:"authorized_github_users"` Shell []string `json:"shell"` AllowedSSHUsers []string `json:"allowed_ssh_users"` Enable []string `json:"enable"` Webhooks []Webhook `json:"webhooks"` }