service

package
v2.3.0-pre Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 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 (
	UploadAuthorizedKeysStatus_name = map[int32]string{
		0: "UPLOAD_AUTHORIZED_KEYS_SUCCESS",
		1: "UPLOAD_AUTHORIZED_KEYS_FAILURE",
	}
	UploadAuthorizedKeysStatus_value = map[string]int32{
		"UPLOAD_AUTHORIZED_KEYS_SUCCESS": 0,
		"UPLOAD_AUTHORIZED_KEYS_FAILURE": 1,
	}
)

Enum value maps for UploadAuthorizedKeysStatus.

View Source
var (
	UploadBootstrapperStatus_name = map[int32]string{
		0: "UPLOAD_BOOTSTRAPPER_SUCCESS",
		1: "UPLOAD_BOOTSTRAPPER_UPLOAD_FAILED",
		2: "UPLOAD_BOOTSTRAPPER_START_FAILED",
		3: "UPLOAD_BOOTSTRAPPER_FILE_EXISTS",
	}
	UploadBootstrapperStatus_value = map[string]int32{
		"UPLOAD_BOOTSTRAPPER_SUCCESS":       0,
		"UPLOAD_BOOTSTRAPPER_UPLOAD_FAILED": 1,
		"UPLOAD_BOOTSTRAPPER_START_FAILED":  2,
		"UPLOAD_BOOTSTRAPPER_FILE_EXISTS":   3,
	}
)

Enum value maps for UploadBootstrapperStatus.

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 Debugd_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "debugd.Debugd",
	HandlerType: (*DebugdServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UploadAuthorizedKeys",
			Handler:    _Debugd_UploadAuthorizedKeys_Handler,
		},
		{
			MethodName: "DownloadAuthorizedKeys",
			Handler:    _Debugd_DownloadAuthorizedKeys_Handler,
		},
		{
			MethodName: "UploadSystemServiceUnits",
			Handler:    _Debugd_UploadSystemServiceUnits_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "UploadBootstrapper",
			Handler:       _Debugd_UploadBootstrapper_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "DownloadBootstrapper",
			Handler:       _Debugd_DownloadBootstrapper_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "debugd.proto",
}

Debugd_ServiceDesc is the grpc.ServiceDesc for Debugd service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_debugd_proto protoreflect.FileDescriptor

Functions

func RegisterDebugdServer

func RegisterDebugdServer(s grpc.ServiceRegistrar, srv DebugdServer)

Types

type AuthorizedKey

