rpc

package
v1.6.3-dev-20240825 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_longhorn_backing_image_manager_pkg_rpc_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterBackingImageManagerServiceServer

func RegisterBackingImageManagerServiceServer(s *grpc.Server, srv BackingImageManagerServiceServer)

Types

type BackingImageManagerServiceClient

BackingImageManagerServiceClient is the client API for BackingImageManagerService service.

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

type BackingImageManagerService_WatchClient

type BackingImageManagerService_WatchClient interface {
	Recv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type BackingImageManagerService_WatchServer

type BackingImageManagerService_WatchServer interface {
	Send(*emptypb.Empty) error
	grpc.ServerStream
}

type BackingImageResponse

type BackingImageResponse struct {
	Spec   *BackingImageSpec   `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	Status *BackingImageStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*BackingImageResponse) Descriptor deprecated

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

Deprecated: Use BackingImageResponse.ProtoReflect.Descriptor instead.

func (*BackingImageResponse) GetSpec

func (x *BackingImageResponse) GetSpec() *BackingImageSpec

func (*BackingImageResponse) GetStatus

func (x *BackingImageResponse) GetStatus() *BackingImageStatus

func (*BackingImageResponse) ProtoMessage

func (*BackingImageResponse) ProtoMessage()

func (*BackingImageResponse) ProtoReflect added in v1.5.5

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

func (*BackingImageResponse) Reset

func (x *BackingImageResponse) Reset()

func (*BackingImageResponse) String

func (x *BackingImageResponse) String() string

type BackingImageSpec

type BackingImageSpec struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Uuid        string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Size        int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Checksum    string `protobuf:"bytes,4,opt,name=checksum,proto3" json:"checksum,omitempty"`
	VirtualSize int64  `protobuf:"varint,5,opt,name=virtualSize,proto3" json:"virtualSize,omitempty"`
	// contains filtered or unexported fields
}

func (*BackingImageSpec) Descriptor deprecated

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

Deprecated: Use BackingImageSpec.ProtoReflect.Descriptor instead.

func (*BackingImageSpec) GetChecksum

func (x *BackingImageSpec) GetChecksum() string

func (*BackingImageSpec) GetName

func (x *BackingImageSpec) GetName() string

func (*BackingImageSpec) GetSize

func (x *BackingImageSpec) GetSize() int64

func (*BackingImageSpec) GetUuid

func (x *BackingImageSpec) GetUuid() string

func (*BackingImageSpec) GetVirtualSize added in v1.5.5

func (x *BackingImageSpec) GetVirtualSize() int64

func (*BackingImageSpec) ProtoMessage

func (*BackingImageSpec) ProtoMessage()

func (*BackingImageSpec) ProtoReflect added in v1.5.5

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

func (*BackingImageSpec) Reset

func (x *BackingImageSpec) Reset()

func (*BackingImageSpec) String

func (x *BackingImageSpec) String() string

type BackingImageStatus

type BackingImageStatus struct {
	State                string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	ErrorMsg             string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
	SendingReference     int32  `protobuf:"varint,3,opt,name=sending_reference,json=sendingReference,proto3" json:"sending_reference,omitempty"`
	SenderManagerAddress string `protobuf:"bytes,4,opt,name=sender_manager_address,json=senderManagerAddress,proto3" json:"sender_manager_address,omitempty"`
	Progress             int32  `protobuf:"varint,5,opt,name=progress,proto3" json:"progress,omitempty"`
	Checksum             string `protobuf:"bytes,6,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

func (*BackingImageStatus) Descriptor deprecated

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

Deprecated: Use BackingImageStatus.ProtoReflect.Descriptor instead.

func (*BackingImageStatus) GetChecksum

func (x *BackingImageStatus) GetChecksum() string

func (*BackingImageStatus) GetErrorMsg

func (x *BackingImageStatus) GetErrorMsg() string

func (*BackingImageStatus) GetProgress

func (x *BackingImageStatus) GetProgress() int32

func (*BackingImageStatus) GetSenderManagerAddress

func (x *BackingImageStatus) GetSenderManagerAddress() string

func (*BackingImageStatus) GetSendingReference

func (x *BackingImageStatus) GetSendingReference() int32

func (*BackingImageStatus) GetState

func (x *BackingImageStatus) GetState() string

func (*BackingImageStatus) ProtoMessage

func (*BackingImageStatus) ProtoMessage()

func (*BackingImageStatus) ProtoReflect added in v1.5.5

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

func (*BackingImageStatus) Reset

func (x *BackingImageStatus) Reset()

func (*BackingImageStatus) String

func (x *BackingImageStatus) String() string

type BackupCreateRequest added in v1.6.0

type BackupCreateRequest struct {
	Name              string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Uuid              string            `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Checksum          string            `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"`
	BackupTarget      string            `protobuf:"bytes,4,opt,name=backup_target,json=backupTarget,proto3" json:"backup_target,omitempty"`
	Labels            []string          `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"`
	Credential        map[string]string `` /* 161-byte string literal not displayed */
	CompressionMethod string            `protobuf:"bytes,7,opt,name=compression_method,json=compressionMethod,proto3" json:"compression_method,omitempty"`
	ConcurrentLimit   int32             `protobuf:"varint,8,opt,name=concurrent_limit,json=concurrentLimit,proto3" json:"concurrent_limit,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupCreateRequest) Descriptor deprecated added in v1.6.0

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

Deprecated: Use BackupCreateRequest.ProtoReflect.Descriptor instead.

func (*BackupCreateRequest) GetBackupTarget added in v1.6.0

func (x *BackupCreateRequest) GetBackupTarget() string

func (*BackupCreateRequest) GetChecksum added in v1.6.0

func (x *BackupCreateRequest) GetChecksum() string

func (*BackupCreateRequest) GetCompressionMethod added in v1.6.0

func (x *BackupCreateRequest) GetCompressionMethod() string

func (*BackupCreateRequest) GetConcurrentLimit added in v1.6.0

func (x *BackupCreateRequest) GetConcurrentLimit() int32

func (*BackupCreateRequest) GetCredential added in v1.6.0

func (x *BackupCreateRequest) GetCredential() map[string]string

func (*BackupCreateRequest) GetLabels added in v1.6.0

func (x *BackupCreateRequest) GetLabels() []string

func (*BackupCreateRequest) GetName added in v1.6.0

func (x *BackupCreateRequest) GetName() string

func (*BackupCreateRequest) GetUuid added in v1.6.0

func (x *BackupCreateRequest) GetUuid() string

func (*BackupCreateRequest) ProtoMessage added in v1.6.0

func (*BackupCreateRequest) ProtoMessage()

func (*BackupCreateRequest) ProtoReflect added in v1.6.0

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

func (*BackupCreateRequest) Reset added in v1.6.0

func (x *BackupCreateRequest) Reset()

func (*BackupCreateRequest) String added in v1.6.0

func (x *BackupCreateRequest) String() string

type BackupStatusRequest added in v1.6.0

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

func (*BackupStatusRequest) Descriptor deprecated added in v1.6.0

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

Deprecated: Use BackupStatusRequest.ProtoReflect.Descriptor instead.

func (*BackupStatusRequest) GetName added in v1.6.0

func (x *BackupStatusRequest) GetName() string

func (*BackupStatusRequest) ProtoMessage added in v1.6.0

func (*BackupStatusRequest) ProtoMessage()

func (*BackupStatusRequest) ProtoReflect added in v1.6.0

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

func (*BackupStatusRequest) Reset added in v1.6.0

func (x *BackupStatusRequest) Reset()

func (*BackupStatusRequest) String added in v1.6.0

func (x *BackupStatusRequest) String() string

type BackupStatusResponse added in v1.6.0

type BackupStatusResponse struct {
	Progress  int32  `protobuf:"varint,1,opt,name=progress,proto3" json:"progress,omitempty"`
	BackupUrl string `protobuf:"bytes,2,opt,name=backup_url,json=backupUrl,proto3" json:"backup_url,omitempty"`
	Error     string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	State     string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupStatusResponse) Descriptor deprecated added in v1.6.0

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

Deprecated: Use BackupStatusResponse.ProtoReflect.Descriptor instead.

func (*BackupStatusResponse) GetBackupUrl added in v1.6.0

func (x *BackupStatusResponse) GetBackupUrl() string

func (*BackupStatusResponse) GetError added in v1.6.0

func (x *BackupStatusResponse) GetError() string

func (*BackupStatusResponse) GetProgress added in v1.6.0

func (x *BackupStatusResponse) GetProgress() int32

func (*BackupStatusResponse) GetState added in v1.6.0

func (x *BackupStatusResponse) GetState() string

func (*BackupStatusResponse) ProtoMessage added in v1.6.0

func (*BackupStatusResponse) ProtoMessage()

func (*BackupStatusResponse) ProtoReflect added in v1.6.0

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

func (*BackupStatusResponse) Reset added in v1.6.0

func (x *BackupStatusResponse) Reset()

func (*BackupStatusResponse) String added in v1.6.0

func (x *BackupStatusResponse) String() string

type DeleteRequest

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

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetName

func (x *DeleteRequest) GetName() string

func (*DeleteRequest) GetUuid

func (x *DeleteRequest) GetUuid() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect added in v1.5.5

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type FetchRequest

type FetchRequest struct {
	Spec              *BackingImageSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	DataSourceAddress string            `protobuf:"bytes,2,opt,name=data_source_address,json=dataSourceAddress,proto3" json:"data_source_address,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchRequest) Descriptor deprecated

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

Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead.

func (*FetchRequest) GetDataSourceAddress

func (x *FetchRequest) GetDataSourceAddress() string

func (*FetchRequest) GetSpec

func (x *FetchRequest) GetSpec() *BackingImageSpec

func (*FetchRequest) ProtoMessage

func (*FetchRequest) ProtoMessage()

func (*FetchRequest) ProtoReflect added in v1.5.5

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

func (*FetchRequest) Reset

func (x *FetchRequest) Reset()

func (*FetchRequest) String

func (x *FetchRequest) String() string

type GetRequest

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

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetName

func (x *GetRequest) GetName() string

func (*GetRequest) GetUuid

func (x *GetRequest) GetUuid() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect added in v1.5.5

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type ListResponse

type ListResponse struct {
	BackingImages map[string]*BackingImageResponse `` /* 188-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetBackingImages

func (x *ListResponse) GetBackingImages() map[string]*BackingImageResponse

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect added in v1.5.5

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type PrepareDownloadRequest

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

func (*PrepareDownloadRequest) Descriptor deprecated

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

Deprecated: Use PrepareDownloadRequest.ProtoReflect.Descriptor instead.

func (*PrepareDownloadRequest) GetName

func (x *PrepareDownloadRequest) GetName() string

func (*PrepareDownloadRequest) GetUuid

func (x *PrepareDownloadRequest) GetUuid() string

func (*PrepareDownloadRequest) ProtoMessage

func (*PrepareDownloadRequest) ProtoMessage()

func (*PrepareDownloadRequest) ProtoReflect added in v1.5.5

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

func (*PrepareDownloadRequest) Reset

func (x *PrepareDownloadRequest) Reset()

func (*PrepareDownloadRequest) String

func (x *PrepareDownloadRequest) String() string

type PrepareDownloadResponse

type PrepareDownloadResponse struct {
	SrcFilePath string `protobuf:"bytes,1,opt,name=src_file_path,json=srcFilePath,proto3" json:"src_file_path,omitempty"`
	Address     string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareDownloadResponse) Descriptor deprecated

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

Deprecated: Use PrepareDownloadResponse.ProtoReflect.Descriptor instead.

func (*PrepareDownloadResponse) GetAddress

func (x *PrepareDownloadResponse) GetAddress() string

func (*PrepareDownloadResponse) GetSrcFilePath

func (x *PrepareDownloadResponse) GetSrcFilePath() string

func (*PrepareDownloadResponse) ProtoMessage

func (*PrepareDownloadResponse) ProtoMessage()

func (*PrepareDownloadResponse) ProtoReflect added in v1.5.5

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

func (*PrepareDownloadResponse) Reset

func (x *PrepareDownloadResponse) Reset()

func (*PrepareDownloadResponse) String

func (x *PrepareDownloadResponse) String() string

type SendRequest

type SendRequest struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Uuid      string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	ToAddress string `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRequest) Descriptor deprecated

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

Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.

func (*SendRequest) GetName

func (x *SendRequest) GetName() string

func (*SendRequest) GetToAddress

func (x *SendRequest) GetToAddress() string

func (*SendRequest) GetUuid

func (x *SendRequest) GetUuid() string

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) ProtoReflect added in v1.5.5

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

func (*SendRequest) Reset

func (x *SendRequest) Reset()

func (*SendRequest) String

func (x *SendRequest) String() string

type SyncRequest

type SyncRequest struct {
	Spec        *BackingImageSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	FromAddress string            `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncRequest) Descriptor deprecated

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

Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.

func (*SyncRequest) GetFromAddress

func (x *SyncRequest) GetFromAddress() string

func (*SyncRequest) GetSpec

func (x *SyncRequest) GetSpec() *BackingImageSpec

func (*SyncRequest) ProtoMessage

func (*SyncRequest) ProtoMessage()

func (*SyncRequest) ProtoReflect added in v1.5.5

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

func (*SyncRequest) Reset

func (x *SyncRequest) Reset()

func (*SyncRequest) String

func (x *SyncRequest) String() string

type UnimplementedBackingImageManagerServiceServer

type UnimplementedBackingImageManagerServiceServer struct {
}

UnimplementedBackingImageManagerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBackingImageManagerServiceServer) BackupCreate added in v1.6.0

func (*UnimplementedBackingImageManagerServiceServer) BackupStatus added in v1.6.0

func (*UnimplementedBackingImageManagerServiceServer) Delete

func (*UnimplementedBackingImageManagerServiceServer) Fetch

func (*UnimplementedBackingImageManagerServiceServer) Get

func (*UnimplementedBackingImageManagerServiceServer) List

func (*UnimplementedBackingImageManagerServiceServer) PrepareDownload

func (*UnimplementedBackingImageManagerServiceServer) Send

func (*UnimplementedBackingImageManagerServiceServer) Sync

func (*UnimplementedBackingImageManagerServiceServer) VersionGet

func (*UnimplementedBackingImageManagerServiceServer) Watch

type VersionResponse

type VersionResponse struct {
	Version                          string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	GitCommit                        string `protobuf:"bytes,2,opt,name=gitCommit,proto3" json:"gitCommit,omitempty"`
	BuildDate                        string `protobuf:"bytes,3,opt,name=buildDate,proto3" json:"buildDate,omitempty"`
	BackingImageManagerApiVersion    int64  `` /* 155-byte string literal not displayed */
	BackingImageManagerApiMinVersion int64  `` /* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

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

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetBackingImageManagerApiMinVersion

func (x *VersionResponse) GetBackingImageManagerApiMinVersion() int64

func (*VersionResponse) GetBackingImageManagerApiVersion

func (x *VersionResponse) GetBackingImageManagerApiVersion() int64

func (*VersionResponse) GetBuildDate

func (x *VersionResponse) GetBuildDate() string

func (*VersionResponse) GetGitCommit

func (x *VersionResponse) GetGitCommit() string

func (*VersionResponse) GetVersion

func (x *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect added in v1.5.5

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

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

Jump to

Keyboard shortcuts

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