service

package
v2.16.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

README

protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative service/debugd.proto

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetInfoStatus_name = map[int32]string{
		0: "SET_INFO_SUCCESS",
		1: "SET_INFO_ALREADY_SET",
	}
	SetInfoStatus_value = map[string]int32{
		"SET_INFO_SUCCESS":     0,
		"SET_INFO_ALREADY_SET": 1,
	}
)

Enum value maps for SetInfoStatus.

View Source
var (
	UploadFilesStatus_name = map[int32]string{
		0: "UPLOAD_FILES_SUCCESS",
		1: "UPLOAD_FILES_UPLOAD_FAILED",
		2: "UPLOAD_FILES_ALREADY_STARTED",
		3: "UPLOAD_FILES_ALREADY_FINISHED",
		4: "UPLOAD_FILES_START_FAILED",
	}
	UploadFilesStatus_value = map[string]int32{
		"UPLOAD_FILES_SUCCESS":          0,
		"UPLOAD_FILES_UPLOAD_FAILED":    1,
		"UPLOAD_FILES_ALREADY_STARTED":  2,
		"UPLOAD_FILES_ALREADY_FINISHED": 3,
		"UPLOAD_FILES_START_FAILED":     4,
	}
)

Enum value maps for UploadFilesStatus.

View Source
var (
	UploadSystemdServiceUnitsStatus_name = map[int32]string{
		0: "UPLOAD_SYSTEMD_SERVICE_UNITS_SUCCESS",
		1: "UPLOAD_SYSTEMD_SERVICE_UNITS_FAILURE",
	}
	UploadSystemdServiceUnitsStatus_value = map[string]int32{
		"UPLOAD_SYSTEMD_SERVICE_UNITS_SUCCESS": 0,
		"UPLOAD_SYSTEMD_SERVICE_UNITS_FAILURE": 1,
	}
)

Enum value maps for UploadSystemdServiceUnitsStatus.

View Source
var File_debugd_service_debugd_proto protoreflect.FileDescriptor

Functions

func RegisterDebugdServer

func RegisterDebugdServer(s *grpc.Server, srv DebugdServer)

Types

type Chunk

type Chunk struct {
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Last    bool   `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"`
	// contains filtered or unexported fields
}

func (*Chunk) Descriptor deprecated

func (*Chunk) Descriptor() ([]byte, []int)

Deprecated: Use Chunk.ProtoReflect.Descriptor instead.

func (*Chunk) GetContent

func (x *Chunk) GetContent() []byte

func (*Chunk) GetLast added in v2.6.0

func (x *Chunk) GetLast() bool

func (*Chunk) ProtoMessage

func (*Chunk) ProtoMessage()

func (*Chunk) ProtoReflect

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

func (*Chunk) Reset

func (x *Chunk) Reset()

func (*Chunk) String

func (x *Chunk) String() string

type DebugdClient

type DebugdClient interface {
	SetInfo(ctx context.Context, in *SetInfoRequest, opts ...grpc.CallOption) (*SetInfoResponse, error)
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
	UploadFiles(ctx context.Context, opts ...grpc.CallOption) (Debugd_UploadFilesClient, error)
	DownloadFiles(ctx context.Context, in *DownloadFilesRequest, opts ...grpc.CallOption) (Debugd_DownloadFilesClient, error)
	UploadSystemServiceUnits(ctx context.Context, in *UploadSystemdServiceUnitsRequest, opts ...grpc.CallOption) (*UploadSystemdServiceUnitsResponse, error)
}

DebugdClient is the client API for Debugd service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDebugdClient

func NewDebugdClient(cc grpc.ClientConnInterface) DebugdClient

type DebugdServer

DebugdServer is the server API for Debugd service.

type Debugd_DownloadFilesClient added in v2.6.0

type Debugd_DownloadFilesClient interface {
	Recv() (*FileTransferMessage, error)
	grpc.ClientStream
}

type Debugd_DownloadFilesServer added in v2.6.0

type Debugd_DownloadFilesServer interface {
	Send(*FileTransferMessage) error
	grpc.ServerStream
}

type Debugd_UploadFilesClient added in v2.6.0

type Debugd_UploadFilesClient interface {
	Send(*FileTransferMessage) error
	CloseAndRecv() (*UploadFilesResponse, error)
	grpc.ClientStream
}

type Debugd_UploadFilesServer added in v2.6.0

type Debugd_UploadFilesServer interface {
	SendAndClose(*UploadFilesResponse) error
	Recv() (*FileTransferMessage, error)
	grpc.ServerStream
}

type DownloadFilesRequest added in v2.6.0

type DownloadFilesRequest struct {
	// contains filtered or unexported fields
}

