Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterVersionServiceServer(s grpc.ServiceRegistrar, srv VersionServiceServer)
- type Action
- type AgentState
- type AgentType
- type GetVersionRequest
- func (*GetVersionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVersionRequest) GetAgentState() AgentState
- func (x *GetVersionRequest) GetAgentStateMessages() []string
- func (x *GetVersionRequest) GetAgentUptime() *durationpb.Duration
- func (x *GetVersionRequest) GetAgentVersion() string
- func (x *GetVersionRequest) GetInstanceId() string
- func (x *GetVersionRequest) GetLastUpdateError() string
- func (x *GetVersionRequest) GetMk8SClusterId() string
- func (x *GetVersionRequest) GetOsInfo() *OSInfo
- func (x *GetVersionRequest) GetParentId() string
- func (x *GetVersionRequest) GetSystemUptime() *durationpb.Duration
- func (x *GetVersionRequest) GetType() AgentType
- func (x *GetVersionRequest) GetUpdaterUptime() *durationpb.Duration
- func (x *GetVersionRequest) GetUpdaterVersion() string
- func (*GetVersionRequest) ProtoMessage()
- func (x *GetVersionRequest) ProtoReflect() protoreflect.Message
- func (x *GetVersionRequest) Reset()
- func (x *GetVersionRequest) String() string
- type GetVersionResponse
- func (*GetVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVersionResponse) GetAction() Action
- func (x *GetVersionResponse) GetNop() *NopActionParams
- func (m *GetVersionResponse) GetResponse() isGetVersionResponse_Response
- func (x *GetVersionResponse) GetRestart() *RestartActionParams
- func (x *GetVersionResponse) GetUpdate() *UpdateActionParams
- func (*GetVersionResponse) ProtoMessage()
- func (x *GetVersionResponse) ProtoReflect() protoreflect.Message
- func (x *GetVersionResponse) Reset()
- func (x *GetVersionResponse) String() string
- type GetVersionResponse_Nop
- type GetVersionResponse_Restart
- type GetVersionResponse_Update
- type NopActionParams
- type OSInfo
- func (*OSInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OSInfo) GetArchitecture() string
- func (x *OSInfo) GetName() string
- func (x *OSInfo) GetUname() string
- func (*OSInfo) ProtoMessage()
- func (x *OSInfo) ProtoReflect() protoreflect.Message
- func (x *OSInfo) Reset()
- func (x *OSInfo) String() string
- type RestartActionParams
- type UnimplementedVersionServiceServer
- type UnsafeVersionServiceServer
- type UpdateActionParams
- func (*UpdateActionParams) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateActionParams) GetRepoUrl() string
- func (x *UpdateActionParams) GetVersion() string
- func (*UpdateActionParams) ProtoMessage()
- func (x *UpdateActionParams) ProtoReflect() protoreflect.Message
- func (x *UpdateActionParams) Reset()
- func (x *UpdateActionParams) String() string
- type VersionServiceClient
- type VersionServiceServer
Constants ¶
const (
VersionService_GetVersion_FullMethodName = "/nebius.logging.agentmanager.v1.VersionService/GetVersion"
)
Variables ¶
var ( AgentType_name = map[int32]string{ 0: "AGENT_UNDEFINED", 1: "O11Y_AGENT", } AgentType_value = map[string]int32{ "AGENT_UNDEFINED": 0, "O11Y_AGENT": 1, } )
Enum value maps for AgentType.
var ( AgentState_name = map[int32]string{ 0: "STATE_UNDEFINED", 1: "STATE_HEALTHY", 2: "STATE_ERROR", } AgentState_value = map[string]int32{ "STATE_UNDEFINED": 0, "STATE_HEALTHY": 1, "STATE_ERROR": 2, } )
Enum value maps for AgentState.
var ( Action_name = map[int32]string{ 0: "ACTION_UNDEFINED", 1: "NOP", 2: "UPDATE", 3: "RESTART", } Action_value = map[string]int32{ "ACTION_UNDEFINED": 0, "NOP": 1, "UPDATE": 2, "RESTART": 3, } )
Enum value maps for Action.
var File_nebius_logging_v1_agentmanager_version_service_proto protoreflect.FileDescriptor
var VersionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nebius.logging.agentmanager.v1.VersionService", HandlerType: (*VersionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _VersionService_GetVersion_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "nebius/logging/v1/agentmanager/version_service.proto", }
VersionService_ServiceDesc is the grpc.ServiceDesc for VersionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVersionServiceServer ¶
func RegisterVersionServiceServer(s grpc.ServiceRegistrar, srv VersionServiceServer)
Types ¶
type Action ¶
type Action int32
func (Action) Descriptor ¶
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
func (Action) Number ¶
func (x Action) Number() protoreflect.EnumNumber
func (Action) Type ¶
func (Action) Type() protoreflect.EnumType
type AgentState ¶
type AgentState int32
const ( AgentState_STATE_UNDEFINED AgentState = 0 AgentState_STATE_HEALTHY AgentState = 1 AgentState_STATE_ERROR AgentState = 2 )
func (AgentState) Descriptor ¶
func (AgentState) Descriptor() protoreflect.EnumDescriptor
func (AgentState) Enum ¶
func (x AgentState) Enum() *AgentState
func (AgentState) EnumDescriptor
deprecated
func (AgentState) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgentState.Descriptor instead.
func (AgentState) Number ¶
func (x AgentState) Number() protoreflect.EnumNumber
func (AgentState) String ¶
func (x AgentState) String() string
func (AgentState) Type ¶
func (AgentState) Type() protoreflect.EnumType
type AgentType ¶
type AgentType int32
func (AgentType) Descriptor ¶
func (AgentType) Descriptor() protoreflect.EnumDescriptor
func (AgentType) EnumDescriptor
deprecated
func (AgentType) Number ¶
func (x AgentType) Number() protoreflect.EnumNumber
func (AgentType) Type ¶
func (AgentType) Type() protoreflect.EnumType
type GetVersionRequest ¶
type GetVersionRequest struct { Type AgentType `protobuf:"varint,1,opt,name=type,proto3,enum=nebius.logging.agentmanager.v1.AgentType" json:"type,omitempty"` AgentVersion string `protobuf:"bytes,2,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"` UpdaterVersion string `protobuf:"bytes,3,opt,name=updater_version,json=updaterVersion,proto3" json:"updater_version,omitempty"` ParentId string `protobuf:"bytes,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` InstanceId string `protobuf:"bytes,5,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` OsInfo *OSInfo `protobuf:"bytes,6,opt,name=os_info,json=osInfo,proto3" json:"os_info,omitempty"` AgentState AgentState `` /* 139-byte string literal not displayed */ AgentUptime *durationpb.Duration `protobuf:"bytes,8,opt,name=agent_uptime,json=agentUptime,proto3" json:"agent_uptime,omitempty"` SystemUptime *durationpb.Duration `protobuf:"bytes,9,opt,name=system_uptime,json=systemUptime,proto3" json:"system_uptime,omitempty"` UpdaterUptime *durationpb.Duration `protobuf:"bytes,10,opt,name=updater_uptime,json=updaterUptime,proto3" json:"updater_uptime,omitempty"` AgentStateMessages []string `protobuf:"bytes,11,rep,name=agent_state_messages,json=agentStateMessages,proto3" json:"agent_state_messages,omitempty"` LastUpdateError string `protobuf:"bytes,12,opt,name=last_update_error,json=lastUpdateError,proto3" json:"last_update_error,omitempty"` Mk8SClusterId string `protobuf:"bytes,13,opt,name=mk8s_cluster_id,json=mk8sClusterId,proto3" json:"mk8s_cluster_id,omitempty"` // contains filtered or unexported fields }
func (*GetVersionRequest) Descriptor
deprecated
func (*GetVersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.
func (*GetVersionRequest) GetAgentState ¶
func (x *GetVersionRequest) GetAgentState() AgentState
func (*GetVersionRequest) GetAgentStateMessages ¶
func (x *GetVersionRequest) GetAgentStateMessages() []string
func (*GetVersionRequest) GetAgentUptime ¶
func (x *GetVersionRequest) GetAgentUptime() *durationpb.Duration
func (*GetVersionRequest) GetAgentVersion ¶
func (x *GetVersionRequest) GetAgentVersion() string
func (*GetVersionRequest) GetInstanceId ¶
func (x *GetVersionRequest) GetInstanceId() string
func (*GetVersionRequest) GetLastUpdateError ¶
func (x *GetVersionRequest) GetLastUpdateError() string
func (*GetVersionRequest) GetMk8SClusterId ¶
func (x *GetVersionRequest) GetMk8SClusterId() string
func (*GetVersionRequest) GetOsInfo ¶
func (x *GetVersionRequest) GetOsInfo() *OSInfo
func (*GetVersionRequest) GetParentId ¶
func (x *GetVersionRequest) GetParentId() string
func (*GetVersionRequest) GetSystemUptime ¶
func (x *GetVersionRequest) GetSystemUptime() *durationpb.Duration
func (*GetVersionRequest) GetType ¶
func (x *GetVersionRequest) GetType() AgentType
func (*GetVersionRequest) GetUpdaterUptime ¶
func (x *GetVersionRequest) GetUpdaterUptime() *durationpb.Duration
func (*GetVersionRequest) GetUpdaterVersion ¶
func (x *GetVersionRequest) GetUpdaterVersion() string
func (*GetVersionRequest) ProtoMessage ¶
func (*GetVersionRequest) ProtoMessage()
func (*GetVersionRequest) ProtoReflect ¶
func (x *GetVersionRequest) ProtoReflect() protoreflect.Message
func (*GetVersionRequest) Reset ¶
func (x *GetVersionRequest) Reset()
func (*GetVersionRequest) String ¶
func (x *GetVersionRequest) String() string
type GetVersionResponse ¶
type GetVersionResponse struct { Action Action `protobuf:"varint,1,opt,name=action,proto3,enum=nebius.logging.agentmanager.v1.Action" json:"action,omitempty"` // Types that are assignable to Response: // // *GetVersionResponse_Nop // *GetVersionResponse_Update // *GetVersionResponse_Restart Response isGetVersionResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
func (*GetVersionResponse) Descriptor
deprecated
func (*GetVersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.
func (*GetVersionResponse) GetAction ¶
func (x *GetVersionResponse) GetAction() Action
func (*GetVersionResponse) GetNop ¶
func (x *GetVersionResponse) GetNop() *NopActionParams
func (*GetVersionResponse) GetResponse ¶
func (m *GetVersionResponse) GetResponse() isGetVersionResponse_Response
func (*GetVersionResponse) GetRestart ¶
func (x *GetVersionResponse) GetRestart() *RestartActionParams
func (*GetVersionResponse) GetUpdate ¶
func (x *GetVersionResponse) GetUpdate() *UpdateActionParams
func (*GetVersionResponse) ProtoMessage ¶
func (*GetVersionResponse) ProtoMessage()
func (*GetVersionResponse) ProtoReflect ¶
func (x *GetVersionResponse) ProtoReflect() protoreflect.Message
func (*GetVersionResponse) Reset ¶
func (x *GetVersionResponse) Reset()
func (*GetVersionResponse) String ¶
func (x *GetVersionResponse) String() string
type GetVersionResponse_Nop ¶
type GetVersionResponse_Nop struct {
Nop *NopActionParams `protobuf:"bytes,2,opt,name=nop,proto3,oneof"`
}
type GetVersionResponse_Restart ¶
type GetVersionResponse_Restart struct {
Restart *RestartActionParams `protobuf:"bytes,4,opt,name=restart,proto3,oneof"`
}
type GetVersionResponse_Update ¶
type GetVersionResponse_Update struct {
Update *UpdateActionParams `protobuf:"bytes,3,opt,name=update,proto3,oneof"`
}
type NopActionParams ¶
type NopActionParams struct {
// contains filtered or unexported fields
}
func (*NopActionParams) Descriptor
deprecated
func (*NopActionParams) Descriptor() ([]byte, []int)
Deprecated: Use NopActionParams.ProtoReflect.Descriptor instead.
func (*NopActionParams) ProtoMessage ¶
func (*NopActionParams) ProtoMessage()
func (*NopActionParams) ProtoReflect ¶
func (x *NopActionParams) ProtoReflect() protoreflect.Message
func (*NopActionParams) Reset ¶
func (x *NopActionParams) Reset()
func (*NopActionParams) String ¶
func (x *NopActionParams) String() string
type OSInfo ¶
type OSInfo struct { // Example: "Ubuntu 22.04.4 LTS" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Example: "Linux computeimage-abcdef 6.5.0-44-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 14:36:16 UTC 2 x86_64 x86_64 x86_64 GNU/Linux" Uname string `protobuf:"bytes,2,opt,name=uname,proto3" json:"uname,omitempty"` Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` // contains filtered or unexported fields }
func (*OSInfo) Descriptor
deprecated
func (*OSInfo) GetArchitecture ¶
func (*OSInfo) ProtoMessage ¶
func (*OSInfo) ProtoMessage()
func (*OSInfo) ProtoReflect ¶
func (x *OSInfo) ProtoReflect() protoreflect.Message
type RestartActionParams ¶
type RestartActionParams struct {
// contains filtered or unexported fields
}
func (*RestartActionParams) Descriptor
deprecated
func (*RestartActionParams) Descriptor() ([]byte, []int)
Deprecated: Use RestartActionParams.ProtoReflect.Descriptor instead.
func (*RestartActionParams) ProtoMessage ¶
func (*RestartActionParams) ProtoMessage()
func (*RestartActionParams) ProtoReflect ¶
func (x *RestartActionParams) ProtoReflect() protoreflect.Message
func (*RestartActionParams) Reset ¶
func (x *RestartActionParams) Reset()
func (*RestartActionParams) String ¶
func (x *RestartActionParams) String() string
type UnimplementedVersionServiceServer ¶
type UnimplementedVersionServiceServer struct { }
UnimplementedVersionServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedVersionServiceServer) GetVersion ¶
func (UnimplementedVersionServiceServer) GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
type UnsafeVersionServiceServer ¶
type UnsafeVersionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVersionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VersionServiceServer will result in compilation errors.
type UpdateActionParams ¶
type UpdateActionParams struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` RepoUrl string `protobuf:"bytes,2,opt,name=repo_url,json=repoUrl,proto3" json:"repo_url,omitempty"` // contains filtered or unexported fields }
func (*UpdateActionParams) Descriptor
deprecated
func (*UpdateActionParams) Descriptor() ([]byte, []int)
Deprecated: Use UpdateActionParams.ProtoReflect.Descriptor instead.
func (*UpdateActionParams) GetRepoUrl ¶
func (x *UpdateActionParams) GetRepoUrl() string
func (*UpdateActionParams) GetVersion ¶
func (x *UpdateActionParams) GetVersion() string
func (*UpdateActionParams) ProtoMessage ¶
func (*UpdateActionParams) ProtoMessage()
func (*UpdateActionParams) ProtoReflect ¶
func (x *UpdateActionParams) ProtoReflect() protoreflect.Message
func (*UpdateActionParams) Reset ¶
func (x *UpdateActionParams) Reset()
func (*UpdateActionParams) String ¶
func (x *UpdateActionParams) String() string
type VersionServiceClient ¶
type VersionServiceClient interface {
GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error)
}
VersionServiceClient is the client API for VersionService 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 NewVersionServiceClient ¶
func NewVersionServiceClient(cc grpc.ClientConnInterface) VersionServiceClient
type VersionServiceServer ¶
type VersionServiceServer interface {
GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
}
VersionServiceServer is the server API for VersionService service. All implementations should embed UnimplementedVersionServiceServer for forward compatibility