type AuthorizedKey struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	KeyValue string `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorizedKey) Descriptor deprecated

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

Deprecated: Use AuthorizedKey.ProtoReflect.Descriptor instead.

func (*AuthorizedKey) GetKeyValue

func (x *AuthorizedKey) GetKeyValue() string

func (*AuthorizedKey) GetUsername

func (x *AuthorizedKey) GetUsername() string

func (*AuthorizedKey) ProtoMessage

func (*AuthorizedKey) ProtoMessage()

func (*AuthorizedKey) ProtoReflect

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

func (*AuthorizedKey) Reset

func (x *AuthorizedKey) Reset()

func (*AuthorizedKey) String

func (x *AuthorizedKey) String() string

type Chunk

type Chunk struct {
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,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) 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

DebugdClient is the client API for Debugd 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 NewDebugdClient

func NewDebugdClient(cc grpc.ClientConnInterface) DebugdClient

type DebugdServer

type DebugdServer interface {
	UploadAuthorizedKeys(context.Context, *UploadAuthorizedKeysRequest) (*UploadAuthorizedKeysResponse, error)
	UploadBootstrapper(Debugd_UploadBootstrapperServer) error
	DownloadBootstrapper(*DownloadBootstrapperRequest, Debugd_DownloadBootstrapperServer) error
	DownloadAuthorizedKeys(context.Context, *DownloadAuthorizedKeysRequest) (*DownloadAuthorizedKeysResponse, error)
	UploadSystemServiceUnits(context.Context, *UploadSystemdServiceUnitsRequest) (*UploadSystemdServiceUnitsResponse, error)
	// contains filtered or unexported methods
}

DebugdServer is the server API for Debugd service. All implementations must embed UnimplementedDebugdServer for forward compatibility

type Debugd_DownloadBootstrapperClient

type Debugd_DownloadBootstrapperClient interface {
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type Debugd_DownloadBootstrapperServer

type Debugd_DownloadBootstrapperServer interface {
	Send(*Chunk) error
	grpc.ServerStream
}

type Debugd_UploadBootstrapperClient

type Debugd_UploadBootstrapperClient interface {
	Send(*Chunk) error
	CloseAndRecv() (*UploadBootstrapperResponse, error)
	grpc.ClientStream
}

type Debugd_UploadBootstrapperServer

type Debugd_UploadBootstrapperServer interface {
	SendAndClose(*UploadBootstrapperResponse) error
	Recv() (*Chunk, error)
	grpc.ServerStream
}

type DownloadAuthorizedKeysRequest

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

func (*DownloadAuthorizedKeysRequest) Descriptor deprecated

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

Deprecated: Use DownloadAuthorizedKeysRequest.ProtoReflect.Descriptor instead.

func (*DownloadAuthorizedKeysRequest) ProtoMessage

func (*DownloadAuthorizedKeysRequest) ProtoMessage()

func (*DownloadAuthorizedKeysRequest) ProtoReflect

func (*DownloadAuthorizedKeysRequest) Reset

func (x *DownloadAuthorizedKeysRequest) Reset()

func (*DownloadAuthorizedKeysRequest) String

type DownloadAuthorizedKeysResponse

type DownloadAuthorizedKeysResponse struct {
	Keys []*AuthorizedKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadAuthorizedKeysResponse) Descriptor deprecated

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

Deprecated: Use DownloadAuthorizedKeysResponse.ProtoReflect.Descriptor instead.

func (*DownloadAuthorizedKeysResponse) GetKeys

func (*DownloadAuthorizedKeysResponse) ProtoMessage

func (*DownloadAuthorizedKeysResponse) ProtoMessage()

func (*DownloadAuthorizedKeysResponse) ProtoReflect

func (*DownloadAuthorizedKeysResponse) Reset

func (x *DownloadAuthorizedKeysResponse) Reset()

func (*DownloadAuthorizedKeysResponse) String

type DownloadBootstrapperRequest

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

func (*DownloadBootstrapperRequest) Descriptor deprecated

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

Deprecated: Use DownloadBootstrapperRequest.ProtoReflect.Descriptor instead.

func (*DownloadBootstrapperRequest) ProtoMessage

func (*DownloadBootstrapperRequest) ProtoMessage()

func (*DownloadBootstrapperRequest) ProtoReflect

func (*DownloadBootstrapperRequest) Reset

func (x *DownloadBootstrapperRequest) Reset()

func (*DownloadBootstrapperRequest) String

func (x *DownloadBootstrapperRequest) 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 UnimplementedDebugdServer

type UnimplementedDebugdServer struct {
}

UnimplementedDebugdServer must be embedded to have forward compatible implementations.

func (UnimplementedDebugdServer) UploadBootstrapper

type UnsafeDebugdServer

type UnsafeDebugdServer interface {
	// contains filtered or unexported methods
}

UnsafeDebugdServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DebugdServer will result in compilation errors.

type UploadAuthorizedKeysRequest

type UploadAuthorizedKeysRequest struct {
	Keys []*AuthorizedKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadAuthorizedKeysRequest) Descriptor deprecated

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

Deprecated: Use UploadAuthorizedKeysRequest.ProtoReflect.Descriptor instead.

func (*UploadAuthorizedKeysRequest) GetKeys

func (*UploadAuthorizedKeysRequest) ProtoMessage

func (*UploadAuthorizedKeysRequest) ProtoMessage()

func (*UploadAuthorizedKeysRequest) ProtoReflect

func (*UploadAuthorizedKeysRequest) Reset

func (x *UploadAuthorizedKeysRequest) Reset()

func (*UploadAuthorizedKeysRequest) String

func (x *UploadAuthorizedKeysRequest) String() string

type UploadAuthorizedKeysResponse

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

func (*UploadAuthorizedKeysResponse) Descriptor deprecated

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

Deprecated: Use UploadAuthorizedKeysResponse.ProtoReflect.Descriptor instead.

func (*UploadAuthorizedKeysResponse) GetStatus

func (*UploadAuthorizedKeysResponse) ProtoMessage

func (*UploadAuthorizedKeysResponse) ProtoMessage()

func (*UploadAuthorizedKeysResponse) ProtoReflect

func (*UploadAuthorizedKeysResponse) Reset

func (x *UploadAuthorizedKeysResponse) Reset()

func (*UploadAuthorizedKeysResponse) String

type UploadAuthorizedKeysStatus

type UploadAuthorizedKeysStatus int32
const (
	UploadAuthorizedKeysStatus_UPLOAD_AUTHORIZED_KEYS_SUCCESS UploadAuthorizedKeysStatus = 0
	UploadAuthorizedKeysStatus_UPLOAD_AUTHORIZED_KEYS_FAILURE UploadAuthorizedKeysStatus = 1
)

func (UploadAuthorizedKeysStatus) Descriptor

func (UploadAuthorizedKeysStatus) Enum

func (UploadAuthorizedKeysStatus) EnumDescriptor deprecated

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

Deprecated: Use UploadAuthorizedKeysStatus.Descriptor instead.

func (UploadAuthorizedKeysStatus) Number

func (UploadAuthorizedKeysStatus) String

func (UploadAuthorizedKeysStatus) Type

type UploadBootstrapperResponse

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

func (*UploadBootstrapperResponse) Descriptor deprecated

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

Deprecated: Use UploadBootstrapperResponse.ProtoReflect.Descriptor instead.

func (*UploadBootstrapperResponse) GetStatus

func (*UploadBootstrapperResponse) ProtoMessage

func (*UploadBootstrapperResponse) ProtoMessage()

func (*UploadBootstrapperResponse) ProtoReflect

func (*UploadBootstrapperResponse) Reset

func (x *UploadBootstrapperResponse) Reset()

func (*UploadBootstrapperResponse) String

func (x *UploadBootstrapperResponse) String() string

type UploadBootstrapperStatus

type UploadBootstrapperStatus int32
const (
	UploadBootstrapperStatus_UPLOAD_BOOTSTRAPPER_SUCCESS       UploadBootstrapperStatus = 0
	UploadBootstrapperStatus_UPLOAD_BOOTSTRAPPER_UPLOAD_FAILED UploadBootstrapperStatus = 1
	UploadBootstrapperStatus_UPLOAD_BOOTSTRAPPER_START_FAILED  UploadBootstrapperStatus = 2
	UploadBootstrapperStatus_UPLOAD_BOOTSTRAPPER_FILE_EXISTS   UploadBootstrapperStatus = 3
)

func (UploadBootstrapperStatus) Descriptor

func (UploadBootstrapperStatus) Enum

func (UploadBootstrapperStatus) EnumDescriptor deprecated

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

Deprecated: Use UploadBootstrapperStatus.Descriptor instead.

func (UploadBootstrapperStatus) Number

func (UploadBootstrapperStatus) String

func (x UploadBootstrapperStatus) String() string

func (UploadBootstrapperStatus) Type

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