Documentation
¶
Overview ¶
Package proto contains generated Protocol Buffer types for nstance gRPC services.
Index ¶
- Constants
- Variables
- func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
- func RegisterOperatorServiceServer(s grpc.ServiceRegistrar, srv OperatorServiceServer)
- func RegisterRegistrationServiceServer(s grpc.ServiceRegistrar, srv RegistrationServiceServer)
- type AgentServiceClient
- type AgentServiceServer
- type AgentService_ReceiveFilesClient
- type AgentService_ReceiveFilesServer
- type AgentService_ReceiveKeyRequestsClient
- type AgentService_ReceiveKeyRequestsServer
- type AgentService_SubmitHealthReportClient
- type AgentService_SubmitHealthReportServer
- type ConfigStatusResponse
- func (*ConfigStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigStatusResponse) GetEtag() string
- func (x *ConfigStatusResponse) GetLastModified() *timestamppb.Timestamp
- func (x *ConfigStatusResponse) GetSize() int64
- func (*ConfigStatusResponse) ProtoMessage()
- func (x *ConfigStatusResponse) ProtoReflect() protoreflect.Message
- func (x *ConfigStatusResponse) Reset()
- func (x *ConfigStatusResponse) String() string
- type CreateInstanceRequest
- func (*CreateInstanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInstanceRequest) GetConfig() *InstanceConfig
- func (x *CreateInstanceRequest) GetInstanceId() string
- func (*CreateInstanceRequest) ProtoMessage()
- func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateInstanceRequest) Reset()
- func (x *CreateInstanceRequest) String() string
- type CreateInstanceResponse
- func (*CreateInstanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInstanceResponse) GetInstanceId() string
- func (x *CreateInstanceResponse) GetStatus() string
- func (*CreateInstanceResponse) ProtoMessage()
- func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateInstanceResponse) Reset()
- func (x *CreateInstanceResponse) String() string
- type DeleteGroupRequest
- type DeleteInstanceRequest
- func (*DeleteInstanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteInstanceRequest) GetInstanceId() string
- func (*DeleteInstanceRequest) ProtoMessage()
- func (x *DeleteInstanceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteInstanceRequest) Reset()
- func (x *DeleteInstanceRequest) String() string
- type DeleteInstanceResponse
- func (*DeleteInstanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteInstanceResponse) GetStatus() string
- func (*DeleteInstanceResponse) ProtoMessage()
- func (x *DeleteInstanceResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteInstanceResponse) Reset()
- func (x *DeleteInstanceResponse) String() string
- type DrainAckRequest
- type ErrorEvent
- func (*ErrorEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorEvent) GetError() string
- func (x *ErrorEvent) GetGroup() string
- func (x *ErrorEvent) GetInstanceId() string
- func (x *ErrorEvent) GetTimestamp() *timestamppb.Timestamp
- func (*ErrorEvent) ProtoMessage()
- func (x *ErrorEvent) ProtoReflect() protoreflect.Message
- func (x *ErrorEvent) Reset()
- func (x *ErrorEvent) String() string
- type FileStatus
- func (*FileStatus) Descriptor() ([]byte, []int)deprecated
- func (x *FileStatus) GetError() string
- func (x *FileStatus) GetLastModified() *timestamppb.Timestamp
- func (x *FileStatus) GetStatus() isFileStatus_Status
- func (*FileStatus) ProtoMessage()
- func (x *FileStatus) ProtoReflect() protoreflect.Message
- func (x *FileStatus) Reset()
- func (x *FileStatus) String() string
- type FileStatus_Error
- type FileStatus_LastModified
- type FileTransfer
- func (*FileTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *FileTransfer) GetConfigHash() string
- func (x *FileTransfer) GetContent() []byte
- func (x *FileTransfer) GetFilename() string
- func (x *FileTransfer) GetLastModified() *timestamppb.Timestamp
- func (*FileTransfer) ProtoMessage()
- func (x *FileTransfer) ProtoReflect() protoreflect.Message
- func (x *FileTransfer) Reset()
- func (x *FileTransfer) String() string
- type GetInstanceStatusRequest
- func (*GetInstanceStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInstanceStatusRequest) GetInstanceId() string
- func (*GetInstanceStatusRequest) ProtoMessage()
- func (x *GetInstanceStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetInstanceStatusRequest) Reset()
- func (x *GetInstanceStatusRequest) String() string
- type GroupConfig
- func (*GroupConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GroupConfig) GetArgs() map[string]string
- func (x *GroupConfig) GetInstanceType() string
- func (x *GroupConfig) GetSize() int32
- func (x *GroupConfig) GetSubnetPool() string
- func (x *GroupConfig) GetTemplate() string
- func (x *GroupConfig) GetVars() map[string]string
- func (*GroupConfig) ProtoMessage()
- func (x *GroupConfig) ProtoReflect() protoreflect.Message
- func (x *GroupConfig) Reset()
- func (x *GroupConfig) String() string
- type GroupEvent
- func (*GroupEvent) Descriptor() ([]byte, []int)deprecated
- func (x *GroupEvent) GetGroup() *GroupStatus
- func (x *GroupEvent) GetType() GroupEvent_Type
- func (*GroupEvent) ProtoMessage()
- func (x *GroupEvent) ProtoReflect() protoreflect.Message
- func (x *GroupEvent) Reset()
- func (x *GroupEvent) String() string
- type GroupEvent_Type
- func (GroupEvent_Type) Descriptor() protoreflect.EnumDescriptor
- func (x GroupEvent_Type) Enum() *GroupEvent_Type
- func (GroupEvent_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupEvent_Type) Number() protoreflect.EnumNumber
- func (x GroupEvent_Type) String() string
- func (GroupEvent_Type) Type() protoreflect.EnumType
- type GroupStatus
- func (*GroupStatus) Descriptor() ([]byte, []int)deprecated
- func (x *GroupStatus) GetActualSize() int32
- func (x *GroupStatus) GetEtag() string
- func (x *GroupStatus) GetInstanceType() string
- func (x *GroupStatus) GetIsStatic() bool
- func (x *GroupStatus) GetKey() string
- func (x *GroupStatus) GetProviderIds() []string
- func (x *GroupStatus) GetSize() int32
- func (x *GroupStatus) GetSubnetPool() string
- func (x *GroupStatus) GetTemplate() string
- func (x *GroupStatus) GetTenant() string
- func (x *GroupStatus) GetVars() map[string]string
- func (*GroupStatus) ProtoMessage()
- func (x *GroupStatus) ProtoReflect() protoreflect.Message
- func (x *GroupStatus) Reset()
- func (x *GroupStatus) String() string
- type HealthReportRequest
- func (*HealthReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HealthReportRequest) GetConfigHash() string
- func (x *HealthReportRequest) GetCount() int64
- func (x *HealthReportRequest) GetFifteenMinutes() *Metrics
- func (x *HealthReportRequest) GetFiles() map[string]*FileStatus
- func (x *HealthReportRequest) GetFiveMinutes() *Metrics
- func (x *HealthReportRequest) GetInstanceId() string
- func (x *HealthReportRequest) GetOneMinute() *Metrics
- func (x *HealthReportRequest) GetStarted() *timestamppb.Timestamp
- func (x *HealthReportRequest) GetTerminationNotice() *TerminationNotice
- func (x *HealthReportRequest) GetTimestamp() *timestamppb.Timestamp
- func (x *HealthReportRequest) GetUptime() string
- func (x *HealthReportRequest) GetVersion() string
- func (x *HealthReportRequest) GetWindowEnd() *timestamppb.Timestamp
- func (x *HealthReportRequest) GetWindowStart() *timestamppb.Timestamp
- func (*HealthReportRequest) ProtoMessage()
- func (x *HealthReportRequest) ProtoReflect() protoreflect.Message
- func (x *HealthReportRequest) Reset()
- func (x *HealthReportRequest) String() string
- type InstanceConfig
- func (*InstanceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *InstanceConfig) GetGroup() string
- func (x *InstanceConfig) GetInstanceType() string
- func (x *InstanceConfig) GetSubnetPool() string
- func (x *InstanceConfig) GetTemplate() string
- func (x *InstanceConfig) GetVars() map[string]string
- func (*InstanceConfig) ProtoMessage()
- func (x *InstanceConfig) ProtoReflect() protoreflect.Message
- func (x *InstanceConfig) Reset()
- func (x *InstanceConfig) String() string
- type InstanceEvent
- func (*InstanceEvent) Descriptor() ([]byte, []int)deprecated
- func (x *InstanceEvent) GetDeleteAt() *timestamppb.Timestamp
- func (x *InstanceEvent) GetGroup() string
- func (x *InstanceEvent) GetInstanceId() string
- func (x *InstanceEvent) GetProviderInstanceId() string
- func (x *InstanceEvent) GetReason() string
- func (x *InstanceEvent) GetStatus() string
- func (x *InstanceEvent) GetTenant() string
- func (x *InstanceEvent) GetUnhealthyAt() *timestamppb.Timestamp
- func (*InstanceEvent) ProtoMessage()
- func (x *InstanceEvent) ProtoReflect() protoreflect.Message
- func (x *InstanceEvent) Reset()
- func (x *InstanceEvent) String() string
- type InstanceStatusResponse
- func (*InstanceStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InstanceStatusResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *InstanceStatusResponse) GetInstanceId() string
- func (x *InstanceStatusResponse) GetLastSeen() *timestamppb.Timestamp
- func (x *InstanceStatusResponse) GetProviderInstanceId() string
- func (x *InstanceStatusResponse) GetStatus() string
- func (x *InstanceStatusResponse) GetTenant() string
- func (*InstanceStatusResponse) ProtoMessage()
- func (x *InstanceStatusResponse) ProtoReflect() protoreflect.Message
- func (x *InstanceStatusResponse) Reset()
- func (x *InstanceStatusResponse) String() string
- type KeyGenerationRequest
- func (*KeyGenerationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyGenerationRequest) GetKeyNames() []string
- func (*KeyGenerationRequest) ProtoMessage()
- func (x *KeyGenerationRequest) ProtoReflect() protoreflect.Message
- func (x *KeyGenerationRequest) Reset()
- func (x *KeyGenerationRequest) String() string
- type ListGroupsResponse
- func (*ListGroupsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGroupsResponse) GetGroups() []*GroupStatus
- func (*ListGroupsResponse) ProtoMessage()
- func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message
- func (x *ListGroupsResponse) Reset()
- func (x *ListGroupsResponse) String() string
- type Metrics
- func (*Metrics) Descriptor() ([]byte, []int)deprecated
- func (x *Metrics) GetCpuCoreUsage() []float64
- func (x *Metrics) GetCpuUsage() float64
- func (x *Metrics) GetDiskBytesRead() float64
- func (x *Metrics) GetDiskBytesWritten() float64
- func (x *Metrics) GetDiskInodesUsed() float64
- func (x *Metrics) GetDiskUsed() float64
- func (x *Metrics) GetMemoryUsage() float64
- func (x *Metrics) GetNetworkBytesReceived() float64
- func (x *Metrics) GetNetworkBytesSent() float64
- func (*Metrics) ProtoMessage()
- func (x *Metrics) ProtoReflect() protoreflect.Message
- func (x *Metrics) Reset()
- func (x *Metrics) String() string
- type OperatorServiceClient
- type OperatorServiceServer
- type OperatorService_WatchErrorsClient
- type OperatorService_WatchErrorsServer
- type OperatorService_WatchGroupsClient
- type OperatorService_WatchGroupsServer
- type OperatorService_WatchInstancesClient
- type OperatorService_WatchInstancesServer
- type PublicKeySubmission
- func (*PublicKeySubmission) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKeySubmission) GetFilename() string
- func (x *PublicKeySubmission) GetPublicKeyPem() []byte
- func (*PublicKeySubmission) ProtoMessage()
- func (x *PublicKeySubmission) ProtoReflect() protoreflect.Message
- func (x *PublicKeySubmission) Reset()
- func (x *PublicKeySubmission) String() string
- type PublicKeysRequest
- func (*PublicKeysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKeysRequest) GetInstanceId() string
- func (x *PublicKeysRequest) GetKeys() []*PublicKeySubmission
- func (*PublicKeysRequest) ProtoMessage()
- func (x *PublicKeysRequest) ProtoReflect() protoreflect.Message
- func (x *PublicKeysRequest) Reset()
- func (x *PublicKeysRequest) String() string
- type RefreshConfigResponse
- func (*RefreshConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshConfigResponse) GetEtag() string
- func (x *RefreshConfigResponse) GetPrevEtag() string
- func (x *RefreshConfigResponse) GetUpdated() bool
- func (*RefreshConfigResponse) ProtoMessage()
- func (x *RefreshConfigResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshConfigResponse) Reset()
- func (x *RefreshConfigResponse) String() string
- type RegisterClientRequest
- func (*RegisterClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientRequest) GetHostname() string
- func (x *RegisterClientRequest) GetPrivateIpv4() string
- func (x *RegisterClientRequest) GetPrivateIpv6() string
- func (x *RegisterClientRequest) GetPublicKeyPem() []byte
- func (x *RegisterClientRequest) GetRegistrationNonceJwt() string
- func (*RegisterClientRequest) ProtoMessage()
- func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterClientRequest) Reset()
- func (x *RegisterClientRequest) String() string
- type RegisterClientResponse
- func (*RegisterClientResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientResponse) GetClientCertificatePem() []byte
- func (x *RegisterClientResponse) GetExpiresAt() *timestamppb.Timestamp
- func (*RegisterClientResponse) ProtoMessage()
- func (x *RegisterClientResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterClientResponse) Reset()
- func (x *RegisterClientResponse) String() string
- type RegistrationServiceClient
- type RegistrationServiceServer
- type RenewCertificateRequest
- func (*RenewCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RenewCertificateRequest) GetPublicKeyPem() []byte
- func (*RenewCertificateRequest) ProtoMessage()
- func (x *RenewCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *RenewCertificateRequest) Reset()
- func (x *RenewCertificateRequest) String() string
- type RenewCertificateResponse
- func (*RenewCertificateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RenewCertificateResponse) GetClientCertificatePem() []byte
- func (x *RenewCertificateResponse) GetExpiresAt() *timestamppb.Timestamp
- func (*RenewCertificateResponse) ProtoMessage()
- func (x *RenewCertificateResponse) ProtoReflect() protoreflect.Message
- func (x *RenewCertificateResponse) Reset()
- func (x *RenewCertificateResponse) String() string
- type TerminationNotice
- func (*TerminationNotice) Descriptor() ([]byte, []int)deprecated
- func (x *TerminationNotice) GetAction() string
- func (x *TerminationNotice) GetDeadline() *timestamppb.Timestamp
- func (*TerminationNotice) ProtoMessage()
- func (x *TerminationNotice) ProtoReflect() protoreflect.Message
- func (x *TerminationNotice) Reset()
- func (x *TerminationNotice) String() string
- type UnimplementedAgentServiceServer
- func (UnimplementedAgentServiceServer) ReceiveFiles(*emptypb.Empty, grpc.ServerStreamingServer[FileTransfer]) error
- func (UnimplementedAgentServiceServer) ReceiveKeyRequests(*emptypb.Empty, grpc.ServerStreamingServer[KeyGenerationRequest]) error
- func (UnimplementedAgentServiceServer) SubmitHealthReport(grpc.ClientStreamingServer[HealthReportRequest, emptypb.Empty]) error
- func (UnimplementedAgentServiceServer) SubmitPublicKeys(context.Context, *PublicKeysRequest) (*emptypb.Empty, error)
- type UnimplementedOperatorServiceServer
- func (UnimplementedOperatorServiceServer) AcknowledgeDrained(context.Context, *DrainAckRequest) (*emptypb.Empty, error)
- func (UnimplementedOperatorServiceServer) CreateInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error)
- func (UnimplementedOperatorServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*emptypb.Empty, error)
- func (UnimplementedOperatorServiceServer) DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error)
- func (UnimplementedOperatorServiceServer) GetConfigStatus(context.Context, *emptypb.Empty) (*ConfigStatusResponse, error)
- func (UnimplementedOperatorServiceServer) GetInstanceStatus(context.Context, *GetInstanceStatusRequest) (*InstanceStatusResponse, error)
- func (UnimplementedOperatorServiceServer) ListGroups(context.Context, *emptypb.Empty) (*ListGroupsResponse, error)
- func (UnimplementedOperatorServiceServer) RefreshConfig(context.Context, *emptypb.Empty) (*RefreshConfigResponse, error)
- func (UnimplementedOperatorServiceServer) RenewCertificate(context.Context, *RenewCertificateRequest) (*RenewCertificateResponse, error)
- func (UnimplementedOperatorServiceServer) UpsertGroup(context.Context, *UpsertGroupRequest) (*GroupStatus, error)
- func (UnimplementedOperatorServiceServer) WatchErrors(*emptypb.Empty, grpc.ServerStreamingServer[ErrorEvent]) error
- func (UnimplementedOperatorServiceServer) WatchGroups(*emptypb.Empty, grpc.ServerStreamingServer[GroupEvent]) error
- func (UnimplementedOperatorServiceServer) WatchInstances(*emptypb.Empty, grpc.ServerStreamingServer[InstanceEvent]) error
- type UnimplementedRegistrationServiceServer
- type UnsafeAgentServiceServer
- type UnsafeOperatorServiceServer
- type UnsafeRegistrationServiceServer
- type UpsertGroupRequest
- func (*UpsertGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertGroupRequest) GetConfig() *GroupConfig
- func (x *UpsertGroupRequest) GetKey() string
- func (*UpsertGroupRequest) ProtoMessage()
- func (x *UpsertGroupRequest) ProtoReflect() protoreflect.Message
- func (x *UpsertGroupRequest) Reset()
- func (x *UpsertGroupRequest) String() string
Constants ¶
const ( AgentService_ReceiveKeyRequests_FullMethodName = "/nstance.v1.AgentService/ReceiveKeyRequests" AgentService_SubmitPublicKeys_FullMethodName = "/nstance.v1.AgentService/SubmitPublicKeys" AgentService_SubmitHealthReport_FullMethodName = "/nstance.v1.AgentService/SubmitHealthReport" AgentService_ReceiveFiles_FullMethodName = "/nstance.v1.AgentService/ReceiveFiles" )
const ( OperatorService_RenewCertificate_FullMethodName = "/nstance.v1.OperatorService/RenewCertificate" OperatorService_GetConfigStatus_FullMethodName = "/nstance.v1.OperatorService/GetConfigStatus" OperatorService_RefreshConfig_FullMethodName = "/nstance.v1.OperatorService/RefreshConfig" OperatorService_ListGroups_FullMethodName = "/nstance.v1.OperatorService/ListGroups" OperatorService_UpsertGroup_FullMethodName = "/nstance.v1.OperatorService/UpsertGroup" OperatorService_DeleteGroup_FullMethodName = "/nstance.v1.OperatorService/DeleteGroup" OperatorService_CreateInstance_FullMethodName = "/nstance.v1.OperatorService/CreateInstance" OperatorService_DeleteInstance_FullMethodName = "/nstance.v1.OperatorService/DeleteInstance" OperatorService_GetInstanceStatus_FullMethodName = "/nstance.v1.OperatorService/GetInstanceStatus" OperatorService_AcknowledgeDrained_FullMethodName = "/nstance.v1.OperatorService/AcknowledgeDrained" OperatorService_WatchGroups_FullMethodName = "/nstance.v1.OperatorService/WatchGroups" OperatorService_WatchInstances_FullMethodName = "/nstance.v1.OperatorService/WatchInstances" OperatorService_WatchErrors_FullMethodName = "/nstance.v1.OperatorService/WatchErrors" )
const ( RegistrationService_RegisterAgent_FullMethodName = "/nstance.v1.RegistrationService/RegisterAgent" RegistrationService_RegisterOperator_FullMethodName = "/nstance.v1.RegistrationService/RegisterOperator" )
Variables ¶
var ( GroupEvent_Type_name = map[int32]string{ 0: "UPSERT", 1: "DELETE", } GroupEvent_Type_value = map[string]int32{ "UPSERT": 0, "DELETE": 1, } )
Enum value maps for GroupEvent_Type.
var AgentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nstance.v1.AgentService", HandlerType: (*AgentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubmitPublicKeys", Handler: _AgentService_SubmitPublicKeys_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ReceiveKeyRequests", Handler: _AgentService_ReceiveKeyRequests_Handler, ServerStreams: true, }, { StreamName: "SubmitHealthReport", Handler: _AgentService_SubmitHealthReport_Handler, ClientStreams: true, }, { StreamName: "ReceiveFiles", Handler: _AgentService_ReceiveFiles_Handler, ServerStreams: true, }, }, Metadata: "proto/agent.proto", }
AgentService_ServiceDesc is the grpc.ServiceDesc for AgentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_agent_proto protoreflect.FileDescriptor
var File_proto_operator_proto protoreflect.FileDescriptor
var File_proto_registration_proto protoreflect.FileDescriptor
var OperatorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nstance.v1.OperatorService", HandlerType: (*OperatorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RenewCertificate", Handler: _OperatorService_RenewCertificate_Handler, }, { MethodName: "GetConfigStatus", Handler: _OperatorService_GetConfigStatus_Handler, }, { MethodName: "RefreshConfig", Handler: _OperatorService_RefreshConfig_Handler, }, { MethodName: "ListGroups", Handler: _OperatorService_ListGroups_Handler, }, { MethodName: "UpsertGroup", Handler: _OperatorService_UpsertGroup_Handler, }, { MethodName: "DeleteGroup", Handler: _OperatorService_DeleteGroup_Handler, }, { MethodName: "CreateInstance", Handler: _OperatorService_CreateInstance_Handler, }, { MethodName: "DeleteInstance", Handler: _OperatorService_DeleteInstance_Handler, }, { MethodName: "GetInstanceStatus", Handler: _OperatorService_GetInstanceStatus_Handler, }, { MethodName: "AcknowledgeDrained", Handler: _OperatorService_AcknowledgeDrained_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchGroups", Handler: _OperatorService_WatchGroups_Handler, ServerStreams: true, }, { StreamName: "WatchInstances", Handler: _OperatorService_WatchInstances_Handler, ServerStreams: true, }, { StreamName: "WatchErrors", Handler: _OperatorService_WatchErrors_Handler, ServerStreams: true, }, }, Metadata: "proto/operator.proto", }
OperatorService_ServiceDesc is the grpc.ServiceDesc for OperatorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RegistrationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nstance.v1.RegistrationService", HandlerType: (*RegistrationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterAgent", Handler: _RegistrationService_RegisterAgent_Handler, }, { MethodName: "RegisterOperator", Handler: _RegistrationService_RegisterOperator_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/registration.proto", }
RegistrationService_ServiceDesc is the grpc.ServiceDesc for RegistrationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAgentServiceServer ¶
func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
func RegisterOperatorServiceServer ¶
func RegisterOperatorServiceServer(s grpc.ServiceRegistrar, srv OperatorServiceServer)
func RegisterRegistrationServiceServer ¶
func RegisterRegistrationServiceServer(s grpc.ServiceRegistrar, srv RegistrationServiceServer)
Types ¶
type AgentServiceClient ¶
type AgentServiceClient interface {
// ReceiveKeyRequests provides a persistent stream of key generation requests from server to agent
ReceiveKeyRequests(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[KeyGenerationRequest], error)
// SubmitPublicKeys allows agents to submit public keys for certificate generation
SubmitPublicKeys(ctx context.Context, in *PublicKeysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// SubmitHealthReport allows agents to send periodic health reports via persistent stream
SubmitHealthReport(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[HealthReportRequest, emptypb.Empty], error)
// ReceiveFiles provides a persistent stream of files from server to agent (certificates, secrets, config updates)
ReceiveFiles(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[FileTransfer], error)
}
AgentServiceClient is the client API for AgentService 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.
AgentService provides authenticated API for Nstance Agents
func NewAgentServiceClient ¶
func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient
type AgentServiceServer ¶
type AgentServiceServer interface {
// ReceiveKeyRequests provides a persistent stream of key generation requests from server to agent
ReceiveKeyRequests(*emptypb.Empty, grpc.ServerStreamingServer[KeyGenerationRequest]) error
// SubmitPublicKeys allows agents to submit public keys for certificate generation
SubmitPublicKeys(context.Context, *PublicKeysRequest) (*emptypb.Empty, error)
// SubmitHealthReport allows agents to send periodic health reports via persistent stream
SubmitHealthReport(grpc.ClientStreamingServer[HealthReportRequest, emptypb.Empty]) error
// ReceiveFiles provides a persistent stream of files from server to agent (certificates, secrets, config updates)
ReceiveFiles(*emptypb.Empty, grpc.ServerStreamingServer[FileTransfer]) error
// contains filtered or unexported methods
}
AgentServiceServer is the server API for AgentService service. All implementations must embed UnimplementedAgentServiceServer for forward compatibility.
AgentService provides authenticated API for Nstance Agents
type AgentService_ReceiveFilesClient ¶
type AgentService_ReceiveFilesClient = grpc.ServerStreamingClient[FileTransfer]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AgentService_ReceiveFilesServer ¶
type AgentService_ReceiveFilesServer = grpc.ServerStreamingServer[FileTransfer]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AgentService_ReceiveKeyRequestsClient ¶
type AgentService_ReceiveKeyRequestsClient = grpc.ServerStreamingClient[KeyGenerationRequest]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AgentService_ReceiveKeyRequestsServer ¶
type AgentService_ReceiveKeyRequestsServer = grpc.ServerStreamingServer[KeyGenerationRequest]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AgentService_SubmitHealthReportClient ¶
type AgentService_SubmitHealthReportClient = grpc.ClientStreamingClient[HealthReportRequest, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AgentService_SubmitHealthReportServer ¶
type AgentService_SubmitHealthReportServer = grpc.ClientStreamingServer[HealthReportRequest, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ConfigStatusResponse ¶
type ConfigStatusResponse struct {
Etag string `protobuf:"bytes,1,opt,name=etag,proto3" json:"etag,omitempty"`
LastModified *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*ConfigStatusResponse) Descriptor
deprecated
func (*ConfigStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigStatusResponse.ProtoReflect.Descriptor instead.
func (*ConfigStatusResponse) GetEtag ¶
func (x *ConfigStatusResponse) GetEtag() string
func (*ConfigStatusResponse) GetLastModified ¶
func (x *ConfigStatusResponse) GetLastModified() *timestamppb.Timestamp
func (*ConfigStatusResponse) GetSize ¶
func (x *ConfigStatusResponse) GetSize() int64
func (*ConfigStatusResponse) ProtoMessage ¶
func (*ConfigStatusResponse) ProtoMessage()
func (*ConfigStatusResponse) ProtoReflect ¶
func (x *ConfigStatusResponse) ProtoReflect() protoreflect.Message
func (*ConfigStatusResponse) Reset ¶
func (x *ConfigStatusResponse) Reset()
func (*ConfigStatusResponse) String ¶
func (x *ConfigStatusResponse) String() string
type CreateInstanceRequest ¶
type CreateInstanceRequest struct {
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // If empty, server generates one
Config *InstanceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*CreateInstanceRequest) Descriptor
deprecated
func (*CreateInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInstanceRequest.ProtoReflect.Descriptor instead.
func (*CreateInstanceRequest) GetConfig ¶
func (x *CreateInstanceRequest) GetConfig() *InstanceConfig
func (*CreateInstanceRequest) GetInstanceId ¶
func (x *CreateInstanceRequest) GetInstanceId() string
func (*CreateInstanceRequest) ProtoMessage ¶
func (*CreateInstanceRequest) ProtoMessage()
func (*CreateInstanceRequest) ProtoReflect ¶
func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message
func (*CreateInstanceRequest) Reset ¶
func (x *CreateInstanceRequest) Reset()
func (*CreateInstanceRequest) String ¶
func (x *CreateInstanceRequest) String() string
type CreateInstanceResponse ¶
type CreateInstanceResponse struct {
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // Generated or confirmed instance ID
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // Current instance status
// contains filtered or unexported fields
}
func (*CreateInstanceResponse) Descriptor
deprecated
func (*CreateInstanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateInstanceResponse.ProtoReflect.Descriptor instead.
func (*CreateInstanceResponse) GetInstanceId ¶
func (x *CreateInstanceResponse) GetInstanceId() string
func (*CreateInstanceResponse) GetStatus ¶
func (x *CreateInstanceResponse) GetStatus() string
func (*CreateInstanceResponse) ProtoMessage ¶
func (*CreateInstanceResponse) ProtoMessage()
func (*CreateInstanceResponse) ProtoReflect ¶
func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message
func (*CreateInstanceResponse) Reset ¶
func (x *CreateInstanceResponse) Reset()
func (*CreateInstanceResponse) String ¶
func (x *CreateInstanceResponse) String() string
type DeleteGroupRequest ¶
type DeleteGroupRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteGroupRequest) Descriptor
deprecated
func (*DeleteGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteGroupRequest) GetKey ¶
func (x *DeleteGroupRequest) GetKey() string
func (*DeleteGroupRequest) ProtoMessage ¶
func (*DeleteGroupRequest) ProtoMessage()
func (*DeleteGroupRequest) ProtoReflect ¶
func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
func (*DeleteGroupRequest) Reset ¶
func (x *DeleteGroupRequest) Reset()
func (*DeleteGroupRequest) String ¶
func (x *DeleteGroupRequest) String() string
type DeleteInstanceRequest ¶
type DeleteInstanceRequest struct {
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteInstanceRequest) Descriptor
deprecated
func (*DeleteInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteInstanceRequest.ProtoReflect.Descriptor instead.
func (*DeleteInstanceRequest) GetInstanceId ¶
func (x *DeleteInstanceRequest) GetInstanceId() string
func (*DeleteInstanceRequest) ProtoMessage ¶
func (*DeleteInstanceRequest) ProtoMessage()
func (*DeleteInstanceRequest) ProtoReflect ¶
func (x *DeleteInstanceRequest) ProtoReflect() protoreflect.Message
func (*DeleteInstanceRequest) Reset ¶
func (x *DeleteInstanceRequest) Reset()
func (*DeleteInstanceRequest) String ¶
func (x *DeleteInstanceRequest) String() string
type DeleteInstanceResponse ¶
type DeleteInstanceResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // "deleting", "deleted", "unknown"
// contains filtered or unexported fields
}
func (*DeleteInstanceResponse) Descriptor
deprecated
func (*DeleteInstanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteInstanceResponse.ProtoReflect.Descriptor instead.
func (*DeleteInstanceResponse) GetStatus ¶
func (x *DeleteInstanceResponse) GetStatus() string
func (*DeleteInstanceResponse) ProtoMessage ¶
func (*DeleteInstanceResponse) ProtoMessage()
func (*DeleteInstanceResponse) ProtoReflect ¶
func (x *DeleteInstanceResponse) ProtoReflect() protoreflect.Message
func (*DeleteInstanceResponse) Reset ¶
func (x *DeleteInstanceResponse) Reset()
func (*DeleteInstanceResponse) String ¶
func (x *DeleteInstanceResponse) String() string
type DrainAckRequest ¶
type DrainAckRequest struct {
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// contains filtered or unexported fields
}
func (*DrainAckRequest) Descriptor
deprecated
func (*DrainAckRequest) Descriptor() ([]byte, []int)
Deprecated: Use DrainAckRequest.ProtoReflect.Descriptor instead.
func (*DrainAckRequest) GetInstanceId ¶
func (x *DrainAckRequest) GetInstanceId() string
func (*DrainAckRequest) ProtoMessage ¶
func (*DrainAckRequest) ProtoMessage()
func (*DrainAckRequest) ProtoReflect ¶
func (x *DrainAckRequest) ProtoReflect() protoreflect.Message
func (*DrainAckRequest) Reset ¶
func (x *DrainAckRequest) Reset()
func (*DrainAckRequest) String ¶
func (x *DrainAckRequest) String() string
type ErrorEvent ¶
type ErrorEvent struct {
Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // Affected group (optional)
InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // Affected instance (optional)
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // Error message
Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // When the error occurred
// contains filtered or unexported fields
}
Error event for provider errors, config validation failures, etc.
func (*ErrorEvent) Descriptor
deprecated
func (*ErrorEvent) Descriptor() ([]byte, []int)
Deprecated: Use ErrorEvent.ProtoReflect.Descriptor instead.
func (*ErrorEvent) GetError ¶
func (x *ErrorEvent) GetError() string
func (*ErrorEvent) GetGroup ¶
func (x *ErrorEvent) GetGroup() string
func (*ErrorEvent) GetInstanceId ¶
func (x *ErrorEvent) GetInstanceId() string
func (*ErrorEvent) GetTimestamp ¶
func (x *ErrorEvent) GetTimestamp() *timestamppb.Timestamp
func (*ErrorEvent) ProtoMessage ¶
func (*ErrorEvent) ProtoMessage()
func (*ErrorEvent) ProtoReflect ¶
func (x *ErrorEvent) ProtoReflect() protoreflect.Message
func (*ErrorEvent) Reset ¶
func (x *ErrorEvent) Reset()
func (*ErrorEvent) String ¶
func (x *ErrorEvent) String() string
type FileStatus ¶
type FileStatus struct {
// Types that are valid to be assigned to Status:
//
// *FileStatus_LastModified
// *FileStatus_Error
Status isFileStatus_Status `protobuf_oneof:"status"`
// contains filtered or unexported fields
}
func (*FileStatus) Descriptor
deprecated
func (*FileStatus) Descriptor() ([]byte, []int)
Deprecated: Use FileStatus.ProtoReflect.Descriptor instead.
func (*FileStatus) GetError ¶
func (x *FileStatus) GetError() string
func (*FileStatus) GetLastModified ¶
func (x *FileStatus) GetLastModified() *timestamppb.Timestamp
func (*FileStatus) GetStatus ¶
func (x *FileStatus) GetStatus() isFileStatus_Status
func (*FileStatus) ProtoMessage ¶
func (*FileStatus) ProtoMessage()
func (*FileStatus) ProtoReflect ¶
func (x *FileStatus) ProtoReflect() protoreflect.Message
func (*FileStatus) Reset ¶
func (x *FileStatus) Reset()
func (*FileStatus) String ¶
func (x *FileStatus) String() string
type FileStatus_Error ¶
type FileStatus_Error struct {
Error string `protobuf:"bytes,2,opt,name=error,proto3,oneof"` // Error accessing file
}
type FileStatus_LastModified ¶
type FileStatus_LastModified struct {
LastModified *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_modified,json=lastModified,proto3,oneof"` // File exists and last modified time
}
type FileTransfer ¶
type FileTransfer struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
LastModified *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
ConfigHash string `protobuf:"bytes,4,opt,name=config_hash,json=configHash,proto3" json:"config_hash,omitempty"` // Optional: updated runtime config hash to write to identity/config.hash
// contains filtered or unexported fields
}
func (*FileTransfer) Descriptor
deprecated
func (*FileTransfer) Descriptor() ([]byte, []int)
Deprecated: Use FileTransfer.ProtoReflect.Descriptor instead.
func (*FileTransfer) GetConfigHash ¶
func (x *FileTransfer) GetConfigHash() string
func (*FileTransfer) GetContent ¶
func (x *FileTransfer) GetContent() []byte
func (*FileTransfer) GetFilename ¶
func (x *FileTransfer) GetFilename() string
func (*FileTransfer) GetLastModified ¶
func (x *FileTransfer) GetLastModified() *timestamppb.Timestamp
func (*FileTransfer) ProtoMessage ¶
func (*FileTransfer) ProtoMessage()
func (*FileTransfer) ProtoReflect ¶
func (x *FileTransfer) ProtoReflect() protoreflect.Message
func (*FileTransfer) Reset ¶
func (x *FileTransfer) Reset()
func (*FileTransfer) String ¶
func (x *FileTransfer) String() string
type GetInstanceStatusRequest ¶
type GetInstanceStatusRequest struct {
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetInstanceStatusRequest) Descriptor
deprecated
func (*GetInstanceStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInstanceStatusRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceStatusRequest) GetInstanceId ¶
func (x *GetInstanceStatusRequest) GetInstanceId() string
func (*GetInstanceStatusRequest) ProtoMessage ¶
func (*GetInstanceStatusRequest) ProtoMessage()
func (*GetInstanceStatusRequest) ProtoReflect ¶
func (x *GetInstanceStatusRequest) ProtoReflect() protoreflect.Message
func (*GetInstanceStatusRequest) Reset ¶
func (x *GetInstanceStatusRequest) Reset()
func (*GetInstanceStatusRequest) String ¶
func (x *GetInstanceStatusRequest) String() string
type GroupConfig ¶
type GroupConfig struct {
Template string `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
InstanceType string `protobuf:"bytes,3,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"`
SubnetPool string `protobuf:"bytes,4,opt,name=subnet_pool,json=subnetPool,proto3" json:"subnet_pool,omitempty"` // Logical subnet pool ID (references server.subnet_pools map key)
Vars map[string]string `` /* 135-byte string literal not displayed */
Args map[string]string `` // Group-level overrides
/* 135-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GroupConfig) Descriptor
deprecated
func (*GroupConfig) Descriptor() ([]byte, []int)
Deprecated: Use GroupConfig.ProtoReflect.Descriptor instead.
func (*GroupConfig) GetArgs ¶
func (x *GroupConfig) GetArgs() map[string]string
func (*GroupConfig) GetInstanceType ¶
func (x *GroupConfig) GetInstanceType() string
func (*GroupConfig) GetSize ¶
func (x *GroupConfig) GetSize() int32
func (*GroupConfig) GetSubnetPool ¶
func (x *GroupConfig) GetSubnetPool() string
func (*GroupConfig) GetTemplate ¶
func (x *GroupConfig) GetTemplate() string
func (*GroupConfig) GetVars ¶
func (x *GroupConfig) GetVars() map[string]string
func (*GroupConfig) ProtoMessage ¶
func (*GroupConfig) ProtoMessage()
func (*GroupConfig) ProtoReflect ¶
func (x *GroupConfig) ProtoReflect() protoreflect.Message
func (*GroupConfig) Reset ¶
func (x *GroupConfig) Reset()
func (*GroupConfig) String ¶
func (x *GroupConfig) String() string
type GroupEvent ¶
type GroupEvent struct {
Type GroupEvent_Type `protobuf:"varint,1,opt,name=type,proto3,enum=nstance.v1.GroupEvent_Type" json:"type,omitempty"`
Group *GroupStatus `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` // For UPSERT: full group status. For DELETE: only key is set.
// contains filtered or unexported fields
}
Group change event
func (*GroupEvent) Descriptor
deprecated
func (*GroupEvent) Descriptor() ([]byte, []int)
Deprecated: Use GroupEvent.ProtoReflect.Descriptor instead.
func (*GroupEvent) GetGroup ¶
func (x *GroupEvent) GetGroup() *GroupStatus
func (*GroupEvent) GetType ¶
func (x *GroupEvent) GetType() GroupEvent_Type
func (*GroupEvent) ProtoMessage ¶
func (*GroupEvent) ProtoMessage()
func (*GroupEvent) ProtoReflect ¶
func (x *GroupEvent) ProtoReflect() protoreflect.Message
func (*GroupEvent) Reset ¶
func (x *GroupEvent) Reset()
func (*GroupEvent) String ¶
func (x *GroupEvent) String() string
type GroupEvent_Type ¶
type GroupEvent_Type int32
const ( GroupEvent_UPSERT GroupEvent_Type = 0 GroupEvent_DELETE GroupEvent_Type = 1 )
func (GroupEvent_Type) Descriptor ¶
func (GroupEvent_Type) Descriptor() protoreflect.EnumDescriptor
func (GroupEvent_Type) Enum ¶
func (x GroupEvent_Type) Enum() *GroupEvent_Type
func (GroupEvent_Type) EnumDescriptor
deprecated
func (GroupEvent_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupEvent_Type.Descriptor instead.
func (GroupEvent_Type) Number ¶
func (x GroupEvent_Type) Number() protoreflect.EnumNumber
func (GroupEvent_Type) String ¶
func (x GroupEvent_Type) String() string
func (GroupEvent_Type) Type ¶
func (GroupEvent_Type) Type() protoreflect.EnumType
type GroupStatus ¶
type GroupStatus struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Group name/key
Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` // Tenant identifier
Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"` // Instance template used
Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // Desired size
InstanceType string `protobuf:"bytes,5,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` // Instance type (from template or override)
SubnetPool string `protobuf:"bytes,6,opt,name=subnet_pool,json=subnetPool,proto3" json:"subnet_pool,omitempty"` // Logical subnet pool ID for this group
Vars map[string]string `` // Merged vars
/* 135-byte string literal not displayed */
IsStatic bool `protobuf:"varint,8,opt,name=is_static,json=isStatic,proto3" json:"is_static,omitempty"` // Whether group is defined in static config
Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"` // Hash of this group's merged config for change detection
ActualSize int32 `protobuf:"varint,10,opt,name=actual_size,json=actualSize,proto3" json:"actual_size,omitempty"` // Number of currently running instances
ProviderIds []string `protobuf:"bytes,11,rep,name=provider_ids,json=providerIds,proto3" json:"provider_ids,omitempty"` // Provider IDs of running instances (sorted)
// contains filtered or unexported fields
}
func (*GroupStatus) Descriptor
deprecated
func (*GroupStatus) Descriptor() ([]byte, []int)
Deprecated: Use GroupStatus.ProtoReflect.Descriptor instead.
func (*GroupStatus) GetActualSize ¶
func (x *GroupStatus) GetActualSize() int32
func (*GroupStatus) GetEtag ¶
func (x *GroupStatus) GetEtag() string
func (*GroupStatus) GetInstanceType ¶
func (x *GroupStatus) GetInstanceType() string
func (*GroupStatus) GetIsStatic ¶
func (x *GroupStatus) GetIsStatic() bool
func (*GroupStatus) GetKey ¶
func (x *GroupStatus) GetKey() string
func (*GroupStatus) GetProviderIds ¶
func (x *GroupStatus) GetProviderIds() []string
func (*GroupStatus) GetSize ¶
func (x *GroupStatus) GetSize() int32
func (*GroupStatus) GetSubnetPool ¶
func (x *GroupStatus) GetSubnetPool() string
func (*GroupStatus) GetTemplate ¶
func (x *GroupStatus) GetTemplate() string
func (*GroupStatus) GetTenant ¶
func (x *GroupStatus) GetTenant() string
func (*GroupStatus) GetVars ¶
func (x *GroupStatus) GetVars() map[string]string
func (*GroupStatus) ProtoMessage ¶
func (*GroupStatus) ProtoMessage()
func (*GroupStatus) ProtoReflect ¶
func (x *GroupStatus) ProtoReflect() protoreflect.Message
func (*GroupStatus) Reset ¶
func (x *GroupStatus) Reset()
func (*GroupStatus) String ¶
func (x *GroupStatus) String() string
type HealthReportRequest ¶
type HealthReportRequest struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Agent version
InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // Health report sequence number
Started *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started,proto3" json:"started,omitempty"` // When metrics collection started
WindowStart *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=window_start,json=windowStart,proto3" json:"window_start,omitempty"` // Current metrics window start
WindowEnd *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=window_end,json=windowEnd,proto3" json:"window_end,omitempty"` // Current metrics window end
Uptime string `protobuf:"bytes,8,opt,name=uptime,proto3" json:"uptime,omitempty"` // Uptime duration string
OneMinute *Metrics `protobuf:"bytes,9,opt,name=one_minute,json=oneMinute,proto3" json:"one_minute,omitempty"` // 1-minute averages
FiveMinutes *Metrics `protobuf:"bytes,10,opt,name=five_minutes,json=fiveMinutes,proto3" json:"five_minutes,omitempty"` // 5-minute averages
FifteenMinutes *Metrics `protobuf:"bytes,11,opt,name=fifteen_minutes,json=fifteenMinutes,proto3" json:"fifteen_minutes,omitempty"` // 15-minute averages
Files map[string]*FileStatus `` // File status map
/* 138-byte string literal not displayed */
TerminationNotice *TerminationNotice `protobuf:"bytes,13,opt,name=termination_notice,json=terminationNotice,proto3" json:"termination_notice,omitempty"` // Optional termination notice for spot instances
ConfigHash string `protobuf:"bytes,14,opt,name=config_hash,json=configHash,proto3" json:"config_hash,omitempty"` // Runtime config hash from /opt/nstance-agent/identity/config.hash
// contains filtered or unexported fields
}
func (*HealthReportRequest) Descriptor
deprecated
func (*HealthReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthReportRequest.ProtoReflect.Descriptor instead.
func (*HealthReportRequest) GetConfigHash ¶
func (x *HealthReportRequest) GetConfigHash() string
func (*HealthReportRequest) GetCount ¶
func (x *HealthReportRequest) GetCount() int64
func (*HealthReportRequest) GetFifteenMinutes ¶
func (x *HealthReportRequest) GetFifteenMinutes() *Metrics
func (*HealthReportRequest) GetFiles ¶
func (x *HealthReportRequest) GetFiles() map[string]*FileStatus
func (*HealthReportRequest) GetFiveMinutes ¶
func (x *HealthReportRequest) GetFiveMinutes() *Metrics
func (*HealthReportRequest) GetInstanceId ¶
func (x *HealthReportRequest) GetInstanceId() string
func (*HealthReportRequest) GetOneMinute ¶
func (x *HealthReportRequest) GetOneMinute() *Metrics
func (*HealthReportRequest) GetStarted ¶
func (x *HealthReportRequest) GetStarted() *timestamppb.Timestamp
func (*HealthReportRequest) GetTerminationNotice ¶
func (x *HealthReportRequest) GetTerminationNotice() *TerminationNotice
func (*HealthReportRequest) GetTimestamp ¶
func (x *HealthReportRequest) GetTimestamp() *timestamppb.Timestamp
func (*HealthReportRequest) GetUptime ¶
func (x *HealthReportRequest) GetUptime() string
func (*HealthReportRequest) GetVersion ¶
func (x *HealthReportRequest) GetVersion() string
func (*HealthReportRequest) GetWindowEnd ¶
func (x *HealthReportRequest) GetWindowEnd() *timestamppb.Timestamp
func (*HealthReportRequest) GetWindowStart ¶
func (x *HealthReportRequest) GetWindowStart() *timestamppb.Timestamp
func (*HealthReportRequest) ProtoMessage ¶
func (*HealthReportRequest) ProtoMessage()
func (*HealthReportRequest) ProtoReflect ¶
func (x *HealthReportRequest) ProtoReflect() protoreflect.Message
func (*HealthReportRequest) Reset ¶
func (x *HealthReportRequest) Reset()
func (*HealthReportRequest) String ¶
func (x *HealthReportRequest) String() string
type InstanceConfig ¶
type InstanceConfig struct {
Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // Required group reference
Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` // Optional template override
InstanceType string `protobuf:"bytes,3,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` // Optional instance type override
SubnetPool string `protobuf:"bytes,4,opt,name=subnet_pool,json=subnetPool,proto3" json:"subnet_pool,omitempty"` // Optional subnet pool override
Vars map[string]string `` // Additional vars
/* 135-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*InstanceConfig) Descriptor
deprecated
func (*InstanceConfig) Descriptor() ([]byte, []int)
Deprecated: Use InstanceConfig.ProtoReflect.Descriptor instead.
func (*InstanceConfig) GetGroup ¶
func (x *InstanceConfig) GetGroup() string
func (*InstanceConfig) GetInstanceType ¶
func (x *InstanceConfig) GetInstanceType() string
func (*InstanceConfig) GetSubnetPool ¶
func (x *InstanceConfig) GetSubnetPool() string
func (*InstanceConfig) GetTemplate ¶
func (x *InstanceConfig) GetTemplate() string
func (*InstanceConfig) GetVars ¶
func (x *InstanceConfig) GetVars() map[string]string
func (*InstanceConfig) ProtoMessage ¶
func (*InstanceConfig) ProtoMessage()
func (*InstanceConfig) ProtoReflect ¶
func (x *InstanceConfig) ProtoReflect() protoreflect.Message
func (*InstanceConfig) Reset ¶
func (x *InstanceConfig) Reset()
func (*InstanceConfig) String ¶
func (x *InstanceConfig) String() string
type InstanceEvent ¶
type InstanceEvent struct {
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` // Tenant identifier
ProviderInstanceId string `protobuf:"bytes,3,opt,name=provider_instance_id,json=providerInstanceId,proto3" json:"provider_instance_id,omitempty"` // Provider's instance ID (e.g., i-1234567890abcdef0) for node mapping
Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"`
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` // "pending_deletion", "deleting", "deleted"
Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` // Why instance is being deleted (e.g., "unhealthy")
UnhealthyAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=unhealthy_at,json=unhealthyAt,proto3" json:"unhealthy_at,omitempty"` // When instance was determined unhealthy
DeleteAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_at,json=deleteAt,proto3" json:"delete_at,omitempty"` // When instance will be deleted (drain_timeout from unhealthy_at)
// contains filtered or unexported fields
}
func (*InstanceEvent) Descriptor
deprecated
func (*InstanceEvent) Descriptor() ([]byte, []int)
Deprecated: Use InstanceEvent.ProtoReflect.Descriptor instead.
func (*InstanceEvent) GetDeleteAt ¶
func (x *InstanceEvent) GetDeleteAt() *timestamppb.Timestamp
func (*InstanceEvent) GetGroup ¶
func (x *InstanceEvent) GetGroup() string
func (*InstanceEvent) GetInstanceId ¶
func (x *InstanceEvent) GetInstanceId() string
func (*InstanceEvent) GetProviderInstanceId ¶
func (x *InstanceEvent) GetProviderInstanceId() string
func (*InstanceEvent) GetReason ¶
func (x *InstanceEvent) GetReason() string
func (*InstanceEvent) GetStatus ¶
func (x *InstanceEvent) GetStatus() string
func (*InstanceEvent) GetTenant ¶
func (x *InstanceEvent) GetTenant() string
func (*InstanceEvent) GetUnhealthyAt ¶
func (x *InstanceEvent) GetUnhealthyAt() *timestamppb.Timestamp
func (*InstanceEvent) ProtoMessage ¶
func (*InstanceEvent) ProtoMessage()
func (*InstanceEvent) ProtoReflect ¶
func (x *InstanceEvent) ProtoReflect() protoreflect.Message
func (*InstanceEvent) Reset ¶
func (x *InstanceEvent) Reset()
func (*InstanceEvent) String ¶
func (x *InstanceEvent) String() string
type InstanceStatusResponse ¶
type InstanceStatusResponse struct {
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` // Tenant identifier
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // "pending", "running", "terminating", "terminated", etc.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
LastSeen *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
ProviderInstanceId string `protobuf:"bytes,6,opt,name=provider_instance_id,json=providerInstanceId,proto3" json:"provider_instance_id,omitempty"` // e.g., EC2 instance ID
// contains filtered or unexported fields
}
func (*InstanceStatusResponse) Descriptor
deprecated
func (*InstanceStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use InstanceStatusResponse.ProtoReflect.Descriptor instead.
func (*InstanceStatusResponse) GetCreatedAt ¶
func (x *InstanceStatusResponse) GetCreatedAt() *timestamppb.Timestamp
func (*InstanceStatusResponse) GetInstanceId ¶
func (x *InstanceStatusResponse) GetInstanceId() string
func (*InstanceStatusResponse) GetLastSeen ¶
func (x *InstanceStatusResponse) GetLastSeen() *timestamppb.Timestamp
func (*InstanceStatusResponse) GetProviderInstanceId ¶
func (x *InstanceStatusResponse) GetProviderInstanceId() string
func (*InstanceStatusResponse) GetStatus ¶
func (x *InstanceStatusResponse) GetStatus() string
func (*InstanceStatusResponse) GetTenant ¶
func (x *InstanceStatusResponse) GetTenant() string
func (*InstanceStatusResponse) ProtoMessage ¶
func (*InstanceStatusResponse) ProtoMessage()
func (*InstanceStatusResponse) ProtoReflect ¶
func (x *InstanceStatusResponse) ProtoReflect() protoreflect.Message
func (*InstanceStatusResponse) Reset ¶
func (x *InstanceStatusResponse) Reset()
func (*InstanceStatusResponse) String ¶
func (x *InstanceStatusResponse) String() string
type KeyGenerationRequest ¶
type KeyGenerationRequest struct {
KeyNames []string `protobuf:"bytes,1,rep,name=key_names,json=keyNames,proto3" json:"key_names,omitempty"`
// contains filtered or unexported fields
}
func (*KeyGenerationRequest) Descriptor
deprecated
func (*KeyGenerationRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyGenerationRequest.ProtoReflect.Descriptor instead.
func (*KeyGenerationRequest) GetKeyNames ¶
func (x *KeyGenerationRequest) GetKeyNames() []string
func (*KeyGenerationRequest) ProtoMessage ¶
func (*KeyGenerationRequest) ProtoMessage()
func (*KeyGenerationRequest) ProtoReflect ¶
func (x *KeyGenerationRequest) ProtoReflect() protoreflect.Message
func (*KeyGenerationRequest) Reset ¶
func (x *KeyGenerationRequest) Reset()
func (*KeyGenerationRequest) String ¶
func (x *KeyGenerationRequest) String() string
type ListGroupsResponse ¶
type ListGroupsResponse struct {
Groups []*GroupStatus `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
// contains filtered or unexported fields
}
func (*ListGroupsResponse) Descriptor
deprecated
func (*ListGroupsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListGroupsResponse) GetGroups ¶
func (x *ListGroupsResponse) GetGroups() []*GroupStatus
func (*ListGroupsResponse) ProtoMessage ¶
func (*ListGroupsResponse) ProtoMessage()
func (*ListGroupsResponse) ProtoReflect ¶
func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message
func (*ListGroupsResponse) Reset ¶
func (x *ListGroupsResponse) Reset()
func (*ListGroupsResponse) String ¶
func (x *ListGroupsResponse) String() string
type Metrics ¶
type Metrics struct {
CpuUsage float64 `protobuf:"fixed64,1,opt,name=cpu_usage,json=cpuUsage,proto3" json:"cpu_usage,omitempty"` // CPU usage percentage
CpuCoreUsage []float64 `protobuf:"fixed64,2,rep,packed,name=cpu_core_usage,json=cpuCoreUsage,proto3" json:"cpu_core_usage,omitempty"` // Per-core CPU usage percentages
MemoryUsage float64 `protobuf:"fixed64,3,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"` // Memory usage percentage
NetworkBytesSent float64 `protobuf:"fixed64,4,opt,name=network_bytes_sent,json=networkBytesSent,proto3" json:"network_bytes_sent,omitempty"` // Network bytes sent
NetworkBytesReceived float64 `protobuf:"fixed64,5,opt,name=network_bytes_received,json=networkBytesReceived,proto3" json:"network_bytes_received,omitempty"` // Network bytes received
DiskUsed float64 `protobuf:"fixed64,6,opt,name=disk_used,json=diskUsed,proto3" json:"disk_used,omitempty"` // Disk usage percentage
DiskInodesUsed float64 `protobuf:"fixed64,7,opt,name=disk_inodes_used,json=diskInodesUsed,proto3" json:"disk_inodes_used,omitempty"` // Disk inode usage percentage
DiskBytesRead float64 `protobuf:"fixed64,8,opt,name=disk_bytes_read,json=diskBytesRead,proto3" json:"disk_bytes_read,omitempty"` // Disk bytes read
DiskBytesWritten float64 `protobuf:"fixed64,9,opt,name=disk_bytes_written,json=diskBytesWritten,proto3" json:"disk_bytes_written,omitempty"` // Disk bytes written
// contains filtered or unexported fields
}
func (*Metrics) Descriptor
deprecated
func (*Metrics) GetCpuCoreUsage ¶
func (*Metrics) GetCpuUsage ¶
func (*Metrics) GetDiskBytesRead ¶
func (*Metrics) GetDiskBytesWritten ¶
func (*Metrics) GetDiskInodesUsed ¶
func (*Metrics) GetDiskUsed ¶
func (*Metrics) GetMemoryUsage ¶
func (*Metrics) GetNetworkBytesReceived ¶
func (*Metrics) GetNetworkBytesSent ¶
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
func (*Metrics) ProtoReflect ¶
func (x *Metrics) ProtoReflect() protoreflect.Message
type OperatorServiceClient ¶
type OperatorServiceClient interface {
// Certificate renewal
RenewCertificate(ctx context.Context, in *RenewCertificateRequest, opts ...grpc.CallOption) (*RenewCertificateResponse, error)
// GetConfigStatus returns current configuration metadata for per-shard config
GetConfigStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ConfigStatusResponse, error)
// RefreshConfig triggers server to reload configuration from S3
RefreshConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RefreshConfigResponse, error)
// Group management operations
ListGroups(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListGroupsResponse, error)
UpsertGroup(ctx context.Context, in *UpsertGroupRequest, opts ...grpc.CallOption) (*GroupStatus, error)
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Instance management operations
CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*CreateInstanceResponse, error)
DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*DeleteInstanceResponse, error)
GetInstanceStatus(ctx context.Context, in *GetInstanceStatusRequest, opts ...grpc.CallOption) (*InstanceStatusResponse, error)
AcknowledgeDrained(ctx context.Context, in *DrainAckRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Watch streams for operator sync
WatchGroups(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GroupEvent], error)
WatchInstances(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[InstanceEvent], error)
WatchErrors(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ErrorEvent], error)
}
OperatorServiceClient is the client API for OperatorService 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.
OperatorService provides authenticated API for Nstance Operator
func NewOperatorServiceClient ¶
func NewOperatorServiceClient(cc grpc.ClientConnInterface) OperatorServiceClient
type OperatorServiceServer ¶
type OperatorServiceServer interface {
// Certificate renewal
RenewCertificate(context.Context, *RenewCertificateRequest) (*RenewCertificateResponse, error)
// GetConfigStatus returns current configuration metadata for per-shard config
GetConfigStatus(context.Context, *emptypb.Empty) (*ConfigStatusResponse, error)
// RefreshConfig triggers server to reload configuration from S3
RefreshConfig(context.Context, *emptypb.Empty) (*RefreshConfigResponse, error)
// Group management operations
ListGroups(context.Context, *emptypb.Empty) (*ListGroupsResponse, error)
UpsertGroup(context.Context, *UpsertGroupRequest) (*GroupStatus, error)
DeleteGroup(context.Context, *DeleteGroupRequest) (*emptypb.Empty, error)
// Instance management operations
CreateInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error)
DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error)
GetInstanceStatus(context.Context, *GetInstanceStatusRequest) (*InstanceStatusResponse, error)
AcknowledgeDrained(context.Context, *DrainAckRequest) (*emptypb.Empty, error)
// Watch streams for operator sync
WatchGroups(*emptypb.Empty, grpc.ServerStreamingServer[GroupEvent]) error
WatchInstances(*emptypb.Empty, grpc.ServerStreamingServer[InstanceEvent]) error
WatchErrors(*emptypb.Empty, grpc.ServerStreamingServer[ErrorEvent]) error
// contains filtered or unexported methods
}
OperatorServiceServer is the server API for OperatorService service. All implementations must embed UnimplementedOperatorServiceServer for forward compatibility.
OperatorService provides authenticated API for Nstance Operator
type OperatorService_WatchErrorsClient ¶
type OperatorService_WatchErrorsClient = grpc.ServerStreamingClient[ErrorEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type OperatorService_WatchErrorsServer ¶
type OperatorService_WatchErrorsServer = grpc.ServerStreamingServer[ErrorEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type OperatorService_WatchGroupsClient ¶
type OperatorService_WatchGroupsClient = grpc.ServerStreamingClient[GroupEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type OperatorService_WatchGroupsServer ¶
type OperatorService_WatchGroupsServer = grpc.ServerStreamingServer[GroupEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type OperatorService_WatchInstancesClient ¶
type OperatorService_WatchInstancesClient = grpc.ServerStreamingClient[InstanceEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type OperatorService_WatchInstancesServer ¶
type OperatorService_WatchInstancesServer = grpc.ServerStreamingServer[InstanceEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type PublicKeySubmission ¶
type PublicKeySubmission struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // e.g., "kubelet.server"
PublicKeyPem []byte `protobuf:"bytes,2,opt,name=public_key_pem,json=publicKeyPem,proto3" json:"public_key_pem,omitempty"` // PEM-encoded public key
// contains filtered or unexported fields
}
func (*PublicKeySubmission) Descriptor
deprecated
func (*PublicKeySubmission) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeySubmission.ProtoReflect.Descriptor instead.
func (*PublicKeySubmission) GetFilename ¶
func (x *PublicKeySubmission) GetFilename() string
func (*PublicKeySubmission) GetPublicKeyPem ¶
func (x *PublicKeySubmission) GetPublicKeyPem() []byte
func (*PublicKeySubmission) ProtoMessage ¶
func (*PublicKeySubmission) ProtoMessage()
func (*PublicKeySubmission) ProtoReflect ¶
func (x *PublicKeySubmission) ProtoReflect() protoreflect.Message
func (*PublicKeySubmission) Reset ¶
func (x *PublicKeySubmission) Reset()
func (*PublicKeySubmission) String ¶
func (x *PublicKeySubmission) String() string
type PublicKeysRequest ¶
type PublicKeysRequest struct {
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
Keys []*PublicKeySubmission `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
// contains filtered or unexported fields
}
func (*PublicKeysRequest) Descriptor
deprecated
func (*PublicKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeysRequest.ProtoReflect.Descriptor instead.
func (*PublicKeysRequest) GetInstanceId ¶
func (x *PublicKeysRequest) GetInstanceId() string
func (*PublicKeysRequest) GetKeys ¶
func (x *PublicKeysRequest) GetKeys() []*PublicKeySubmission
func (*PublicKeysRequest) ProtoMessage ¶
func (*PublicKeysRequest) ProtoMessage()
func (*PublicKeysRequest) ProtoReflect ¶
func (x *PublicKeysRequest) ProtoReflect() protoreflect.Message
func (*PublicKeysRequest) Reset ¶
func (x *PublicKeysRequest) Reset()
func (*PublicKeysRequest) String ¶
func (x *PublicKeysRequest) String() string
type RefreshConfigResponse ¶
type RefreshConfigResponse struct {
Updated bool `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"` // true if config was updated, false if unchanged
PrevEtag string `protobuf:"bytes,2,opt,name=prev_etag,json=prevEtag,proto3" json:"prev_etag,omitempty"` // Config etag before refresh
Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` // Config etag after refresh
// contains filtered or unexported fields
}
RefreshConfig response
func (*RefreshConfigResponse) Descriptor
deprecated
func (*RefreshConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshConfigResponse.ProtoReflect.Descriptor instead.
func (*RefreshConfigResponse) GetEtag ¶
func (x *RefreshConfigResponse) GetEtag() string
func (*RefreshConfigResponse) GetPrevEtag ¶
func (x *RefreshConfigResponse) GetPrevEtag() string
func (*RefreshConfigResponse) GetUpdated ¶
func (x *RefreshConfigResponse) GetUpdated() bool
func (*RefreshConfigResponse) ProtoMessage ¶
func (*RefreshConfigResponse) ProtoMessage()
func (*RefreshConfigResponse) ProtoReflect ¶
func (x *RefreshConfigResponse) ProtoReflect() protoreflect.Message
func (*RefreshConfigResponse) Reset ¶
func (x *RefreshConfigResponse) Reset()
func (*RefreshConfigResponse) String ¶
func (x *RefreshConfigResponse) String() string
type RegisterClientRequest ¶
type RegisterClientRequest struct {
RegistrationNonceJwt string `protobuf:"bytes,1,opt,name=registration_nonce_jwt,json=registrationNonceJwt,proto3" json:"registration_nonce_jwt,omitempty"`
PublicKeyPem []byte `protobuf:"bytes,2,opt,name=public_key_pem,json=publicKeyPem,proto3" json:"public_key_pem,omitempty"` // PEM-encoded public key
PrivateIpv4 string `protobuf:"bytes,3,opt,name=private_ipv4,json=privateIpv4,proto3" json:"private_ipv4,omitempty"` // Agent-reported private IPv4
PrivateIpv6 string `protobuf:"bytes,4,opt,name=private_ipv6,json=privateIpv6,proto3" json:"private_ipv6,omitempty"` // Agent-reported private IPv6
Hostname string `protobuf:"bytes,5,opt,name=hostname,proto3" json:"hostname,omitempty"` // Agent-reported hostname
// contains filtered or unexported fields
}
func (*RegisterClientRequest) Descriptor
deprecated
func (*RegisterClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterClientRequest.ProtoReflect.Descriptor instead.
func (*RegisterClientRequest) GetHostname ¶
func (x *RegisterClientRequest) GetHostname() string
func (*RegisterClientRequest) GetPrivateIpv4 ¶
func (x *RegisterClientRequest) GetPrivateIpv4() string
func (*RegisterClientRequest) GetPrivateIpv6 ¶
func (x *RegisterClientRequest) GetPrivateIpv6() string
func (*RegisterClientRequest) GetPublicKeyPem ¶
func (x *RegisterClientRequest) GetPublicKeyPem() []byte
func (*RegisterClientRequest) GetRegistrationNonceJwt ¶
func (x *RegisterClientRequest) GetRegistrationNonceJwt() string
func (*RegisterClientRequest) ProtoMessage ¶
func (*RegisterClientRequest) ProtoMessage()
func (*RegisterClientRequest) ProtoReflect ¶
func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
func (*RegisterClientRequest) Reset ¶
func (x *RegisterClientRequest) Reset()
func (*RegisterClientRequest) String ¶
func (x *RegisterClientRequest) String() string
type RegisterClientResponse ¶
type RegisterClientResponse struct {
ClientCertificatePem []byte `protobuf:"bytes,1,opt,name=client_certificate_pem,json=clientCertificatePem,proto3" json:"client_certificate_pem,omitempty"` // PEM-encoded client certificate
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterClientResponse) Descriptor
deprecated
func (*RegisterClientResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterClientResponse.ProtoReflect.Descriptor instead.
func (*RegisterClientResponse) GetClientCertificatePem ¶
func (x *RegisterClientResponse) GetClientCertificatePem() []byte
func (*RegisterClientResponse) GetExpiresAt ¶
func (x *RegisterClientResponse) GetExpiresAt() *timestamppb.Timestamp
func (*RegisterClientResponse) ProtoMessage ¶
func (*RegisterClientResponse) ProtoMessage()
func (*RegisterClientResponse) ProtoReflect ¶
func (x *RegisterClientResponse) ProtoReflect() protoreflect.Message
func (*RegisterClientResponse) Reset ¶
func (x *RegisterClientResponse) Reset()
func (*RegisterClientResponse) String ¶
func (x *RegisterClientResponse) String() string
type RegistrationServiceClient ¶
type RegistrationServiceClient interface {
// RegisterAgent registers a new agent using a registration nonce JWT
RegisterAgent(ctx context.Context, in *RegisterClientRequest, opts ...grpc.CallOption) (*RegisterClientResponse, error)
// RegisterOperator registers a new operator using a registration nonce JWT
RegisterOperator(ctx context.Context, in *RegisterClientRequest, opts ...grpc.CallOption) (*RegisterClientResponse, error)
}
RegistrationServiceClient is the client API for RegistrationService 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.
RegistrationService provides anonymous client registration using registration nonce JWTs
func NewRegistrationServiceClient ¶
func NewRegistrationServiceClient(cc grpc.ClientConnInterface) RegistrationServiceClient
type RegistrationServiceServer ¶
type RegistrationServiceServer interface {
// RegisterAgent registers a new agent using a registration nonce JWT
RegisterAgent(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
// RegisterOperator registers a new operator using a registration nonce JWT
RegisterOperator(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
// contains filtered or unexported methods
}
RegistrationServiceServer is the server API for RegistrationService service. All implementations must embed UnimplementedRegistrationServiceServer for forward compatibility.
RegistrationService provides anonymous client registration using registration nonce JWTs
type RenewCertificateRequest ¶
type RenewCertificateRequest struct {
PublicKeyPem []byte `protobuf:"bytes,1,opt,name=public_key_pem,json=publicKeyPem,proto3" json:"public_key_pem,omitempty"` // Same or new public key
// contains filtered or unexported fields
}
Certificate renewal request
func (*RenewCertificateRequest) Descriptor
deprecated
func (*RenewCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use RenewCertificateRequest.ProtoReflect.Descriptor instead.
func (*RenewCertificateRequest) GetPublicKeyPem ¶
func (x *RenewCertificateRequest) GetPublicKeyPem() []byte
func (*RenewCertificateRequest) ProtoMessage ¶
func (*RenewCertificateRequest) ProtoMessage()
func (*RenewCertificateRequest) ProtoReflect ¶
func (x *RenewCertificateRequest) ProtoReflect() protoreflect.Message
func (*RenewCertificateRequest) Reset ¶
func (x *RenewCertificateRequest) Reset()
func (*RenewCertificateRequest) String ¶
func (x *RenewCertificateRequest) String() string
type RenewCertificateResponse ¶
type RenewCertificateResponse struct {
ClientCertificatePem []byte `protobuf:"bytes,1,opt,name=client_certificate_pem,json=clientCertificatePem,proto3" json:"client_certificate_pem,omitempty"`
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
// contains filtered or unexported fields
}
Certificate renewal response
func (*RenewCertificateResponse) Descriptor
deprecated
func (*RenewCertificateResponse) Descriptor() ([]byte, []int)
Deprecated: Use RenewCertificateResponse.ProtoReflect.Descriptor instead.
func (*RenewCertificateResponse) GetClientCertificatePem ¶
func (x *RenewCertificateResponse) GetClientCertificatePem() []byte
func (*RenewCertificateResponse) GetExpiresAt ¶
func (x *RenewCertificateResponse) GetExpiresAt() *timestamppb.Timestamp
func (*RenewCertificateResponse) ProtoMessage ¶
func (*RenewCertificateResponse) ProtoMessage()
func (*RenewCertificateResponse) ProtoReflect ¶
func (x *RenewCertificateResponse) ProtoReflect() protoreflect.Message
func (*RenewCertificateResponse) Reset ¶
func (x *RenewCertificateResponse) Reset()
func (*RenewCertificateResponse) String ¶
func (x *RenewCertificateResponse) String() string
type TerminationNotice ¶
type TerminationNotice struct {
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` // Action to take, e.g., "terminate"
Deadline *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=deadline,proto3" json:"deadline,omitempty"` // Optional termination deadline
// contains filtered or unexported fields
}
func (*TerminationNotice) Descriptor
deprecated
func (*TerminationNotice) Descriptor() ([]byte, []int)
Deprecated: Use TerminationNotice.ProtoReflect.Descriptor instead.
func (*TerminationNotice) GetAction ¶
func (x *TerminationNotice) GetAction() string
func (*TerminationNotice) GetDeadline ¶
func (x *TerminationNotice) GetDeadline() *timestamppb.Timestamp
func (*TerminationNotice) ProtoMessage ¶
func (*TerminationNotice) ProtoMessage()
func (*TerminationNotice) ProtoReflect ¶
func (x *TerminationNotice) ProtoReflect() protoreflect.Message
func (*TerminationNotice) Reset ¶
func (x *TerminationNotice) Reset()
func (*TerminationNotice) String ¶
func (x *TerminationNotice) String() string
type UnimplementedAgentServiceServer ¶
type UnimplementedAgentServiceServer struct{}
UnimplementedAgentServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAgentServiceServer) ReceiveFiles ¶
func (UnimplementedAgentServiceServer) ReceiveFiles(*emptypb.Empty, grpc.ServerStreamingServer[FileTransfer]) error
func (UnimplementedAgentServiceServer) ReceiveKeyRequests ¶
func (UnimplementedAgentServiceServer) ReceiveKeyRequests(*emptypb.Empty, grpc.ServerStreamingServer[KeyGenerationRequest]) error
func (UnimplementedAgentServiceServer) SubmitHealthReport ¶
func (UnimplementedAgentServiceServer) SubmitHealthReport(grpc.ClientStreamingServer[HealthReportRequest, emptypb.Empty]) error
func (UnimplementedAgentServiceServer) SubmitPublicKeys ¶
func (UnimplementedAgentServiceServer) SubmitPublicKeys(context.Context, *PublicKeysRequest) (*emptypb.Empty, error)
type UnimplementedOperatorServiceServer ¶
type UnimplementedOperatorServiceServer struct{}
UnimplementedOperatorServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedOperatorServiceServer) AcknowledgeDrained ¶
func (UnimplementedOperatorServiceServer) AcknowledgeDrained(context.Context, *DrainAckRequest) (*emptypb.Empty, error)
func (UnimplementedOperatorServiceServer) CreateInstance ¶
func (UnimplementedOperatorServiceServer) CreateInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error)
func (UnimplementedOperatorServiceServer) DeleteGroup ¶
func (UnimplementedOperatorServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*emptypb.Empty, error)
func (UnimplementedOperatorServiceServer) DeleteInstance ¶
func (UnimplementedOperatorServiceServer) DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error)
func (UnimplementedOperatorServiceServer) GetConfigStatus ¶
func (UnimplementedOperatorServiceServer) GetConfigStatus(context.Context, *emptypb.Empty) (*ConfigStatusResponse, error)
func (UnimplementedOperatorServiceServer) GetInstanceStatus ¶
func (UnimplementedOperatorServiceServer) GetInstanceStatus(context.Context, *GetInstanceStatusRequest) (*InstanceStatusResponse, error)
func (UnimplementedOperatorServiceServer) ListGroups ¶
func (UnimplementedOperatorServiceServer) ListGroups(context.Context, *emptypb.Empty) (*ListGroupsResponse, error)
func (UnimplementedOperatorServiceServer) RefreshConfig ¶
func (UnimplementedOperatorServiceServer) RefreshConfig(context.Context, *emptypb.Empty) (*RefreshConfigResponse, error)
func (UnimplementedOperatorServiceServer) RenewCertificate ¶
func (UnimplementedOperatorServiceServer) RenewCertificate(context.Context, *RenewCertificateRequest) (*RenewCertificateResponse, error)
func (UnimplementedOperatorServiceServer) UpsertGroup ¶
func (UnimplementedOperatorServiceServer) UpsertGroup(context.Context, *UpsertGroupRequest) (*GroupStatus, error)
func (UnimplementedOperatorServiceServer) WatchErrors ¶
func (UnimplementedOperatorServiceServer) WatchErrors(*emptypb.Empty, grpc.ServerStreamingServer[ErrorEvent]) error
func (UnimplementedOperatorServiceServer) WatchGroups ¶
func (UnimplementedOperatorServiceServer) WatchGroups(*emptypb.Empty, grpc.ServerStreamingServer[GroupEvent]) error
func (UnimplementedOperatorServiceServer) WatchInstances ¶
func (UnimplementedOperatorServiceServer) WatchInstances(*emptypb.Empty, grpc.ServerStreamingServer[InstanceEvent]) error
type UnimplementedRegistrationServiceServer ¶
type UnimplementedRegistrationServiceServer struct{}
UnimplementedRegistrationServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRegistrationServiceServer) RegisterAgent ¶
func (UnimplementedRegistrationServiceServer) RegisterAgent(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
func (UnimplementedRegistrationServiceServer) RegisterOperator ¶
func (UnimplementedRegistrationServiceServer) RegisterOperator(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
type UnsafeAgentServiceServer ¶
type UnsafeAgentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServiceServer will result in compilation errors.
type UnsafeOperatorServiceServer ¶
type UnsafeOperatorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOperatorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OperatorServiceServer will result in compilation errors.
type UnsafeRegistrationServiceServer ¶
type UnsafeRegistrationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRegistrationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegistrationServiceServer will result in compilation errors.
type UpsertGroupRequest ¶
type UpsertGroupRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Config *GroupConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*UpsertGroupRequest) Descriptor
deprecated
func (*UpsertGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpsertGroupRequest.ProtoReflect.Descriptor instead.
func (*UpsertGroupRequest) GetConfig ¶
func (x *UpsertGroupRequest) GetConfig() *GroupConfig
func (*UpsertGroupRequest) GetKey ¶
func (x *UpsertGroupRequest) GetKey() string
func (*UpsertGroupRequest) ProtoMessage ¶
func (*UpsertGroupRequest) ProtoMessage()
func (*UpsertGroupRequest) ProtoReflect ¶
func (x *UpsertGroupRequest) ProtoReflect() protoreflect.Message
func (*UpsertGroupRequest) Reset ¶
func (x *UpsertGroupRequest) Reset()
func (*UpsertGroupRequest) String ¶
func (x *UpsertGroupRequest) String() string