func (*DownloadFilesRequest) Descriptor deprecated added in v2.6.0

func (*DownloadFilesRequest) Descriptor() ([]byte, []int)

Deprecated: Use DownloadFilesRequest.ProtoReflect.Descriptor instead.

func (*DownloadFilesRequest) ProtoMessage added in v2.6.0

func (*DownloadFilesRequest) ProtoMessage()

func (*DownloadFilesRequest) ProtoReflect added in v2.6.0

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

func (*DownloadFilesRequest) Reset added in v2.6.0

func (x *DownloadFilesRequest) Reset()

func (*DownloadFilesRequest) String added in v2.6.0

func (x *DownloadFilesRequest) String() string

type FileTransferHeader added in v2.6.0

type FileTransferHeader struct {
	TargetPath          string  `protobuf:"bytes,1,opt,name=targetPath,proto3" json:"targetPath,omitempty"`
	Mode                uint32  `protobuf:"varint,3,opt,name=mode,proto3" json:"mode,omitempty"`
	OverrideServiceUnit *string `protobuf:"bytes,4,opt,name=overrideServiceUnit,proto3,oneof" json:"overrideServiceUnit,omitempty"`
	// contains filtered or unexported fields
}

func (*FileTransferHeader) Descriptor deprecated added in v2.6.0

func (*FileTransferHeader) Descriptor() ([]byte, []int)

Deprecated: Use FileTransferHeader.ProtoReflect.Descriptor instead.

func (*FileTransferHeader) GetMode added in v2.6.0

func (x *FileTransferHeader) GetMode() uint32

func (*FileTransferHeader) GetOverrideServiceUnit added in v2.6.0

func (x *FileTransferHeader) GetOverrideServiceUnit() string

func (*FileTransferHeader) GetTargetPath added in v2.6.0

func (x *FileTransferHeader) GetTargetPath() string

func (*FileTransferHeader) ProtoMessage added in v2.6.0

func (*FileTransferHeader) ProtoMessage()

func (*FileTransferHeader) ProtoReflect added in v2.6.0

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

func (*FileTransferHeader) Reset added in v2.6.0

func (x *FileTransferHeader) Reset()

func (*FileTransferHeader) String added in v2.6.0

func (x *FileTransferHeader) String() string

type FileTransferMessage added in v2.6.0

type FileTransferMessage struct {

	// Types that are assignable to Kind:
	//
	//	*FileTransferMessage_Header
	//	*FileTransferMessage_Chunk
	Kind isFileTransferMessage_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*FileTransferMessage) Descriptor deprecated added in v2.6.0

func (*FileTransferMessage) Descriptor() ([]byte, []int)

Deprecated: Use FileTransferMessage.ProtoReflect.Descriptor instead.

func (*FileTransferMessage) GetChunk added in v2.6.0

func (x *FileTransferMessage) GetChunk() *Chunk

func (*FileTransferMessage) GetHeader added in v2.6.0

func (x *FileTransferMessage) GetHeader() *FileTransferHeader

func (*FileTransferMessage) GetKind added in v2.6.0

func (m *FileTransferMessage) GetKind() isFileTransferMessage_Kind

func (*FileTransferMessage) ProtoMessage added in v2.6.0

func (*FileTransferMessage) ProtoMessage()

func (*FileTransferMessage) ProtoReflect added in v2.6.0

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

func (*FileTransferMessage) Reset added in v2.6.0

func (x *FileTransferMessage) Reset()

func (*FileTransferMessage) String added in v2.6.0

func (x *FileTransferMessage) String() string

type FileTransferMessage_Chunk added in v2.6.0

type FileTransferMessage_Chunk struct {
	Chunk *Chunk `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}

type FileTransferMessage_Header added in v2.6.0

type FileTransferMessage_Header struct {
	Header *FileTransferHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}

type GetInfoRequest added in v2.3.0

type GetInfoRequest struct {
	// contains filtered or unexported fields
}

func (*GetInfoRequest) Descriptor deprecated added in v2.3.0

func (*GetInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetInfoRequest) ProtoMessage added in v2.3.0

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) ProtoReflect added in v2.3.0

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

func (*GetInfoRequest) Reset added in v2.3.0

func (x *GetInfoRequest) Reset()

func (*GetInfoRequest) String added in v2.3.0

func (x *GetInfoRequest) String() string

type GetInfoResponse added in v2.3.0

type GetInfoResponse struct {
	Info []*Info `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated added in v2.3.0

func (*GetInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetInfo added in v2.3.0

func (x *GetInfoResponse) GetInfo() []*Info

func (*GetInfoResponse) ProtoMessage added in v2.3.0

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect added in v2.3.0

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

func (*GetInfoResponse) Reset added in v2.3.0

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String added in v2.3.0

func (x *GetInfoResponse) String() string

type Info added in v2.3.0

type Info struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Info) Descriptor deprecated added in v2.3.0

func (*Info) Descriptor() ([]byte, []int)

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetKey added in v2.3.0

func (x *Info) GetKey() string

func (*Info) GetValue added in v2.3.0

func (x *Info) GetValue() string

func (*Info) ProtoMessage added in v2.3.0

func (*Info) ProtoMessage()

func (*Info) ProtoReflect added in v2.3.0

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

func (*Info) Reset added in v2.3.0

func (x *Info) Reset()

func (*Info) String added in v2.3.0

func (x *Info) String() string

type ServiceUnit

type ServiceUnit struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Contents string `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceUnit) Descriptor deprecated

func (*ServiceUnit) Descriptor() ([]byte, []int)

Deprecated: Use ServiceUnit.ProtoReflect.Descriptor instead.

func (*ServiceUnit) GetContents

func (x *ServiceUnit) GetContents() string

func (*ServiceUnit) GetName

func (x *ServiceUnit) GetName() string

func (*ServiceUnit) ProtoMessage

func (*ServiceUnit) ProtoMessage()

func (*ServiceUnit) ProtoReflect

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

func (*ServiceUnit) Reset

func (x *ServiceUnit) Reset()

func (*ServiceUnit) String

func (x *ServiceUnit) String() string

type SetInfoRequest added in v2.3.0

type SetInfoRequest struct {
	Info []*Info `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*SetInfoRequest) Descriptor deprecated added in v2.3.0

func (*SetInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetInfoRequest.ProtoReflect.Descriptor instead.

func (*SetInfoRequest) GetInfo added in v2.3.0

func (x *SetInfoRequest) GetInfo() []*Info

func (*SetInfoRequest) ProtoMessage added in v2.3.0

func (*SetInfoRequest) ProtoMessage()

func (*SetInfoRequest) ProtoReflect added in v2.3.0

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

func (*SetInfoRequest) Reset added in v2.3.0

func (x *SetInfoRequest) Reset()

func (*SetInfoRequest) String added in v2.3.0

func (x *SetInfoRequest) String() string

type SetInfoResponse added in v2.3.0

type SetInfoResponse struct {
	Status SetInfoStatus `protobuf:"varint,1,opt,name=status,proto3,enum=debugd.SetInfoStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*SetInfoResponse) Descriptor deprecated added in v2.3.0

func (*SetInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetInfoResponse.ProtoReflect.Descriptor instead.

func (*SetInfoResponse) GetStatus added in v2.6.0

func (x *SetInfoResponse) GetStatus() SetInfoStatus

func (*SetInfoResponse) ProtoMessage added in v2.3.0

func (*SetInfoResponse) ProtoMessage()

func (*SetInfoResponse) ProtoReflect added in v2.3.0

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

func (*SetInfoResponse) Reset added in v2.3.0

func (x *SetInfoResponse) Reset()

func (*SetInfoResponse) String added in v2.3.0

func (x *SetInfoResponse) String() string

type SetInfoStatus added in v2.6.0

type SetInfoStatus int32
const (
	SetInfoStatus_SET_INFO_SUCCESS     SetInfoStatus = 0
	SetInfoStatus_SET_INFO_ALREADY_SET SetInfoStatus = 1
)

func (SetInfoStatus) Descriptor added in v2.6.0

func (SetInfoStatus) Enum added in v2.6.0

func (x SetInfoStatus) Enum() *SetInfoStatus

func (SetInfoStatus) EnumDescriptor deprecated added in v2.6.0

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

Deprecated: Use SetInfoStatus.Descriptor instead.

func (SetInfoStatus) Number added in v2.6.0

func (SetInfoStatus) String added in v2.6.0

func (x SetInfoStatus) String() string

func (SetInfoStatus) Type added in v2.6.0

type UnimplementedDebugdServer

type UnimplementedDebugdServer struct {
}

UnimplementedDebugdServer can be embedded to have forward compatible implementations.

func (*UnimplementedDebugdServer) DownloadFiles added in v2.6.0

func (*UnimplementedDebugdServer) GetInfo added in v2.3.0

func (*UnimplementedDebugdServer) SetInfo added in v2.3.0

func (*UnimplementedDebugdServer) UploadFiles added in v2.6.0

type UploadFilesResponse added in v2.6.0

type UploadFilesResponse struct {
	Status UploadFilesStatus `protobuf:"varint,1,opt,name=status,proto3,enum=debugd.UploadFilesStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadFilesResponse) Descriptor deprecated added in v2.6.0

func (*UploadFilesResponse) Descriptor() ([]byte, []int)

Deprecated: Use UploadFilesResponse.ProtoReflect.Descriptor instead.

func (*UploadFilesResponse) GetStatus added in v2.6.0

func (x *UploadFilesResponse) GetStatus() UploadFilesStatus

func (*UploadFilesResponse) ProtoMessage added in v2.6.0

func (*UploadFilesResponse) ProtoMessage()

func (*UploadFilesResponse) ProtoReflect added in v2.6.0

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

func (*UploadFilesResponse) Reset added in v2.6.0

func (x *UploadFilesResponse) Reset()

func (*UploadFilesResponse) String added in v2.6.0

func (x *UploadFilesResponse) String() string

type UploadFilesStatus added in v2.6.0

type UploadFilesStatus int32
const (
	UploadFilesStatus_UPLOAD_FILES_SUCCESS          UploadFilesStatus = 0
	UploadFilesStatus_UPLOAD_FILES_UPLOAD_FAILED    UploadFilesStatus = 1
	UploadFilesStatus_UPLOAD_FILES_ALREADY_STARTED  UploadFilesStatus = 2
	UploadFilesStatus_UPLOAD_FILES_ALREADY_FINISHED UploadFilesStatus = 3
	UploadFilesStatus_UPLOAD_FILES_START_FAILED     UploadFilesStatus = 4
)

func (UploadFilesStatus) Descriptor added in v2.6.0

func (UploadFilesStatus) Enum added in v2.6.0

func (UploadFilesStatus) EnumDescriptor deprecated added in v2.6.0

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

Deprecated: Use UploadFilesStatus.Descriptor instead.

func (UploadFilesStatus) Number added in v2.6.0

func (UploadFilesStatus) String added in v2.6.0

func (x UploadFilesStatus) String() string

func (UploadFilesStatus) Type added in v2.6.0

type UploadSystemdServiceUnitsRequest

type UploadSystemdServiceUnitsRequest struct {
	Units []*ServiceUnit `protobuf:"bytes,1,rep,name=units,proto3" json:"units,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadSystemdServiceUnitsRequest) Descriptor deprecated

func (*UploadSystemdServiceUnitsRequest) Descriptor() ([]byte, []int)

Deprecated: Use UploadSystemdServiceUnitsRequest.ProtoReflect.Descriptor instead.

func (*UploadSystemdServiceUnitsRequest) GetUnits

func (*UploadSystemdServiceUnitsRequest) ProtoMessage

func (*UploadSystemdServiceUnitsRequest) ProtoMessage()

func (*UploadSystemdServiceUnitsRequest) ProtoReflect

func (*UploadSystemdServiceUnitsRequest) Reset

func (*UploadSystemdServiceUnitsRequest) String

type UploadSystemdServiceUnitsResponse

type UploadSystemdServiceUnitsResponse struct {
	Status UploadSystemdServiceUnitsStatus `protobuf:"varint,1,opt,name=status,proto3,enum=debugd.UploadSystemdServiceUnitsStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadSystemdServiceUnitsResponse) Descriptor deprecated

func (*UploadSystemdServiceUnitsResponse) Descriptor() ([]byte, []int)

Deprecated: Use UploadSystemdServiceUnitsResponse.ProtoReflect.Descriptor instead.

func (*UploadSystemdServiceUnitsResponse) GetStatus

func (*UploadSystemdServiceUnitsResponse) ProtoMessage

func (*UploadSystemdServiceUnitsResponse) ProtoMessage()

func (*UploadSystemdServiceUnitsResponse) ProtoReflect

func (*UploadSystemdServiceUnitsResponse) Reset

func (*UploadSystemdServiceUnitsResponse) String

type UploadSystemdServiceUnitsStatus

type UploadSystemdServiceUnitsStatus int32
const (
	UploadSystemdServiceUnitsStatus_UPLOAD_SYSTEMD_SERVICE_UNITS_SUCCESS UploadSystemdServiceUnitsStatus = 0
	UploadSystemdServiceUnitsStatus_UPLOAD_SYSTEMD_SERVICE_UNITS_FAILURE UploadSystemdServiceUnitsStatus = 1
)

func (UploadSystemdServiceUnitsStatus) Descriptor

func (UploadSystemdServiceUnitsStatus) Enum

func (UploadSystemdServiceUnitsStatus) EnumDescriptor deprecated

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

Deprecated: Use UploadSystemdServiceUnitsStatus.Descriptor instead.

func (UploadSystemdServiceUnitsStatus) Number

func (UploadSystemdServiceUnitsStatus) String

func (UploadSystemdServiceUnitsStatus) Type

Jump to

Keyboard shortcuts

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