agentmanager

package
v0.0.0-...-f87e53a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionService_GetVersion_FullMethodName = "/nebius.logging.agentmanager.v1.VersionService/GetVersion"
)

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
var File_nebius_logging_v1_agentmanager_version_service_proto protoreflect.FileDescriptor
View Source
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
const (
	Action_ACTION_UNDEFINED Action = 0
	Action_NOP              Action = 1
	Action_UPDATE           Action = 2
	Action_RESTART          Action = 3
)

func (Action) Descriptor

func (Action) Descriptor() protoreflect.EnumDescriptor

func (Action) Enum

func (x Action) Enum() *Action

func (Action) EnumDescriptor deprecated

func (Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use Action.Descriptor instead.

func (Action) Number

func (x Action) Number() protoreflect.EnumNumber

func (Action) String

func (x Action) String() string

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

type AgentType

type AgentType int32
const (
	AgentType_AGENT_UNDEFINED AgentType = 0
	AgentType_O11Y_AGENT      AgentType = 1
)

func (AgentType) Descriptor

func (AgentType) Descriptor() protoreflect.EnumDescriptor

func (AgentType) Enum

func (x AgentType) Enum() *AgentType

func (AgentType) EnumDescriptor deprecated

func (AgentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AgentType.Descriptor instead.

func (AgentType) Number

func (x AgentType) Number() protoreflect.EnumNumber

func (AgentType) String

func (x AgentType) String() string

func (AgentType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use OSInfo.ProtoReflect.Descriptor instead.

func (*OSInfo) GetArchitecture

func (x *OSInfo) GetArchitecture() string

func (*OSInfo) GetName

func (x *OSInfo) GetName() string

func (*OSInfo) GetUname

func (x *OSInfo) GetUname() string

func (*OSInfo) ProtoMessage

func (*OSInfo) ProtoMessage()

func (*OSInfo) ProtoReflect

func (x *OSInfo) ProtoReflect() protoreflect.Message

func (*OSInfo) Reset

func (x *OSInfo) Reset()

func (*OSInfo) String

func (x *OSInfo) String() string

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

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.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL