Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterHypervisorServer(s grpc.ServiceRegistrar, srv HypervisorServer)
- func RegisterImageServer(s grpc.ServiceRegistrar, srv ImageServer)
- func RegisterNetworkServer(s grpc.ServiceRegistrar, srv NetworkServer)
- func RegisterVolumeServer(s grpc.ServiceRegistrar, srv VolumeServer)
- type AttachDiskRequest
- func (*AttachDiskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AttachDiskRequest) GetDisk() *DiskSpec
- func (x *AttachDiskRequest) GetVmUuid() string
- func (*AttachDiskRequest) ProtoMessage()
- func (x *AttachDiskRequest) ProtoReflect() protoreflect.Message
- func (x *AttachDiskRequest) Reset()
- func (x *AttachDiskRequest) String() string
- type AttachNICRequest
- func (*AttachNICRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AttachNICRequest) GetNic() *NICHandle
- func (x *AttachNICRequest) GetVmUuid() string
- func (*AttachNICRequest) ProtoMessage()
- func (x *AttachNICRequest) ProtoReflect() protoreflect.Message
- func (x *AttachNICRequest) Reset()
- func (x *AttachNICRequest) String() string
- type AttachPortRequest
- type AttachPortResponse
- func (*AttachPortResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AttachPortResponse) GetHandle() *NICHandle
- func (*AttachPortResponse) ProtoMessage()
- func (x *AttachPortResponse) ProtoReflect() protoreflect.Message
- func (x *AttachPortResponse) Reset()
- func (x *AttachPortResponse) String() string
- type AttachVolumeRequest
- func (*AttachVolumeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AttachVolumeRequest) GetHostUuid() string
- func (x *AttachVolumeRequest) GetVolumeUuid() string
- func (*AttachVolumeRequest) ProtoMessage()
- func (x *AttachVolumeRequest) ProtoReflect() protoreflect.Message
- func (x *AttachVolumeRequest) Reset()
- func (x *AttachVolumeRequest) String() string
- type AttachVolumeResponse
- func (*AttachVolumeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AttachVolumeResponse) GetVolume() *AttachedVolume
- func (*AttachVolumeResponse) ProtoMessage()
- func (x *AttachVolumeResponse) ProtoReflect() protoreflect.Message
- func (x *AttachVolumeResponse) Reset()
- func (x *AttachVolumeResponse) String() string
- type AttachedVolume
- func (*AttachedVolume) Descriptor() ([]byte, []int)deprecated
- func (x *AttachedVolume) GetBackingPath() string
- func (x *AttachedVolume) GetReadOnly() bool
- func (*AttachedVolume) ProtoMessage()
- func (x *AttachedVolume) ProtoReflect() protoreflect.Message
- func (x *AttachedVolume) Reset()
- func (x *AttachedVolume) String() string
- type Backup
- func (*Backup) Descriptor() ([]byte, []int)deprecated
- func (x *Backup) GetCreatedAtUnixNs() int64
- func (x *Backup) GetEncryption() *BackupEncryptionInfo
- func (x *Backup) GetError() string
- func (x *Backup) GetLabels() map[string]string
- func (x *Backup) GetParentUrl() string
- func (x *Backup) GetSizeBytes() int64
- func (x *Backup) GetSnapshotName() string
- func (x *Backup) GetState() string
- func (x *Backup) GetUrl() string
- func (x *Backup) GetVolumeUuid() string
- func (*Backup) ProtoMessage()
- func (x *Backup) ProtoReflect() protoreflect.Message
- func (x *Backup) Reset()
- func (x *Backup) String() string
- type BackupEncryption
- func (*BackupEncryption) Descriptor() ([]byte, []int)deprecated
- func (x *BackupEncryption) GetAlgorithm() string
- func (x *BackupEncryption) GetKdf() string
- func (x *BackupEncryption) GetKdfParams() map[string]string
- func (x *BackupEncryption) GetPassphraseEnv() string
- func (*BackupEncryption) ProtoMessage()
- func (x *BackupEncryption) ProtoReflect() protoreflect.Message
- func (x *BackupEncryption) Reset()
- func (x *BackupEncryption) String() string
- type BackupEncryptionInfo
- func (*BackupEncryptionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BackupEncryptionInfo) GetAlgorithm() string
- func (x *BackupEncryptionInfo) GetKdf() string
- func (x *BackupEncryptionInfo) GetKdfParams() map[string]string
- func (x *BackupEncryptionInfo) GetSaltHex() string
- func (*BackupEncryptionInfo) ProtoMessage()
- func (x *BackupEncryptionInfo) ProtoReflect() protoreflect.Message
- func (x *BackupEncryptionInfo) Reset()
- func (x *BackupEncryptionInfo) String() string
- type BackupSpec
- func (*BackupSpec) Descriptor() ([]byte, []int)deprecated
- func (x *BackupSpec) GetEncryption() *BackupEncryption
- func (x *BackupSpec) GetLabels() map[string]string
- func (x *BackupSpec) GetParentUrl() string
- func (x *BackupSpec) GetSnapshotName() string
- func (x *BackupSpec) GetTarget() string
- func (x *BackupSpec) GetVolumeUuid() string
- func (*BackupSpec) ProtoMessage()
- func (x *BackupSpec) ProtoReflect() protoreflect.Message
- func (x *BackupSpec) Reset()
- func (x *BackupSpec) String() string
- type CreateBackupRequest
- func (*CreateBackupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBackupRequest) GetSpec() *BackupSpec
- func (*CreateBackupRequest) ProtoMessage()
- func (x *CreateBackupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBackupRequest) Reset()
- func (x *CreateBackupRequest) String() string
- type CreateBackupResponse
- func (*CreateBackupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBackupResponse) GetBackup() *Backup
- func (*CreateBackupResponse) ProtoMessage()
- func (x *CreateBackupResponse) ProtoReflect() protoreflect.Message
- func (x *CreateBackupResponse) Reset()
- func (x *CreateBackupResponse) String() string
- type CreateSnapshotRequest
- func (*CreateSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSnapshotRequest) GetSpec() *SnapshotSpec
- func (*CreateSnapshotRequest) ProtoMessage()
- func (x *CreateSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSnapshotRequest) Reset()
- func (x *CreateSnapshotRequest) String() string
- type CreateSnapshotResponse
- func (*CreateSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSnapshotResponse) GetSnapshot() *Snapshot
- func (*CreateSnapshotResponse) ProtoMessage()
- func (x *CreateSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSnapshotResponse) Reset()
- func (x *CreateSnapshotResponse) String() string
- type CreateVMRequest
- type DeleteBackupRequest
- func (*DeleteBackupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBackupRequest) GetBackupUrl() string
- func (*DeleteBackupRequest) ProtoMessage()
- func (x *DeleteBackupRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBackupRequest) Reset()
- func (x *DeleteBackupRequest) String() string
- type DeleteSnapshotRequest
- func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSnapshotRequest) GetSnapshotName() string
- func (x *DeleteSnapshotRequest) GetVolumeUuid() string
- func (*DeleteSnapshotRequest) ProtoMessage()
- func (x *DeleteSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSnapshotRequest) Reset()
- func (x *DeleteSnapshotRequest) String() string
- type DestroyNetworkRequest
- func (*DestroyNetworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DestroyNetworkRequest) GetNetworkUuid() string
- func (*DestroyNetworkRequest) ProtoMessage()
- func (x *DestroyNetworkRequest) ProtoReflect() protoreflect.Message
- func (x *DestroyNetworkRequest) Reset()
- func (x *DestroyNetworkRequest) String() string
- type DestroyVolumeRequest
- func (*DestroyVolumeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DestroyVolumeRequest) GetVolumeUuid() string
- func (*DestroyVolumeRequest) ProtoMessage()
- func (x *DestroyVolumeRequest) ProtoReflect() protoreflect.Message
- func (x *DestroyVolumeRequest) Reset()
- func (x *DestroyVolumeRequest) String() string
- type DetachDiskRequest
- func (*DetachDiskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DetachDiskRequest) GetVmUuid() string
- func (x *DetachDiskRequest) GetVolumeUuid() string
- func (*DetachDiskRequest) ProtoMessage()
- func (x *DetachDiskRequest) ProtoReflect() protoreflect.Message
- func (x *DetachDiskRequest) Reset()
- func (x *DetachDiskRequest) String() string
- type DetachNICRequest
- func (*DetachNICRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DetachNICRequest) GetNicDevice() string
- func (x *DetachNICRequest) GetVmUuid() string
- func (*DetachNICRequest) ProtoMessage()
- func (x *DetachNICRequest) ProtoReflect() protoreflect.Message
- func (x *DetachNICRequest) Reset()
- func (x *DetachNICRequest) String() string
- type DetachPortRequest
- type DetachVolumeRequest
- func (*DetachVolumeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DetachVolumeRequest) GetHostUuid() string
- func (x *DetachVolumeRequest) GetVolumeUuid() string
- func (*DetachVolumeRequest) ProtoMessage()
- func (x *DetachVolumeRequest) ProtoReflect() protoreflect.Message
- func (x *DetachVolumeRequest) Reset()
- func (x *DetachVolumeRequest) String() string
- type DiskSpec
- func (*DiskSpec) Descriptor() ([]byte, []int)deprecated
- func (x *DiskSpec) GetBackingPath() string
- func (x *DiskSpec) GetBoot() bool
- func (x *DiskSpec) GetBus() string
- func (x *DiskSpec) GetReadOnly() bool
- func (x *DiskSpec) GetSizeGib() int32
- func (x *DiskSpec) GetVolumeUuid() string
- func (*DiskSpec) ProtoMessage()
- func (x *DiskSpec) ProtoReflect() protoreflect.Message
- func (x *DiskSpec) Reset()
- func (x *DiskSpec) String() string
- type EnsureNetworkRequest
- func (*EnsureNetworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureNetworkRequest) GetSpec() *NetworkSpec
- func (*EnsureNetworkRequest) ProtoMessage()
- func (x *EnsureNetworkRequest) ProtoReflect() protoreflect.Message
- func (x *EnsureNetworkRequest) Reset()
- func (x *EnsureNetworkRequest) String() string
- type EnsureVolumeRequest
- func (*EnsureVolumeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureVolumeRequest) GetSpec() *VolumeSpec
- func (*EnsureVolumeRequest) ProtoMessage()
- func (x *EnsureVolumeRequest) ProtoReflect() protoreflect.Message
- func (x *EnsureVolumeRequest) Reset()
- func (x *EnsureVolumeRequest) String() string
- type HostInfo
- func (*HostInfo) Descriptor() ([]byte, []int)deprecated
- func (x *HostInfo) GetArchitecture() string
- func (x *HostInfo) GetAz() string
- func (x *HostInfo) GetHostname() string
- func (x *HostInfo) GetHypervisor() string
- func (x *HostInfo) GetUuid() string
- func (x *HostInfo) GetVersion() string
- func (*HostInfo) ProtoMessage()
- func (x *HostInfo) ProtoReflect() protoreflect.Message
- func (x *HostInfo) Reset()
- func (x *HostInfo) String() string
- type HostInfoResponse
- type HypervisorClient
- type HypervisorServer
- type ImageClient
- type ImageServer
- type InCacheResponse
- type ListBackupsRequest
- func (*ListBackupsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBackupsRequest) GetTarget() string
- func (x *ListBackupsRequest) GetVolumeUuid() string
- func (*ListBackupsRequest) ProtoMessage()
- func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message
- func (x *ListBackupsRequest) Reset()
- func (x *ListBackupsRequest) String() string
- type ListBackupsResponse
- func (*ListBackupsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBackupsResponse) GetBackups() []*Backup
- func (*ListBackupsResponse) ProtoMessage()
- func (x *ListBackupsResponse) ProtoReflect() protoreflect.Message
- func (x *ListBackupsResponse) Reset()
- func (x *ListBackupsResponse) String() string
- type ListSnapshotsRequest
- func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotsRequest) GetVolumeUuid() string
- func (*ListSnapshotsRequest) ProtoMessage()
- func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsRequest) Reset()
- func (x *ListSnapshotsRequest) String() string
- type ListSnapshotsResponse
- func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotsResponse) GetSnapshots() []*Snapshot
- func (*ListSnapshotsResponse) ProtoMessage()
- func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsResponse) Reset()
- func (x *ListSnapshotsResponse) String() string
- type LocalPathResponse
- type LocalResponse
- type NICHandle
- type NameResponse
- type NetworkClient
- type NetworkServer
- type NetworkSpec
- func (*NetworkSpec) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkSpec) GetCidr() string
- func (x *NetworkSpec) GetDnsServers() []string
- func (x *NetworkSpec) GetGateway() string
- func (x *NetworkSpec) GetMeshEndpoint() string
- func (x *NetworkSpec) GetMeshListenPort() int32
- func (x *NetworkSpec) GetName() string
- func (x *NetworkSpec) GetProjectUuid() string
- func (x *NetworkSpec) GetType() string
- func (x *NetworkSpec) GetUuid() string
- func (*NetworkSpec) ProtoMessage()
- func (x *NetworkSpec) ProtoReflect() protoreflect.Message
- func (x *NetworkSpec) Reset()
- func (x *NetworkSpec) String() string
- type PortSpec
- func (*PortSpec) Descriptor() ([]byte, []int)deprecated
- func (x *PortSpec) GetEffectiveSecurityGroups() []string
- func (x *PortSpec) GetIp() string
- func (x *PortSpec) GetMac() string
- func (x *PortSpec) GetMeshEndpoint() string
- func (x *PortSpec) GetNetworkUuid() string
- func (x *PortSpec) GetProjectUuid() string
- func (x *PortSpec) GetUuid() string
- func (x *PortSpec) GetVmUuid() string
- func (x *PortSpec) GetWireguardPubKey() string
- func (*PortSpec) ProtoMessage()
- func (x *PortSpec) ProtoReflect() protoreflect.Message
- func (x *PortSpec) Reset()
- func (x *PortSpec) String() string
- type RefRequest
- type RestoreBackupRequest
- func (*RestoreBackupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreBackupRequest) GetBackupUrl() string
- func (x *RestoreBackupRequest) GetSpec() *VolumeSpec
- func (*RestoreBackupRequest) ProtoMessage()
- func (x *RestoreBackupRequest) ProtoReflect() protoreflect.Message
- func (x *RestoreBackupRequest) Reset()
- func (x *RestoreBackupRequest) String() string
- type RevertSnapshotRequest
- func (*RevertSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevertSnapshotRequest) GetSnapshotName() string
- func (x *RevertSnapshotRequest) GetVolumeUuid() string
- func (*RevertSnapshotRequest) ProtoMessage()
- func (x *RevertSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *RevertSnapshotRequest) Reset()
- func (x *RevertSnapshotRequest) String() string
- type RotateMeshPeerRequest
- func (*RotateMeshPeerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RotateMeshPeerRequest) GetSpec() *PortSpec
- func (*RotateMeshPeerRequest) ProtoMessage()
- func (x *RotateMeshPeerRequest) ProtoReflect() protoreflect.Message
- func (x *RotateMeshPeerRequest) Reset()
- func (x *RotateMeshPeerRequest) String() string
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot) GetCreatedAtUnixNs() int64
- func (x *Snapshot) GetLabels() map[string]string
- func (x *Snapshot) GetName() string
- func (x *Snapshot) GetParent() string
- func (x *Snapshot) GetSizeBytes() int64
- func (x *Snapshot) GetUserCreated() bool
- func (x *Snapshot) GetVolumeUuid() string
- func (*Snapshot) ProtoMessage()
- func (x *Snapshot) ProtoReflect() protoreflect.Message
- func (x *Snapshot) Reset()
- func (x *Snapshot) String() string
- type SnapshotSpec
- func (*SnapshotSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SnapshotSpec) GetLabels() map[string]string
- func (x *SnapshotSpec) GetName() string
- func (x *SnapshotSpec) GetVolumeUuid() string
- func (*SnapshotSpec) ProtoMessage()
- func (x *SnapshotSpec) ProtoReflect() protoreflect.Message
- func (x *SnapshotSpec) Reset()
- func (x *SnapshotSpec) String() string
- type UnimplementedHypervisorServer
- func (UnimplementedHypervisorServer) AttachDisk(context.Context, *AttachDiskRequest) (*emptypb.Empty, error)
- func (UnimplementedHypervisorServer) AttachNIC(context.Context, *AttachNICRequest) (*emptypb.Empty, error)
- func (UnimplementedHypervisorServer) CreateVM(context.Context, *CreateVMRequest) (*emptypb.Empty, error)
- func (UnimplementedHypervisorServer) DeleteVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
- func (UnimplementedHypervisorServer) DetachDisk(context.Context, *DetachDiskRequest) (*emptypb.Empty, error)
- func (UnimplementedHypervisorServer) DetachNIC(context.Context, *DetachNICRequest) (*emptypb.Empty, error)
- func (UnimplementedHypervisorServer) HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
- func (UnimplementedHypervisorServer) StartVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
- func (UnimplementedHypervisorServer) StopVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
- type UnimplementedImageServer
- func (UnimplementedImageServer) Delete(context.Context, *RefRequest) (*emptypb.Empty, error)
- func (UnimplementedImageServer) HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
- func (UnimplementedImageServer) InCache(context.Context, *RefRequest) (*InCacheResponse, error)
- func (UnimplementedImageServer) LocalPath(context.Context, *RefRequest) (*LocalPathResponse, error)
- func (UnimplementedImageServer) Pull(context.Context, *RefRequest) (*emptypb.Empty, error)
- type UnimplementedNetworkServer
- func (UnimplementedNetworkServer) AttachPort(context.Context, *AttachPortRequest) (*AttachPortResponse, error)
- func (UnimplementedNetworkServer) DestroyNetwork(context.Context, *DestroyNetworkRequest) (*emptypb.Empty, error)
- func (UnimplementedNetworkServer) DetachPort(context.Context, *DetachPortRequest) (*emptypb.Empty, error)
- func (UnimplementedNetworkServer) EnsureNetwork(context.Context, *EnsureNetworkRequest) (*emptypb.Empty, error)
- func (UnimplementedNetworkServer) HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
- func (UnimplementedNetworkServer) RotateMeshPeer(context.Context, *RotateMeshPeerRequest) (*emptypb.Empty, error)
- type UnimplementedVolumeServer
- func (UnimplementedVolumeServer) AttachVolume(context.Context, *AttachVolumeRequest) (*AttachVolumeResponse, error)
- func (UnimplementedVolumeServer) CreateBackup(context.Context, *CreateBackupRequest) (*CreateBackupResponse, error)
- func (UnimplementedVolumeServer) CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
- func (UnimplementedVolumeServer) DeleteBackup(context.Context, *DeleteBackupRequest) (*emptypb.Empty, error)
- func (UnimplementedVolumeServer) DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*emptypb.Empty, error)
- func (UnimplementedVolumeServer) DestroyVolume(context.Context, *DestroyVolumeRequest) (*emptypb.Empty, error)
- func (UnimplementedVolumeServer) DetachVolume(context.Context, *DetachVolumeRequest) (*emptypb.Empty, error)
- func (UnimplementedVolumeServer) EnsureVolume(context.Context, *EnsureVolumeRequest) (*emptypb.Empty, error)
- func (UnimplementedVolumeServer) HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
- func (UnimplementedVolumeServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)
- func (UnimplementedVolumeServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
- func (UnimplementedVolumeServer) Local(context.Context, *emptypb.Empty) (*LocalResponse, error)
- func (UnimplementedVolumeServer) Name(context.Context, *emptypb.Empty) (*NameResponse, error)
- func (UnimplementedVolumeServer) RestoreBackup(context.Context, *RestoreBackupRequest) (*emptypb.Empty, error)
- func (UnimplementedVolumeServer) RevertSnapshot(context.Context, *RevertSnapshotRequest) (*emptypb.Empty, error)
- type UnsafeHypervisorServer
- type UnsafeImageServer
- type UnsafeNetworkServer
- type UnsafeVolumeServer
- type VMSpec
- func (*VMSpec) Descriptor() ([]byte, []int)deprecated
- func (x *VMSpec) GetBootKind() string
- func (x *VMSpec) GetBootRef() string
- func (x *VMSpec) GetCmdline() string
- func (x *VMSpec) GetCpuCount() int32
- func (x *VMSpec) GetMemoryMib() int32
- func (x *VMSpec) GetName() string
- func (x *VMSpec) GetProjectUuid() string
- func (x *VMSpec) GetUuid() string
- func (x *VMSpec) GetVsockCid() uint32
- func (*VMSpec) ProtoMessage()
- func (x *VMSpec) ProtoReflect() protoreflect.Message
- func (x *VMSpec) Reset()
- func (x *VMSpec) String() string
- type VMUUIDRequest
- type VolumeClient
- type VolumeServer
- type VolumeSpec
- func (*VolumeSpec) Descriptor() ([]byte, []int)deprecated
- func (x *VolumeSpec) GetFormat() string
- func (x *VolumeSpec) GetName() string
- func (x *VolumeSpec) GetProjectUuid() string
- func (x *VolumeSpec) GetSizeGib() int32
- func (x *VolumeSpec) GetUuid() string
- func (*VolumeSpec) ProtoMessage()
- func (x *VolumeSpec) ProtoReflect() protoreflect.Message
- func (x *VolumeSpec) Reset()
- func (x *VolumeSpec) String() string
Constants ¶
const ( Hypervisor_HostInfo_FullMethodName = "/weft.driver.v1.Hypervisor/HostInfo" Hypervisor_CreateVM_FullMethodName = "/weft.driver.v1.Hypervisor/CreateVM" Hypervisor_StartVM_FullMethodName = "/weft.driver.v1.Hypervisor/StartVM" Hypervisor_StopVM_FullMethodName = "/weft.driver.v1.Hypervisor/StopVM" Hypervisor_DeleteVM_FullMethodName = "/weft.driver.v1.Hypervisor/DeleteVM" Hypervisor_AttachDisk_FullMethodName = "/weft.driver.v1.Hypervisor/AttachDisk" Hypervisor_DetachDisk_FullMethodName = "/weft.driver.v1.Hypervisor/DetachDisk" Hypervisor_AttachNIC_FullMethodName = "/weft.driver.v1.Hypervisor/AttachNIC" Hypervisor_DetachNIC_FullMethodName = "/weft.driver.v1.Hypervisor/DetachNIC" )
const ( Network_HostInfo_FullMethodName = "/weft.driver.v1.Network/HostInfo" Network_EnsureNetwork_FullMethodName = "/weft.driver.v1.Network/EnsureNetwork" Network_DestroyNetwork_FullMethodName = "/weft.driver.v1.Network/DestroyNetwork" Network_AttachPort_FullMethodName = "/weft.driver.v1.Network/AttachPort" Network_DetachPort_FullMethodName = "/weft.driver.v1.Network/DetachPort" Network_RotateMeshPeer_FullMethodName = "/weft.driver.v1.Network/RotateMeshPeer" )
const ( Volume_Name_FullMethodName = "/weft.driver.v1.Volume/Name" Volume_Local_FullMethodName = "/weft.driver.v1.Volume/Local" Volume_HostInfo_FullMethodName = "/weft.driver.v1.Volume/HostInfo" Volume_EnsureVolume_FullMethodName = "/weft.driver.v1.Volume/EnsureVolume" Volume_DestroyVolume_FullMethodName = "/weft.driver.v1.Volume/DestroyVolume" Volume_AttachVolume_FullMethodName = "/weft.driver.v1.Volume/AttachVolume" Volume_DetachVolume_FullMethodName = "/weft.driver.v1.Volume/DetachVolume" Volume_CreateSnapshot_FullMethodName = "/weft.driver.v1.Volume/CreateSnapshot" Volume_ListSnapshots_FullMethodName = "/weft.driver.v1.Volume/ListSnapshots" Volume_DeleteSnapshot_FullMethodName = "/weft.driver.v1.Volume/DeleteSnapshot" Volume_RevertSnapshot_FullMethodName = "/weft.driver.v1.Volume/RevertSnapshot" Volume_CreateBackup_FullMethodName = "/weft.driver.v1.Volume/CreateBackup" Volume_ListBackups_FullMethodName = "/weft.driver.v1.Volume/ListBackups" Volume_DeleteBackup_FullMethodName = "/weft.driver.v1.Volume/DeleteBackup" Volume_RestoreBackup_FullMethodName = "/weft.driver.v1.Volume/RestoreBackup" )
const ( Image_HostInfo_FullMethodName = "/weft.driver.v1.Image/HostInfo" Image_Pull_FullMethodName = "/weft.driver.v1.Image/Pull" Image_LocalPath_FullMethodName = "/weft.driver.v1.Image/LocalPath" Image_Delete_FullMethodName = "/weft.driver.v1.Image/Delete" Image_InCache_FullMethodName = "/weft.driver.v1.Image/InCache" )
Variables ¶
var File_driverpb_driver_proto protoreflect.FileDescriptor
var Hypervisor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "weft.driver.v1.Hypervisor", HandlerType: (*HypervisorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HostInfo", Handler: _Hypervisor_HostInfo_Handler, }, { MethodName: "CreateVM", Handler: _Hypervisor_CreateVM_Handler, }, { MethodName: "StartVM", Handler: _Hypervisor_StartVM_Handler, }, { MethodName: "StopVM", Handler: _Hypervisor_StopVM_Handler, }, { MethodName: "DeleteVM", Handler: _Hypervisor_DeleteVM_Handler, }, { MethodName: "AttachDisk", Handler: _Hypervisor_AttachDisk_Handler, }, { MethodName: "DetachDisk", Handler: _Hypervisor_DetachDisk_Handler, }, { MethodName: "AttachNIC", Handler: _Hypervisor_AttachNIC_Handler, }, { MethodName: "DetachNIC", Handler: _Hypervisor_DetachNIC_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "driverpb/driver.proto", }
Hypervisor_ServiceDesc is the grpc.ServiceDesc for Hypervisor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Image_ServiceDesc = grpc.ServiceDesc{ ServiceName: "weft.driver.v1.Image", HandlerType: (*ImageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HostInfo", Handler: _Image_HostInfo_Handler, }, { MethodName: "Pull", Handler: _Image_Pull_Handler, }, { MethodName: "LocalPath", Handler: _Image_LocalPath_Handler, }, { MethodName: "Delete", Handler: _Image_Delete_Handler, }, { MethodName: "InCache", Handler: _Image_InCache_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "driverpb/driver.proto", }
Image_ServiceDesc is the grpc.ServiceDesc for Image service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Network_ServiceDesc = grpc.ServiceDesc{ ServiceName: "weft.driver.v1.Network", HandlerType: (*NetworkServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HostInfo", Handler: _Network_HostInfo_Handler, }, { MethodName: "EnsureNetwork", Handler: _Network_EnsureNetwork_Handler, }, { MethodName: "DestroyNetwork", Handler: _Network_DestroyNetwork_Handler, }, { MethodName: "AttachPort", Handler: _Network_AttachPort_Handler, }, { MethodName: "DetachPort", Handler: _Network_DetachPort_Handler, }, { MethodName: "RotateMeshPeer", Handler: _Network_RotateMeshPeer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "driverpb/driver.proto", }
Network_ServiceDesc is the grpc.ServiceDesc for Network service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Volume_ServiceDesc = grpc.ServiceDesc{ ServiceName: "weft.driver.v1.Volume", HandlerType: (*VolumeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Name", Handler: _Volume_Name_Handler, }, { MethodName: "Local", Handler: _Volume_Local_Handler, }, { MethodName: "HostInfo", Handler: _Volume_HostInfo_Handler, }, { MethodName: "EnsureVolume", Handler: _Volume_EnsureVolume_Handler, }, { MethodName: "DestroyVolume", Handler: _Volume_DestroyVolume_Handler, }, { MethodName: "AttachVolume", Handler: _Volume_AttachVolume_Handler, }, { MethodName: "DetachVolume", Handler: _Volume_DetachVolume_Handler, }, { MethodName: "CreateSnapshot", Handler: _Volume_CreateSnapshot_Handler, }, { MethodName: "ListSnapshots", Handler: _Volume_ListSnapshots_Handler, }, { MethodName: "DeleteSnapshot", Handler: _Volume_DeleteSnapshot_Handler, }, { MethodName: "RevertSnapshot", Handler: _Volume_RevertSnapshot_Handler, }, { MethodName: "CreateBackup", Handler: _Volume_CreateBackup_Handler, }, { MethodName: "ListBackups", Handler: _Volume_ListBackups_Handler, }, { MethodName: "DeleteBackup", Handler: _Volume_DeleteBackup_Handler, }, { MethodName: "RestoreBackup", Handler: _Volume_RestoreBackup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "driverpb/driver.proto", }
Volume_ServiceDesc is the grpc.ServiceDesc for Volume service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHypervisorServer ¶
func RegisterHypervisorServer(s grpc.ServiceRegistrar, srv HypervisorServer)
func RegisterImageServer ¶
func RegisterImageServer(s grpc.ServiceRegistrar, srv ImageServer)
func RegisterNetworkServer ¶
func RegisterNetworkServer(s grpc.ServiceRegistrar, srv NetworkServer)
func RegisterVolumeServer ¶
func RegisterVolumeServer(s grpc.ServiceRegistrar, srv VolumeServer)
Types ¶
type AttachDiskRequest ¶
type AttachDiskRequest struct {
VmUuid string `protobuf:"bytes,1,opt,name=vm_uuid,json=vmUuid,proto3" json:"vm_uuid,omitempty"`
Disk *DiskSpec `protobuf:"bytes,2,opt,name=disk,proto3" json:"disk,omitempty"`
// contains filtered or unexported fields
}
func (*AttachDiskRequest) Descriptor
deprecated
func (*AttachDiskRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttachDiskRequest.ProtoReflect.Descriptor instead.
func (*AttachDiskRequest) GetDisk ¶
func (x *AttachDiskRequest) GetDisk() *DiskSpec
func (*AttachDiskRequest) GetVmUuid ¶
func (x *AttachDiskRequest) GetVmUuid() string
func (*AttachDiskRequest) ProtoMessage ¶
func (*AttachDiskRequest) ProtoMessage()
func (*AttachDiskRequest) ProtoReflect ¶
func (x *AttachDiskRequest) ProtoReflect() protoreflect.Message
func (*AttachDiskRequest) Reset ¶
func (x *AttachDiskRequest) Reset()
func (*AttachDiskRequest) String ¶
func (x *AttachDiskRequest) String() string
type AttachNICRequest ¶
type AttachNICRequest struct {
VmUuid string `protobuf:"bytes,1,opt,name=vm_uuid,json=vmUuid,proto3" json:"vm_uuid,omitempty"`
Nic *NICHandle `protobuf:"bytes,2,opt,name=nic,proto3" json:"nic,omitempty"`
// contains filtered or unexported fields
}
func (*AttachNICRequest) Descriptor
deprecated
func (*AttachNICRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttachNICRequest.ProtoReflect.Descriptor instead.
func (*AttachNICRequest) GetNic ¶
func (x *AttachNICRequest) GetNic() *NICHandle
func (*AttachNICRequest) GetVmUuid ¶
func (x *AttachNICRequest) GetVmUuid() string
func (*AttachNICRequest) ProtoMessage ¶
func (*AttachNICRequest) ProtoMessage()
func (*AttachNICRequest) ProtoReflect ¶
func (x *AttachNICRequest) ProtoReflect() protoreflect.Message
func (*AttachNICRequest) Reset ¶
func (x *AttachNICRequest) Reset()
func (*AttachNICRequest) String ¶
func (x *AttachNICRequest) String() string
type AttachPortRequest ¶
type AttachPortRequest struct {
Spec *PortSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*AttachPortRequest) Descriptor
deprecated
func (*AttachPortRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttachPortRequest.ProtoReflect.Descriptor instead.
func (*AttachPortRequest) GetSpec ¶
func (x *AttachPortRequest) GetSpec() *PortSpec
func (*AttachPortRequest) ProtoMessage ¶
func (*AttachPortRequest) ProtoMessage()
func (*AttachPortRequest) ProtoReflect ¶
func (x *AttachPortRequest) ProtoReflect() protoreflect.Message
func (*AttachPortRequest) Reset ¶
func (x *AttachPortRequest) Reset()
func (*AttachPortRequest) String ¶
func (x *AttachPortRequest) String() string
type AttachPortResponse ¶
type AttachPortResponse struct {
Handle *NICHandle `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
// contains filtered or unexported fields
}
func (*AttachPortResponse) Descriptor
deprecated
func (*AttachPortResponse) Descriptor() ([]byte, []int)
Deprecated: Use AttachPortResponse.ProtoReflect.Descriptor instead.
func (*AttachPortResponse) GetHandle ¶
func (x *AttachPortResponse) GetHandle() *NICHandle
func (*AttachPortResponse) ProtoMessage ¶
func (*AttachPortResponse) ProtoMessage()
func (*AttachPortResponse) ProtoReflect ¶
func (x *AttachPortResponse) ProtoReflect() protoreflect.Message
func (*AttachPortResponse) Reset ¶
func (x *AttachPortResponse) Reset()
func (*AttachPortResponse) String ¶
func (x *AttachPortResponse) String() string
type AttachVolumeRequest ¶
type AttachVolumeRequest struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
HostUuid string `protobuf:"bytes,2,opt,name=host_uuid,json=hostUuid,proto3" json:"host_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*AttachVolumeRequest) Descriptor
deprecated
func (*AttachVolumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttachVolumeRequest.ProtoReflect.Descriptor instead.
func (*AttachVolumeRequest) GetHostUuid ¶
func (x *AttachVolumeRequest) GetHostUuid() string
func (*AttachVolumeRequest) GetVolumeUuid ¶
func (x *AttachVolumeRequest) GetVolumeUuid() string
func (*AttachVolumeRequest) ProtoMessage ¶
func (*AttachVolumeRequest) ProtoMessage()
func (*AttachVolumeRequest) ProtoReflect ¶
func (x *AttachVolumeRequest) ProtoReflect() protoreflect.Message
func (*AttachVolumeRequest) Reset ¶
func (x *AttachVolumeRequest) Reset()
func (*AttachVolumeRequest) String ¶
func (x *AttachVolumeRequest) String() string
type AttachVolumeResponse ¶
type AttachVolumeResponse struct {
Volume *AttachedVolume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
// contains filtered or unexported fields
}
func (*AttachVolumeResponse) Descriptor
deprecated
func (*AttachVolumeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AttachVolumeResponse.ProtoReflect.Descriptor instead.
func (*AttachVolumeResponse) GetVolume ¶
func (x *AttachVolumeResponse) GetVolume() *AttachedVolume
func (*AttachVolumeResponse) ProtoMessage ¶
func (*AttachVolumeResponse) ProtoMessage()
func (*AttachVolumeResponse) ProtoReflect ¶
func (x *AttachVolumeResponse) ProtoReflect() protoreflect.Message
func (*AttachVolumeResponse) Reset ¶
func (x *AttachVolumeResponse) Reset()
func (*AttachVolumeResponse) String ¶
func (x *AttachVolumeResponse) String() string
type AttachedVolume ¶
type AttachedVolume struct {
BackingPath string `protobuf:"bytes,1,opt,name=backing_path,json=backingPath,proto3" json:"backing_path,omitempty"`
ReadOnly bool `protobuf:"varint,2,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
// contains filtered or unexported fields
}
func (*AttachedVolume) Descriptor
deprecated
func (*AttachedVolume) Descriptor() ([]byte, []int)
Deprecated: Use AttachedVolume.ProtoReflect.Descriptor instead.
func (*AttachedVolume) GetBackingPath ¶
func (x *AttachedVolume) GetBackingPath() string
func (*AttachedVolume) GetReadOnly ¶
func (x *AttachedVolume) GetReadOnly() bool
func (*AttachedVolume) ProtoMessage ¶
func (*AttachedVolume) ProtoMessage()
func (*AttachedVolume) ProtoReflect ¶
func (x *AttachedVolume) ProtoReflect() protoreflect.Message
func (*AttachedVolume) Reset ¶
func (x *AttachedVolume) Reset()
func (*AttachedVolume) String ¶
func (x *AttachedVolume) String() string
type Backup ¶ added in v0.3.0
type Backup struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
SnapshotName string `protobuf:"bytes,2,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
SizeBytes int64 `protobuf:"varint,4,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
CreatedAtUnixNs int64 `protobuf:"varint,5,opt,name=created_at_unix_ns,json=createdAtUnixNs,proto3" json:"created_at_unix_ns,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
State string `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"`
Error string `protobuf:"bytes,8,opt,name=error,proto3" json:"error,omitempty"`
ParentUrl string `protobuf:"bytes,9,opt,name=parent_url,json=parentUrl,proto3" json:"parent_url,omitempty"`
Encryption *BackupEncryptionInfo `protobuf:"bytes,10,opt,name=encryption,proto3" json:"encryption,omitempty"` // echoes algo+kdf params+salt for restore
// contains filtered or unexported fields
}
func (*Backup) Descriptor
deprecated
added in
v0.3.0
func (*Backup) GetCreatedAtUnixNs ¶ added in v0.3.0
func (*Backup) GetEncryption ¶ added in v0.3.0
func (x *Backup) GetEncryption() *BackupEncryptionInfo
func (*Backup) GetParentUrl ¶ added in v0.3.0
func (*Backup) GetSizeBytes ¶ added in v0.3.0
func (*Backup) GetSnapshotName ¶ added in v0.3.0
func (*Backup) GetVolumeUuid ¶ added in v0.3.0
func (*Backup) ProtoMessage ¶ added in v0.3.0
func (*Backup) ProtoMessage()
func (*Backup) ProtoReflect ¶ added in v0.3.0
func (x *Backup) ProtoReflect() protoreflect.Message
type BackupEncryption ¶ added in v0.3.0
type BackupEncryption struct {
Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"` // "" | "chacha20-poly1305" | "aes-256-gcm"
PassphraseEnv string `protobuf:"bytes,2,opt,name=passphrase_env,json=passphraseEnv,proto3" json:"passphrase_env,omitempty"` // env var holding the passphrase
Kdf string `protobuf:"bytes,3,opt,name=kdf,proto3" json:"kdf,omitempty"` // "argon2id" (default) | "raw"
KdfParams map[string]string `` /* 162-byte string literal not displayed */
// contains filtered or unexported fields
}
BackupEncryption configures end-to-end AEAD over every chunk shipped to the target. Empty algorithm = no encryption.
func (*BackupEncryption) Descriptor
deprecated
added in
v0.3.0
func (*BackupEncryption) Descriptor() ([]byte, []int)
Deprecated: Use BackupEncryption.ProtoReflect.Descriptor instead.
func (*BackupEncryption) GetAlgorithm ¶ added in v0.3.0
func (x *BackupEncryption) GetAlgorithm() string
func (*BackupEncryption) GetKdf ¶ added in v0.3.0
func (x *BackupEncryption) GetKdf() string
func (*BackupEncryption) GetKdfParams ¶ added in v0.3.0
func (x *BackupEncryption) GetKdfParams() map[string]string
func (*BackupEncryption) GetPassphraseEnv ¶ added in v0.3.0
func (x *BackupEncryption) GetPassphraseEnv() string
func (*BackupEncryption) ProtoMessage ¶ added in v0.3.0
func (*BackupEncryption) ProtoMessage()
func (*BackupEncryption) ProtoReflect ¶ added in v0.3.0
func (x *BackupEncryption) ProtoReflect() protoreflect.Message
func (*BackupEncryption) Reset ¶ added in v0.3.0
func (x *BackupEncryption) Reset()
func (*BackupEncryption) String ¶ added in v0.3.0
func (x *BackupEncryption) String() string
type BackupEncryptionInfo ¶ added in v0.3.0
type BackupEncryptionInfo struct {
Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
Kdf string `protobuf:"bytes,2,opt,name=kdf,proto3" json:"kdf,omitempty"`
KdfParams map[string]string `` /* 162-byte string literal not displayed */
SaltHex string `protobuf:"bytes,4,opt,name=salt_hex,json=saltHex,proto3" json:"salt_hex,omitempty"`
// contains filtered or unexported fields
}
BackupEncryptionInfo is what restore needs to re-derive the key : everything from BackupEncryption EXCEPT the passphrase, plus the per-backup random salt.
func (*BackupEncryptionInfo) Descriptor
deprecated
added in
v0.3.0
func (*BackupEncryptionInfo) Descriptor() ([]byte, []int)
Deprecated: Use BackupEncryptionInfo.ProtoReflect.Descriptor instead.
func (*BackupEncryptionInfo) GetAlgorithm ¶ added in v0.3.0
func (x *BackupEncryptionInfo) GetAlgorithm() string
func (*BackupEncryptionInfo) GetKdf ¶ added in v0.3.0
func (x *BackupEncryptionInfo) GetKdf() string
func (*BackupEncryptionInfo) GetKdfParams ¶ added in v0.3.0
func (x *BackupEncryptionInfo) GetKdfParams() map[string]string
func (*BackupEncryptionInfo) GetSaltHex ¶ added in v0.3.0
func (x *BackupEncryptionInfo) GetSaltHex() string
func (*BackupEncryptionInfo) ProtoMessage ¶ added in v0.3.0
func (*BackupEncryptionInfo) ProtoMessage()
func (*BackupEncryptionInfo) ProtoReflect ¶ added in v0.3.0
func (x *BackupEncryptionInfo) ProtoReflect() protoreflect.Message
func (*BackupEncryptionInfo) Reset ¶ added in v0.3.0
func (x *BackupEncryptionInfo) Reset()
func (*BackupEncryptionInfo) String ¶ added in v0.3.0
func (x *BackupEncryptionInfo) String() string
type BackupSpec ¶ added in v0.3.0
type BackupSpec struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
SnapshotName string `protobuf:"bytes,2,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
// parent_url, when non-empty, makes this an incremental backup whose
// body only carries blocks that differ from the parent. Empty = full.
ParentUrl string `protobuf:"bytes,5,opt,name=parent_url,json=parentUrl,proto3" json:"parent_url,omitempty"`
// encryption wraps every shipped chunk in AEAD when algorithm is set.
Encryption *BackupEncryption `protobuf:"bytes,6,opt,name=encryption,proto3" json:"encryption,omitempty"`
// contains filtered or unexported fields
}
func (*BackupSpec) Descriptor
deprecated
added in
v0.3.0
func (*BackupSpec) Descriptor() ([]byte, []int)
Deprecated: Use BackupSpec.ProtoReflect.Descriptor instead.
func (*BackupSpec) GetEncryption ¶ added in v0.3.0
func (x *BackupSpec) GetEncryption() *BackupEncryption
func (*BackupSpec) GetLabels ¶ added in v0.3.0
func (x *BackupSpec) GetLabels() map[string]string
func (*BackupSpec) GetParentUrl ¶ added in v0.3.0
func (x *BackupSpec) GetParentUrl() string
func (*BackupSpec) GetSnapshotName ¶ added in v0.3.0
func (x *BackupSpec) GetSnapshotName() string
func (*BackupSpec) GetTarget ¶ added in v0.3.0
func (x *BackupSpec) GetTarget() string
func (*BackupSpec) GetVolumeUuid ¶ added in v0.3.0
func (x *BackupSpec) GetVolumeUuid() string
func (*BackupSpec) ProtoMessage ¶ added in v0.3.0
func (*BackupSpec) ProtoMessage()
func (*BackupSpec) ProtoReflect ¶ added in v0.3.0
func (x *BackupSpec) ProtoReflect() protoreflect.Message
func (*BackupSpec) Reset ¶ added in v0.3.0
func (x *BackupSpec) Reset()
func (*BackupSpec) String ¶ added in v0.3.0
func (x *BackupSpec) String() string
type CreateBackupRequest ¶ added in v0.3.0
type CreateBackupRequest struct {
Spec *BackupSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*CreateBackupRequest) Descriptor
deprecated
added in
v0.3.0
func (*CreateBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBackupRequest.ProtoReflect.Descriptor instead.
func (*CreateBackupRequest) GetSpec ¶ added in v0.3.0
func (x *CreateBackupRequest) GetSpec() *BackupSpec
func (*CreateBackupRequest) ProtoMessage ¶ added in v0.3.0
func (*CreateBackupRequest) ProtoMessage()
func (*CreateBackupRequest) ProtoReflect ¶ added in v0.3.0
func (x *CreateBackupRequest) ProtoReflect() protoreflect.Message
func (*CreateBackupRequest) Reset ¶ added in v0.3.0
func (x *CreateBackupRequest) Reset()
func (*CreateBackupRequest) String ¶ added in v0.3.0
func (x *CreateBackupRequest) String() string
type CreateBackupResponse ¶ added in v0.3.0
type CreateBackupResponse struct {
Backup *Backup `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty"`
// contains filtered or unexported fields
}
func (*CreateBackupResponse) Descriptor
deprecated
added in
v0.3.0
func (*CreateBackupResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBackupResponse.ProtoReflect.Descriptor instead.
func (*CreateBackupResponse) GetBackup ¶ added in v0.3.0
func (x *CreateBackupResponse) GetBackup() *Backup
func (*CreateBackupResponse) ProtoMessage ¶ added in v0.3.0
func (*CreateBackupResponse) ProtoMessage()
func (*CreateBackupResponse) ProtoReflect ¶ added in v0.3.0
func (x *CreateBackupResponse) ProtoReflect() protoreflect.Message
func (*CreateBackupResponse) Reset ¶ added in v0.3.0
func (x *CreateBackupResponse) Reset()
func (*CreateBackupResponse) String ¶ added in v0.3.0
func (x *CreateBackupResponse) String() string
type CreateSnapshotRequest ¶ added in v0.3.0
type CreateSnapshotRequest struct {
Spec *SnapshotSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*CreateSnapshotRequest) Descriptor
deprecated
added in
v0.3.0
func (*CreateSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSnapshotRequest.ProtoReflect.Descriptor instead.
func (*CreateSnapshotRequest) GetSpec ¶ added in v0.3.0
func (x *CreateSnapshotRequest) GetSpec() *SnapshotSpec
func (*CreateSnapshotRequest) ProtoMessage ¶ added in v0.3.0
func (*CreateSnapshotRequest) ProtoMessage()
func (*CreateSnapshotRequest) ProtoReflect ¶ added in v0.3.0
func (x *CreateSnapshotRequest) ProtoReflect() protoreflect.Message
func (*CreateSnapshotRequest) Reset ¶ added in v0.3.0
func (x *CreateSnapshotRequest) Reset()
func (*CreateSnapshotRequest) String ¶ added in v0.3.0
func (x *CreateSnapshotRequest) String() string
type CreateSnapshotResponse ¶ added in v0.3.0
type CreateSnapshotResponse struct {
Snapshot *Snapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
// contains filtered or unexported fields
}
func (*CreateSnapshotResponse) Descriptor
deprecated
added in
v0.3.0
func (*CreateSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSnapshotResponse.ProtoReflect.Descriptor instead.
func (*CreateSnapshotResponse) GetSnapshot ¶ added in v0.3.0
func (x *CreateSnapshotResponse) GetSnapshot() *Snapshot
func (*CreateSnapshotResponse) ProtoMessage ¶ added in v0.3.0
func (*CreateSnapshotResponse) ProtoMessage()
func (*CreateSnapshotResponse) ProtoReflect ¶ added in v0.3.0
func (x *CreateSnapshotResponse) ProtoReflect() protoreflect.Message
func (*CreateSnapshotResponse) Reset ¶ added in v0.3.0
func (x *CreateSnapshotResponse) Reset()
func (*CreateSnapshotResponse) String ¶ added in v0.3.0
func (x *CreateSnapshotResponse) String() string
type CreateVMRequest ¶
type CreateVMRequest struct {
Spec *VMSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*CreateVMRequest) Descriptor
deprecated
func (*CreateVMRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVMRequest.ProtoReflect.Descriptor instead.
func (*CreateVMRequest) GetSpec ¶
func (x *CreateVMRequest) GetSpec() *VMSpec
func (*CreateVMRequest) ProtoMessage ¶
func (*CreateVMRequest) ProtoMessage()
func (*CreateVMRequest) ProtoReflect ¶
func (x *CreateVMRequest) ProtoReflect() protoreflect.Message
func (*CreateVMRequest) Reset ¶
func (x *CreateVMRequest) Reset()
func (*CreateVMRequest) String ¶
func (x *CreateVMRequest) String() string
type DeleteBackupRequest ¶ added in v0.3.0
type DeleteBackupRequest struct {
BackupUrl string `protobuf:"bytes,1,opt,name=backup_url,json=backupUrl,proto3" json:"backup_url,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteBackupRequest) Descriptor
deprecated
added in
v0.3.0
func (*DeleteBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBackupRequest.ProtoReflect.Descriptor instead.
func (*DeleteBackupRequest) GetBackupUrl ¶ added in v0.3.0
func (x *DeleteBackupRequest) GetBackupUrl() string
func (*DeleteBackupRequest) ProtoMessage ¶ added in v0.3.0
func (*DeleteBackupRequest) ProtoMessage()
func (*DeleteBackupRequest) ProtoReflect ¶ added in v0.3.0
func (x *DeleteBackupRequest) ProtoReflect() protoreflect.Message
func (*DeleteBackupRequest) Reset ¶ added in v0.3.0
func (x *DeleteBackupRequest) Reset()
func (*DeleteBackupRequest) String ¶ added in v0.3.0
func (x *DeleteBackupRequest) String() string
type DeleteSnapshotRequest ¶ added in v0.3.0
type DeleteSnapshotRequest struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
SnapshotName string `protobuf:"bytes,2,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteSnapshotRequest) Descriptor
deprecated
added in
v0.3.0
func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSnapshotRequest.ProtoReflect.Descriptor instead.
func (*DeleteSnapshotRequest) GetSnapshotName ¶ added in v0.3.0
func (x *DeleteSnapshotRequest) GetSnapshotName() string
func (*DeleteSnapshotRequest) GetVolumeUuid ¶ added in v0.3.0
func (x *DeleteSnapshotRequest) GetVolumeUuid() string
func (*DeleteSnapshotRequest) ProtoMessage ¶ added in v0.3.0
func (*DeleteSnapshotRequest) ProtoMessage()
func (*DeleteSnapshotRequest) ProtoReflect ¶ added in v0.3.0
func (x *DeleteSnapshotRequest) ProtoReflect() protoreflect.Message
func (*DeleteSnapshotRequest) Reset ¶ added in v0.3.0
func (x *DeleteSnapshotRequest) Reset()
func (*DeleteSnapshotRequest) String ¶ added in v0.3.0
func (x *DeleteSnapshotRequest) String() string
type DestroyNetworkRequest ¶
type DestroyNetworkRequest struct {
NetworkUuid string `protobuf:"bytes,1,opt,name=network_uuid,json=networkUuid,proto3" json:"network_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*DestroyNetworkRequest) Descriptor
deprecated
func (*DestroyNetworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use DestroyNetworkRequest.ProtoReflect.Descriptor instead.
func (*DestroyNetworkRequest) GetNetworkUuid ¶
func (x *DestroyNetworkRequest) GetNetworkUuid() string
func (*DestroyNetworkRequest) ProtoMessage ¶
func (*DestroyNetworkRequest) ProtoMessage()
func (*DestroyNetworkRequest) ProtoReflect ¶
func (x *DestroyNetworkRequest) ProtoReflect() protoreflect.Message
func (*DestroyNetworkRequest) Reset ¶
func (x *DestroyNetworkRequest) Reset()
func (*DestroyNetworkRequest) String ¶
func (x *DestroyNetworkRequest) String() string
type DestroyVolumeRequest ¶
type DestroyVolumeRequest struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*DestroyVolumeRequest) Descriptor
deprecated
func (*DestroyVolumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DestroyVolumeRequest.ProtoReflect.Descriptor instead.
func (*DestroyVolumeRequest) GetVolumeUuid ¶
func (x *DestroyVolumeRequest) GetVolumeUuid() string
func (*DestroyVolumeRequest) ProtoMessage ¶
func (*DestroyVolumeRequest) ProtoMessage()
func (*DestroyVolumeRequest) ProtoReflect ¶
func (x *DestroyVolumeRequest) ProtoReflect() protoreflect.Message
func (*DestroyVolumeRequest) Reset ¶
func (x *DestroyVolumeRequest) Reset()
func (*DestroyVolumeRequest) String ¶
func (x *DestroyVolumeRequest) String() string
type DetachDiskRequest ¶
type DetachDiskRequest struct {
VmUuid string `protobuf:"bytes,1,opt,name=vm_uuid,json=vmUuid,proto3" json:"vm_uuid,omitempty"`
VolumeUuid string `protobuf:"bytes,2,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*DetachDiskRequest) Descriptor
deprecated
func (*DetachDiskRequest) Descriptor() ([]byte, []int)
Deprecated: Use DetachDiskRequest.ProtoReflect.Descriptor instead.
func (*DetachDiskRequest) GetVmUuid ¶
func (x *DetachDiskRequest) GetVmUuid() string
func (*DetachDiskRequest) GetVolumeUuid ¶
func (x *DetachDiskRequest) GetVolumeUuid() string
func (*DetachDiskRequest) ProtoMessage ¶
func (*DetachDiskRequest) ProtoMessage()
func (*DetachDiskRequest) ProtoReflect ¶
func (x *DetachDiskRequest) ProtoReflect() protoreflect.Message
func (*DetachDiskRequest) Reset ¶
func (x *DetachDiskRequest) Reset()
func (*DetachDiskRequest) String ¶
func (x *DetachDiskRequest) String() string
type DetachNICRequest ¶
type DetachNICRequest struct {
VmUuid string `protobuf:"bytes,1,opt,name=vm_uuid,json=vmUuid,proto3" json:"vm_uuid,omitempty"`
NicDevice string `protobuf:"bytes,2,opt,name=nic_device,json=nicDevice,proto3" json:"nic_device,omitempty"`
// contains filtered or unexported fields
}
func (*DetachNICRequest) Descriptor
deprecated
func (*DetachNICRequest) Descriptor() ([]byte, []int)
Deprecated: Use DetachNICRequest.ProtoReflect.Descriptor instead.
func (*DetachNICRequest) GetNicDevice ¶
func (x *DetachNICRequest) GetNicDevice() string
func (*DetachNICRequest) GetVmUuid ¶
func (x *DetachNICRequest) GetVmUuid() string
func (*DetachNICRequest) ProtoMessage ¶
func (*DetachNICRequest) ProtoMessage()
func (*DetachNICRequest) ProtoReflect ¶
func (x *DetachNICRequest) ProtoReflect() protoreflect.Message
func (*DetachNICRequest) Reset ¶
func (x *DetachNICRequest) Reset()
func (*DetachNICRequest) String ¶
func (x *DetachNICRequest) String() string
type DetachPortRequest ¶
type DetachPortRequest struct {
PortUuid string `protobuf:"bytes,1,opt,name=port_uuid,json=portUuid,proto3" json:"port_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*DetachPortRequest) Descriptor
deprecated
func (*DetachPortRequest) Descriptor() ([]byte, []int)
Deprecated: Use DetachPortRequest.ProtoReflect.Descriptor instead.
func (*DetachPortRequest) GetPortUuid ¶
func (x *DetachPortRequest) GetPortUuid() string
func (*DetachPortRequest) ProtoMessage ¶
func (*DetachPortRequest) ProtoMessage()
func (*DetachPortRequest) ProtoReflect ¶
func (x *DetachPortRequest) ProtoReflect() protoreflect.Message
func (*DetachPortRequest) Reset ¶
func (x *DetachPortRequest) Reset()
func (*DetachPortRequest) String ¶
func (x *DetachPortRequest) String() string
type DetachVolumeRequest ¶
type DetachVolumeRequest struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
HostUuid string `protobuf:"bytes,2,opt,name=host_uuid,json=hostUuid,proto3" json:"host_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*DetachVolumeRequest) Descriptor
deprecated
func (*DetachVolumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DetachVolumeRequest.ProtoReflect.Descriptor instead.
func (*DetachVolumeRequest) GetHostUuid ¶
func (x *DetachVolumeRequest) GetHostUuid() string
func (*DetachVolumeRequest) GetVolumeUuid ¶
func (x *DetachVolumeRequest) GetVolumeUuid() string
func (*DetachVolumeRequest) ProtoMessage ¶
func (*DetachVolumeRequest) ProtoMessage()
func (*DetachVolumeRequest) ProtoReflect ¶
func (x *DetachVolumeRequest) ProtoReflect() protoreflect.Message
func (*DetachVolumeRequest) Reset ¶
func (x *DetachVolumeRequest) Reset()
func (*DetachVolumeRequest) String ¶
func (x *DetachVolumeRequest) String() string
type DiskSpec ¶
type DiskSpec struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
BackingPath string `protobuf:"bytes,2,opt,name=backing_path,json=backingPath,proto3" json:"backing_path,omitempty"`
Bus string `protobuf:"bytes,3,opt,name=bus,proto3" json:"bus,omitempty"`
SizeGib int32 `protobuf:"varint,4,opt,name=size_gib,json=sizeGib,proto3" json:"size_gib,omitempty"`
ReadOnly bool `protobuf:"varint,5,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
Boot bool `protobuf:"varint,6,opt,name=boot,proto3" json:"boot,omitempty"`
// contains filtered or unexported fields
}
func (*DiskSpec) Descriptor
deprecated
func (*DiskSpec) GetBackingPath ¶
func (*DiskSpec) GetReadOnly ¶
func (*DiskSpec) GetSizeGib ¶
func (*DiskSpec) GetVolumeUuid ¶
func (*DiskSpec) ProtoMessage ¶
func (*DiskSpec) ProtoMessage()
func (*DiskSpec) ProtoReflect ¶
func (x *DiskSpec) ProtoReflect() protoreflect.Message
type EnsureNetworkRequest ¶
type EnsureNetworkRequest struct {
Spec *NetworkSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*EnsureNetworkRequest) Descriptor
deprecated
func (*EnsureNetworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnsureNetworkRequest.ProtoReflect.Descriptor instead.
func (*EnsureNetworkRequest) GetSpec ¶
func (x *EnsureNetworkRequest) GetSpec() *NetworkSpec
func (*EnsureNetworkRequest) ProtoMessage ¶
func (*EnsureNetworkRequest) ProtoMessage()
func (*EnsureNetworkRequest) ProtoReflect ¶
func (x *EnsureNetworkRequest) ProtoReflect() protoreflect.Message
func (*EnsureNetworkRequest) Reset ¶
func (x *EnsureNetworkRequest) Reset()
func (*EnsureNetworkRequest) String ¶
func (x *EnsureNetworkRequest) String() string
type EnsureVolumeRequest ¶
type EnsureVolumeRequest struct {
Spec *VolumeSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*EnsureVolumeRequest) Descriptor
deprecated
func (*EnsureVolumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnsureVolumeRequest.ProtoReflect.Descriptor instead.
func (*EnsureVolumeRequest) GetSpec ¶
func (x *EnsureVolumeRequest) GetSpec() *VolumeSpec
func (*EnsureVolumeRequest) ProtoMessage ¶
func (*EnsureVolumeRequest) ProtoMessage()
func (*EnsureVolumeRequest) ProtoReflect ¶
func (x *EnsureVolumeRequest) ProtoReflect() protoreflect.Message
func (*EnsureVolumeRequest) Reset ¶
func (x *EnsureVolumeRequest) Reset()
func (*EnsureVolumeRequest) String ¶
func (x *EnsureVolumeRequest) String() string
type HostInfo ¶
type HostInfo struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
Az string `protobuf:"bytes,3,opt,name=az,proto3" json:"az,omitempty"`
Hypervisor string `protobuf:"bytes,4,opt,name=hypervisor,proto3" json:"hypervisor,omitempty"`
Architecture string `protobuf:"bytes,5,opt,name=architecture,proto3" json:"architecture,omitempty"`
// version is the driver plugin's compile-time build version
// (e.g. "v0.6.0"). Stamped via -X main.version=... at link
// time. weft uses this to populate HostInfo.driver_versions
// (kind → version) so operators see per-driver versions on
// the TUI's Hosts detail drawer. Empty for pre-v0.5.0 drivers.
Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*HostInfo) Descriptor
deprecated
func (*HostInfo) GetArchitecture ¶
func (*HostInfo) GetHostname ¶
func (*HostInfo) GetHypervisor ¶
func (*HostInfo) GetVersion ¶ added in v0.4.2
func (*HostInfo) ProtoMessage ¶
func (*HostInfo) ProtoMessage()
func (*HostInfo) ProtoReflect ¶
func (x *HostInfo) ProtoReflect() protoreflect.Message
type HostInfoResponse ¶
type HostInfoResponse struct {
HostInfo *HostInfo `protobuf:"bytes,1,opt,name=host_info,json=hostInfo,proto3" json:"host_info,omitempty"`
// contains filtered or unexported fields
}
func (*HostInfoResponse) Descriptor
deprecated
func (*HostInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use HostInfoResponse.ProtoReflect.Descriptor instead.
func (*HostInfoResponse) GetHostInfo ¶
func (x *HostInfoResponse) GetHostInfo() *HostInfo
func (*HostInfoResponse) ProtoMessage ¶
func (*HostInfoResponse) ProtoMessage()
func (*HostInfoResponse) ProtoReflect ¶
func (x *HostInfoResponse) ProtoReflect() protoreflect.Message
func (*HostInfoResponse) Reset ¶
func (x *HostInfoResponse) Reset()
func (*HostInfoResponse) String ¶
func (x *HostInfoResponse) String() string
type HypervisorClient ¶
type HypervisorClient interface {
HostInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HostInfoResponse, error)
CreateVM(ctx context.Context, in *CreateVMRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
StartVM(ctx context.Context, in *VMUUIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
StopVM(ctx context.Context, in *VMUUIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteVM(ctx context.Context, in *VMUUIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
AttachDisk(ctx context.Context, in *AttachDiskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DetachDisk(ctx context.Context, in *DetachDiskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
AttachNIC(ctx context.Context, in *AttachNICRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DetachNIC(ctx context.Context, in *DetachNICRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
HypervisorClient is the client API for Hypervisor 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 NewHypervisorClient ¶
func NewHypervisorClient(cc grpc.ClientConnInterface) HypervisorClient
type HypervisorServer ¶
type HypervisorServer interface {
HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
CreateVM(context.Context, *CreateVMRequest) (*emptypb.Empty, error)
StartVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
StopVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
DeleteVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
AttachDisk(context.Context, *AttachDiskRequest) (*emptypb.Empty, error)
DetachDisk(context.Context, *DetachDiskRequest) (*emptypb.Empty, error)
AttachNIC(context.Context, *AttachNICRequest) (*emptypb.Empty, error)
DetachNIC(context.Context, *DetachNICRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
HypervisorServer is the server API for Hypervisor service. All implementations must embed UnimplementedHypervisorServer for forward compatibility.
type ImageClient ¶
type ImageClient interface {
HostInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HostInfoResponse, error)
Pull(ctx context.Context, in *RefRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
LocalPath(ctx context.Context, in *RefRequest, opts ...grpc.CallOption) (*LocalPathResponse, error)
Delete(ctx context.Context, in *RefRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
InCache(ctx context.Context, in *RefRequest, opts ...grpc.CallOption) (*InCacheResponse, error)
}
ImageClient is the client API for Image 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 NewImageClient ¶
func NewImageClient(cc grpc.ClientConnInterface) ImageClient
type ImageServer ¶
type ImageServer interface {
HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
Pull(context.Context, *RefRequest) (*emptypb.Empty, error)
LocalPath(context.Context, *RefRequest) (*LocalPathResponse, error)
Delete(context.Context, *RefRequest) (*emptypb.Empty, error)
InCache(context.Context, *RefRequest) (*InCacheResponse, error)
// contains filtered or unexported methods
}
ImageServer is the server API for Image service. All implementations must embed UnimplementedImageServer for forward compatibility.
type InCacheResponse ¶
type InCacheResponse struct {
InCache bool `protobuf:"varint,1,opt,name=in_cache,json=inCache,proto3" json:"in_cache,omitempty"`
// contains filtered or unexported fields
}
func (*InCacheResponse) Descriptor
deprecated
func (*InCacheResponse) Descriptor() ([]byte, []int)
Deprecated: Use InCacheResponse.ProtoReflect.Descriptor instead.
func (*InCacheResponse) GetInCache ¶
func (x *InCacheResponse) GetInCache() bool
func (*InCacheResponse) ProtoMessage ¶
func (*InCacheResponse) ProtoMessage()
func (*InCacheResponse) ProtoReflect ¶
func (x *InCacheResponse) ProtoReflect() protoreflect.Message
func (*InCacheResponse) Reset ¶
func (x *InCacheResponse) Reset()
func (*InCacheResponse) String ¶
func (x *InCacheResponse) String() string
type ListBackupsRequest ¶ added in v0.3.0
type ListBackupsRequest struct {
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
VolumeUuid string `protobuf:"bytes,2,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*ListBackupsRequest) Descriptor
deprecated
added in
v0.3.0
func (*ListBackupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBackupsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupsRequest) GetTarget ¶ added in v0.3.0
func (x *ListBackupsRequest) GetTarget() string
func (*ListBackupsRequest) GetVolumeUuid ¶ added in v0.3.0
func (x *ListBackupsRequest) GetVolumeUuid() string
func (*ListBackupsRequest) ProtoMessage ¶ added in v0.3.0
func (*ListBackupsRequest) ProtoMessage()
func (*ListBackupsRequest) ProtoReflect ¶ added in v0.3.0
func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message
func (*ListBackupsRequest) Reset ¶ added in v0.3.0
func (x *ListBackupsRequest) Reset()
func (*ListBackupsRequest) String ¶ added in v0.3.0
func (x *ListBackupsRequest) String() string
type ListBackupsResponse ¶ added in v0.3.0
type ListBackupsResponse struct {
Backups []*Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"`
// contains filtered or unexported fields
}
func (*ListBackupsResponse) Descriptor
deprecated
added in
v0.3.0
func (*ListBackupsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBackupsResponse.ProtoReflect.Descriptor instead.
func (*ListBackupsResponse) GetBackups ¶ added in v0.3.0
func (x *ListBackupsResponse) GetBackups() []*Backup
func (*ListBackupsResponse) ProtoMessage ¶ added in v0.3.0
func (*ListBackupsResponse) ProtoMessage()
func (*ListBackupsResponse) ProtoReflect ¶ added in v0.3.0
func (x *ListBackupsResponse) ProtoReflect() protoreflect.Message
func (*ListBackupsResponse) Reset ¶ added in v0.3.0
func (x *ListBackupsResponse) Reset()
func (*ListBackupsResponse) String ¶ added in v0.3.0
func (x *ListBackupsResponse) String() string
type ListSnapshotsRequest ¶ added in v0.3.0
type ListSnapshotsRequest struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*ListSnapshotsRequest) Descriptor
deprecated
added in
v0.3.0
func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsRequest.ProtoReflect.Descriptor instead.
func (*ListSnapshotsRequest) GetVolumeUuid ¶ added in v0.3.0
func (x *ListSnapshotsRequest) GetVolumeUuid() string
func (*ListSnapshotsRequest) ProtoMessage ¶ added in v0.3.0
func (*ListSnapshotsRequest) ProtoMessage()
func (*ListSnapshotsRequest) ProtoReflect ¶ added in v0.3.0
func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message
func (*ListSnapshotsRequest) Reset ¶ added in v0.3.0
func (x *ListSnapshotsRequest) Reset()
func (*ListSnapshotsRequest) String ¶ added in v0.3.0
func (x *ListSnapshotsRequest) String() string
type ListSnapshotsResponse ¶ added in v0.3.0
type ListSnapshotsResponse struct {
Snapshots []*Snapshot `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"`
// contains filtered or unexported fields
}
func (*ListSnapshotsResponse) Descriptor
deprecated
added in
v0.3.0
func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsResponse.ProtoReflect.Descriptor instead.
func (*ListSnapshotsResponse) GetSnapshots ¶ added in v0.3.0
func (x *ListSnapshotsResponse) GetSnapshots() []*Snapshot
func (*ListSnapshotsResponse) ProtoMessage ¶ added in v0.3.0
func (*ListSnapshotsResponse) ProtoMessage()
func (*ListSnapshotsResponse) ProtoReflect ¶ added in v0.3.0
func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message
func (*ListSnapshotsResponse) Reset ¶ added in v0.3.0
func (x *ListSnapshotsResponse) Reset()
func (*ListSnapshotsResponse) String ¶ added in v0.3.0
func (x *ListSnapshotsResponse) String() string
type LocalPathResponse ¶
type LocalPathResponse struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*LocalPathResponse) Descriptor
deprecated
func (*LocalPathResponse) Descriptor() ([]byte, []int)
Deprecated: Use LocalPathResponse.ProtoReflect.Descriptor instead.
func (*LocalPathResponse) GetPath ¶
func (x *LocalPathResponse) GetPath() string
func (*LocalPathResponse) ProtoMessage ¶
func (*LocalPathResponse) ProtoMessage()
func (*LocalPathResponse) ProtoReflect ¶
func (x *LocalPathResponse) ProtoReflect() protoreflect.Message
func (*LocalPathResponse) Reset ¶
func (x *LocalPathResponse) Reset()
func (*LocalPathResponse) String ¶
func (x *LocalPathResponse) String() string
type LocalResponse ¶
type LocalResponse struct {
Local bool `protobuf:"varint,1,opt,name=local,proto3" json:"local,omitempty"`
// contains filtered or unexported fields
}
func (*LocalResponse) Descriptor
deprecated
func (*LocalResponse) Descriptor() ([]byte, []int)
Deprecated: Use LocalResponse.ProtoReflect.Descriptor instead.
func (*LocalResponse) GetLocal ¶
func (x *LocalResponse) GetLocal() bool
func (*LocalResponse) ProtoMessage ¶
func (*LocalResponse) ProtoMessage()
func (*LocalResponse) ProtoReflect ¶
func (x *LocalResponse) ProtoReflect() protoreflect.Message
func (*LocalResponse) Reset ¶
func (x *LocalResponse) Reset()
func (*LocalResponse) String ¶
func (x *LocalResponse) String() string
type NICHandle ¶
type NICHandle struct {
Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
Mac string `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"`
// contains filtered or unexported fields
}
func (*NICHandle) Descriptor
deprecated
func (*NICHandle) ProtoMessage ¶
func (*NICHandle) ProtoMessage()
func (*NICHandle) ProtoReflect ¶
func (x *NICHandle) ProtoReflect() protoreflect.Message
type NameResponse ¶
type NameResponse struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*NameResponse) Descriptor
deprecated
func (*NameResponse) Descriptor() ([]byte, []int)
Deprecated: Use NameResponse.ProtoReflect.Descriptor instead.
func (*NameResponse) GetName ¶
func (x *NameResponse) GetName() string
func (*NameResponse) ProtoMessage ¶
func (*NameResponse) ProtoMessage()
func (*NameResponse) ProtoReflect ¶
func (x *NameResponse) ProtoReflect() protoreflect.Message
func (*NameResponse) Reset ¶
func (x *NameResponse) Reset()
func (*NameResponse) String ¶
func (x *NameResponse) String() string
type NetworkClient ¶
type NetworkClient interface {
HostInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HostInfoResponse, error)
EnsureNetwork(ctx context.Context, in *EnsureNetworkRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DestroyNetwork(ctx context.Context, in *DestroyNetworkRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
AttachPort(ctx context.Context, in *AttachPortRequest, opts ...grpc.CallOption) (*AttachPortResponse, error)
DetachPort(ctx context.Context, in *DetachPortRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
RotateMeshPeer(ctx context.Context, in *RotateMeshPeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
NetworkClient is the client API for Network 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 NewNetworkClient ¶
func NewNetworkClient(cc grpc.ClientConnInterface) NetworkClient
type NetworkServer ¶
type NetworkServer interface {
HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
EnsureNetwork(context.Context, *EnsureNetworkRequest) (*emptypb.Empty, error)
DestroyNetwork(context.Context, *DestroyNetworkRequest) (*emptypb.Empty, error)
AttachPort(context.Context, *AttachPortRequest) (*AttachPortResponse, error)
DetachPort(context.Context, *DetachPortRequest) (*emptypb.Empty, error)
RotateMeshPeer(context.Context, *RotateMeshPeerRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
NetworkServer is the server API for Network service. All implementations must embed UnimplementedNetworkServer for forward compatibility.
type NetworkSpec ¶
type NetworkSpec struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
ProjectUuid string `protobuf:"bytes,2,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Cidr string `protobuf:"bytes,4,opt,name=cidr,proto3" json:"cidr,omitempty"`
Gateway string `protobuf:"bytes,5,opt,name=gateway,proto3" json:"gateway,omitempty"`
DnsServers []string `protobuf:"bytes,6,rep,name=dns_servers,json=dnsServers,proto3" json:"dns_servers,omitempty"`
Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
MeshListenPort int32 `protobuf:"varint,8,opt,name=mesh_listen_port,json=meshListenPort,proto3" json:"mesh_listen_port,omitempty"`
MeshEndpoint string `protobuf:"bytes,9,opt,name=mesh_endpoint,json=meshEndpoint,proto3" json:"mesh_endpoint,omitempty"`
// contains filtered or unexported fields
}
func (*NetworkSpec) Descriptor
deprecated
func (*NetworkSpec) Descriptor() ([]byte, []int)
Deprecated: Use NetworkSpec.ProtoReflect.Descriptor instead.
func (*NetworkSpec) GetCidr ¶
func (x *NetworkSpec) GetCidr() string
func (*NetworkSpec) GetDnsServers ¶
func (x *NetworkSpec) GetDnsServers() []string
func (*NetworkSpec) GetGateway ¶
func (x *NetworkSpec) GetGateway() string
func (*NetworkSpec) GetMeshEndpoint ¶
func (x *NetworkSpec) GetMeshEndpoint() string
func (*NetworkSpec) GetMeshListenPort ¶
func (x *NetworkSpec) GetMeshListenPort() int32
func (*NetworkSpec) GetName ¶
func (x *NetworkSpec) GetName() string
func (*NetworkSpec) GetProjectUuid ¶
func (x *NetworkSpec) GetProjectUuid() string
func (*NetworkSpec) GetType ¶
func (x *NetworkSpec) GetType() string
func (*NetworkSpec) GetUuid ¶
func (x *NetworkSpec) GetUuid() string
func (*NetworkSpec) ProtoMessage ¶
func (*NetworkSpec) ProtoMessage()
func (*NetworkSpec) ProtoReflect ¶
func (x *NetworkSpec) ProtoReflect() protoreflect.Message
func (*NetworkSpec) Reset ¶
func (x *NetworkSpec) Reset()
func (*NetworkSpec) String ¶
func (x *NetworkSpec) String() string
type PortSpec ¶
type PortSpec struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
ProjectUuid string `protobuf:"bytes,2,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
VmUuid string `protobuf:"bytes,3,opt,name=vm_uuid,json=vmUuid,proto3" json:"vm_uuid,omitempty"`
NetworkUuid string `protobuf:"bytes,4,opt,name=network_uuid,json=networkUuid,proto3" json:"network_uuid,omitempty"`
Mac string `protobuf:"bytes,5,opt,name=mac,proto3" json:"mac,omitempty"`
Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"`
WireguardPubKey string `protobuf:"bytes,7,opt,name=wireguard_pub_key,json=wireguardPubKey,proto3" json:"wireguard_pub_key,omitempty"`
MeshEndpoint string `protobuf:"bytes,8,opt,name=mesh_endpoint,json=meshEndpoint,proto3" json:"mesh_endpoint,omitempty"`
EffectiveSecurityGroups []string `` /* 132-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*PortSpec) Descriptor
deprecated
func (*PortSpec) GetEffectiveSecurityGroups ¶
func (*PortSpec) GetMeshEndpoint ¶
func (*PortSpec) GetNetworkUuid ¶
func (*PortSpec) GetProjectUuid ¶
func (*PortSpec) GetWireguardPubKey ¶
func (*PortSpec) ProtoMessage ¶
func (*PortSpec) ProtoMessage()
func (*PortSpec) ProtoReflect ¶
func (x *PortSpec) ProtoReflect() protoreflect.Message
type RefRequest ¶
type RefRequest struct {
Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
// contains filtered or unexported fields
}
func (*RefRequest) Descriptor
deprecated
func (*RefRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefRequest.ProtoReflect.Descriptor instead.
func (*RefRequest) GetRef ¶
func (x *RefRequest) GetRef() string
func (*RefRequest) ProtoMessage ¶
func (*RefRequest) ProtoMessage()
func (*RefRequest) ProtoReflect ¶
func (x *RefRequest) ProtoReflect() protoreflect.Message
func (*RefRequest) Reset ¶
func (x *RefRequest) Reset()
func (*RefRequest) String ¶
func (x *RefRequest) String() string
type RestoreBackupRequest ¶ added in v0.3.0
type RestoreBackupRequest struct {
BackupUrl string `protobuf:"bytes,1,opt,name=backup_url,json=backupUrl,proto3" json:"backup_url,omitempty"`
Spec *VolumeSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*RestoreBackupRequest) Descriptor
deprecated
added in
v0.3.0
func (*RestoreBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use RestoreBackupRequest.ProtoReflect.Descriptor instead.
func (*RestoreBackupRequest) GetBackupUrl ¶ added in v0.3.0
func (x *RestoreBackupRequest) GetBackupUrl() string
func (*RestoreBackupRequest) GetSpec ¶ added in v0.3.0
func (x *RestoreBackupRequest) GetSpec() *VolumeSpec
func (*RestoreBackupRequest) ProtoMessage ¶ added in v0.3.0
func (*RestoreBackupRequest) ProtoMessage()
func (*RestoreBackupRequest) ProtoReflect ¶ added in v0.3.0
func (x *RestoreBackupRequest) ProtoReflect() protoreflect.Message
func (*RestoreBackupRequest) Reset ¶ added in v0.3.0
func (x *RestoreBackupRequest) Reset()
func (*RestoreBackupRequest) String ¶ added in v0.3.0
func (x *RestoreBackupRequest) String() string
type RevertSnapshotRequest ¶ added in v0.3.0
type RevertSnapshotRequest struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
SnapshotName string `protobuf:"bytes,2,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
// contains filtered or unexported fields
}
func (*RevertSnapshotRequest) Descriptor
deprecated
added in
v0.3.0
func (*RevertSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevertSnapshotRequest.ProtoReflect.Descriptor instead.
func (*RevertSnapshotRequest) GetSnapshotName ¶ added in v0.3.0
func (x *RevertSnapshotRequest) GetSnapshotName() string
func (*RevertSnapshotRequest) GetVolumeUuid ¶ added in v0.3.0
func (x *RevertSnapshotRequest) GetVolumeUuid() string
func (*RevertSnapshotRequest) ProtoMessage ¶ added in v0.3.0
func (*RevertSnapshotRequest) ProtoMessage()
func (*RevertSnapshotRequest) ProtoReflect ¶ added in v0.3.0
func (x *RevertSnapshotRequest) ProtoReflect() protoreflect.Message
func (*RevertSnapshotRequest) Reset ¶ added in v0.3.0
func (x *RevertSnapshotRequest) Reset()
func (*RevertSnapshotRequest) String ¶ added in v0.3.0
func (x *RevertSnapshotRequest) String() string
type RotateMeshPeerRequest ¶
type RotateMeshPeerRequest struct {
Spec *PortSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*RotateMeshPeerRequest) Descriptor
deprecated
func (*RotateMeshPeerRequest) Descriptor() ([]byte, []int)
Deprecated: Use RotateMeshPeerRequest.ProtoReflect.Descriptor instead.
func (*RotateMeshPeerRequest) GetSpec ¶
func (x *RotateMeshPeerRequest) GetSpec() *PortSpec
func (*RotateMeshPeerRequest) ProtoMessage ¶
func (*RotateMeshPeerRequest) ProtoMessage()
func (*RotateMeshPeerRequest) ProtoReflect ¶
func (x *RotateMeshPeerRequest) ProtoReflect() protoreflect.Message
func (*RotateMeshPeerRequest) Reset ¶
func (x *RotateMeshPeerRequest) Reset()
func (*RotateMeshPeerRequest) String ¶
func (x *RotateMeshPeerRequest) String() string
type Snapshot ¶ added in v0.3.0
type Snapshot struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
SizeBytes int64 `protobuf:"varint,4,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
CreatedAtUnixNs int64 `protobuf:"varint,5,opt,name=created_at_unix_ns,json=createdAtUnixNs,proto3" json:"created_at_unix_ns,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
UserCreated bool `protobuf:"varint,7,opt,name=user_created,json=userCreated,proto3" json:"user_created,omitempty"`
// contains filtered or unexported fields
}
func (*Snapshot) Descriptor
deprecated
added in
v0.3.0
func (*Snapshot) GetCreatedAtUnixNs ¶ added in v0.3.0
func (*Snapshot) GetSizeBytes ¶ added in v0.3.0
func (*Snapshot) GetUserCreated ¶ added in v0.3.0
func (*Snapshot) GetVolumeUuid ¶ added in v0.3.0
func (*Snapshot) ProtoMessage ¶ added in v0.3.0
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶ added in v0.3.0
func (x *Snapshot) ProtoReflect() protoreflect.Message
type SnapshotSpec ¶ added in v0.3.0
type SnapshotSpec struct {
VolumeUuid string `protobuf:"bytes,1,opt,name=volume_uuid,json=volumeUuid,proto3" json:"volume_uuid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*SnapshotSpec) Descriptor
deprecated
added in
v0.3.0
func (*SnapshotSpec) Descriptor() ([]byte, []int)
Deprecated: Use SnapshotSpec.ProtoReflect.Descriptor instead.
func (*SnapshotSpec) GetLabels ¶ added in v0.3.0
func (x *SnapshotSpec) GetLabels() map[string]string
func (*SnapshotSpec) GetName ¶ added in v0.3.0
func (x *SnapshotSpec) GetName() string
func (*SnapshotSpec) GetVolumeUuid ¶ added in v0.3.0
func (x *SnapshotSpec) GetVolumeUuid() string
func (*SnapshotSpec) ProtoMessage ¶ added in v0.3.0
func (*SnapshotSpec) ProtoMessage()
func (*SnapshotSpec) ProtoReflect ¶ added in v0.3.0
func (x *SnapshotSpec) ProtoReflect() protoreflect.Message
func (*SnapshotSpec) Reset ¶ added in v0.3.0
func (x *SnapshotSpec) Reset()
func (*SnapshotSpec) String ¶ added in v0.3.0
func (x *SnapshotSpec) String() string
type UnimplementedHypervisorServer ¶
type UnimplementedHypervisorServer struct{}
UnimplementedHypervisorServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedHypervisorServer) AttachDisk ¶
func (UnimplementedHypervisorServer) AttachDisk(context.Context, *AttachDiskRequest) (*emptypb.Empty, error)
func (UnimplementedHypervisorServer) AttachNIC ¶
func (UnimplementedHypervisorServer) AttachNIC(context.Context, *AttachNICRequest) (*emptypb.Empty, error)
func (UnimplementedHypervisorServer) CreateVM ¶
func (UnimplementedHypervisorServer) CreateVM(context.Context, *CreateVMRequest) (*emptypb.Empty, error)
func (UnimplementedHypervisorServer) DeleteVM ¶
func (UnimplementedHypervisorServer) DeleteVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
func (UnimplementedHypervisorServer) DetachDisk ¶
func (UnimplementedHypervisorServer) DetachDisk(context.Context, *DetachDiskRequest) (*emptypb.Empty, error)
func (UnimplementedHypervisorServer) DetachNIC ¶
func (UnimplementedHypervisorServer) DetachNIC(context.Context, *DetachNICRequest) (*emptypb.Empty, error)
func (UnimplementedHypervisorServer) HostInfo ¶
func (UnimplementedHypervisorServer) HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
func (UnimplementedHypervisorServer) StartVM ¶
func (UnimplementedHypervisorServer) StartVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
func (UnimplementedHypervisorServer) StopVM ¶
func (UnimplementedHypervisorServer) StopVM(context.Context, *VMUUIDRequest) (*emptypb.Empty, error)
type UnimplementedImageServer ¶
type UnimplementedImageServer struct{}
UnimplementedImageServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedImageServer) Delete ¶
func (UnimplementedImageServer) Delete(context.Context, *RefRequest) (*emptypb.Empty, error)
func (UnimplementedImageServer) HostInfo ¶
func (UnimplementedImageServer) HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
func (UnimplementedImageServer) InCache ¶
func (UnimplementedImageServer) InCache(context.Context, *RefRequest) (*InCacheResponse, error)
func (UnimplementedImageServer) LocalPath ¶
func (UnimplementedImageServer) LocalPath(context.Context, *RefRequest) (*LocalPathResponse, error)
func (UnimplementedImageServer) Pull ¶
func (UnimplementedImageServer) Pull(context.Context, *RefRequest) (*emptypb.Empty, error)
type UnimplementedNetworkServer ¶
type UnimplementedNetworkServer struct{}
UnimplementedNetworkServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNetworkServer) AttachPort ¶
func (UnimplementedNetworkServer) AttachPort(context.Context, *AttachPortRequest) (*AttachPortResponse, error)
func (UnimplementedNetworkServer) DestroyNetwork ¶
func (UnimplementedNetworkServer) DestroyNetwork(context.Context, *DestroyNetworkRequest) (*emptypb.Empty, error)
func (UnimplementedNetworkServer) DetachPort ¶
func (UnimplementedNetworkServer) DetachPort(context.Context, *DetachPortRequest) (*emptypb.Empty, error)
func (UnimplementedNetworkServer) EnsureNetwork ¶
func (UnimplementedNetworkServer) EnsureNetwork(context.Context, *EnsureNetworkRequest) (*emptypb.Empty, error)
func (UnimplementedNetworkServer) HostInfo ¶
func (UnimplementedNetworkServer) HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
func (UnimplementedNetworkServer) RotateMeshPeer ¶
func (UnimplementedNetworkServer) RotateMeshPeer(context.Context, *RotateMeshPeerRequest) (*emptypb.Empty, error)
type UnimplementedVolumeServer ¶
type UnimplementedVolumeServer struct{}
UnimplementedVolumeServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedVolumeServer) AttachVolume ¶
func (UnimplementedVolumeServer) AttachVolume(context.Context, *AttachVolumeRequest) (*AttachVolumeResponse, error)
func (UnimplementedVolumeServer) CreateBackup ¶ added in v0.3.0
func (UnimplementedVolumeServer) CreateBackup(context.Context, *CreateBackupRequest) (*CreateBackupResponse, error)
func (UnimplementedVolumeServer) CreateSnapshot ¶ added in v0.3.0
func (UnimplementedVolumeServer) CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
func (UnimplementedVolumeServer) DeleteBackup ¶ added in v0.3.0
func (UnimplementedVolumeServer) DeleteBackup(context.Context, *DeleteBackupRequest) (*emptypb.Empty, error)
func (UnimplementedVolumeServer) DeleteSnapshot ¶ added in v0.3.0
func (UnimplementedVolumeServer) DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*emptypb.Empty, error)
func (UnimplementedVolumeServer) DestroyVolume ¶
func (UnimplementedVolumeServer) DestroyVolume(context.Context, *DestroyVolumeRequest) (*emptypb.Empty, error)
func (UnimplementedVolumeServer) DetachVolume ¶
func (UnimplementedVolumeServer) DetachVolume(context.Context, *DetachVolumeRequest) (*emptypb.Empty, error)
func (UnimplementedVolumeServer) EnsureVolume ¶
func (UnimplementedVolumeServer) EnsureVolume(context.Context, *EnsureVolumeRequest) (*emptypb.Empty, error)
func (UnimplementedVolumeServer) HostInfo ¶
func (UnimplementedVolumeServer) HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
func (UnimplementedVolumeServer) ListBackups ¶ added in v0.3.0
func (UnimplementedVolumeServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)
func (UnimplementedVolumeServer) ListSnapshots ¶ added in v0.3.0
func (UnimplementedVolumeServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
func (UnimplementedVolumeServer) Local ¶
func (UnimplementedVolumeServer) Local(context.Context, *emptypb.Empty) (*LocalResponse, error)
func (UnimplementedVolumeServer) Name ¶
func (UnimplementedVolumeServer) Name(context.Context, *emptypb.Empty) (*NameResponse, error)
func (UnimplementedVolumeServer) RestoreBackup ¶ added in v0.3.0
func (UnimplementedVolumeServer) RestoreBackup(context.Context, *RestoreBackupRequest) (*emptypb.Empty, error)
func (UnimplementedVolumeServer) RevertSnapshot ¶ added in v0.3.0
func (UnimplementedVolumeServer) RevertSnapshot(context.Context, *RevertSnapshotRequest) (*emptypb.Empty, error)
type UnsafeHypervisorServer ¶
type UnsafeHypervisorServer interface {
// contains filtered or unexported methods
}
UnsafeHypervisorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HypervisorServer will result in compilation errors.
type UnsafeImageServer ¶
type UnsafeImageServer interface {
// contains filtered or unexported methods
}
UnsafeImageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ImageServer will result in compilation errors.
type UnsafeNetworkServer ¶
type UnsafeNetworkServer interface {
// contains filtered or unexported methods
}
UnsafeNetworkServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworkServer will result in compilation errors.
type UnsafeVolumeServer ¶
type UnsafeVolumeServer interface {
// contains filtered or unexported methods
}
UnsafeVolumeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VolumeServer will result in compilation errors.
type VMSpec ¶
type VMSpec struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
ProjectUuid string `protobuf:"bytes,2,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
CpuCount int32 `protobuf:"varint,4,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"`
MemoryMib int32 `protobuf:"varint,5,opt,name=memory_mib,json=memoryMib,proto3" json:"memory_mib,omitempty"`
BootKind string `protobuf:"bytes,6,opt,name=boot_kind,json=bootKind,proto3" json:"boot_kind,omitempty"`
BootRef string `protobuf:"bytes,7,opt,name=boot_ref,json=bootRef,proto3" json:"boot_ref,omitempty"`
Cmdline string `protobuf:"bytes,8,opt,name=cmdline,proto3" json:"cmdline,omitempty"`
// vsock_cid is the AF_VSOCK guest CID the agent allocated for
// this VM (deterministic hash of project_uuid+uuid in
// [0x10000, 0xfffefffe]). 0 = unassigned (legacy / no vsock).
// Drivers that support vsock should bind this CID on the guest's
// virtio-vsock device so GuestPodPlane.Attach's strict-when-known
// peer check sees the right CID. QEMU :
//
// -device vhost-vsock-pci,guest-cid=<vsock_cid>
//
// Apple VZ : VZVirtioSocketDevice (note: the VZ API doesn't let
// userland pick a CID directly ; treat the field as advisory and
// record the actual one the framework assigns).
VsockCid uint32 `protobuf:"varint,9,opt,name=vsock_cid,json=vsockCid,proto3" json:"vsock_cid,omitempty"`
// contains filtered or unexported fields
}
func (*VMSpec) Descriptor
deprecated
func (*VMSpec) GetBootKind ¶
func (*VMSpec) GetBootRef ¶
func (*VMSpec) GetCmdline ¶
func (*VMSpec) GetCpuCount ¶
func (*VMSpec) GetMemoryMib ¶
func (*VMSpec) GetProjectUuid ¶
func (*VMSpec) GetVsockCid ¶ added in v0.4.0
func (*VMSpec) ProtoMessage ¶
func (*VMSpec) ProtoMessage()
func (*VMSpec) ProtoReflect ¶
func (x *VMSpec) ProtoReflect() protoreflect.Message
type VMUUIDRequest ¶
type VMUUIDRequest struct {
VmUuid string `protobuf:"bytes,1,opt,name=vm_uuid,json=vmUuid,proto3" json:"vm_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*VMUUIDRequest) Descriptor
deprecated
func (*VMUUIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use VMUUIDRequest.ProtoReflect.Descriptor instead.
func (*VMUUIDRequest) GetVmUuid ¶
func (x *VMUUIDRequest) GetVmUuid() string
func (*VMUUIDRequest) ProtoMessage ¶
func (*VMUUIDRequest) ProtoMessage()
func (*VMUUIDRequest) ProtoReflect ¶
func (x *VMUUIDRequest) ProtoReflect() protoreflect.Message
func (*VMUUIDRequest) Reset ¶
func (x *VMUUIDRequest) Reset()
func (*VMUUIDRequest) String ¶
func (x *VMUUIDRequest) String() string
type VolumeClient ¶
type VolumeClient interface {
Name(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NameResponse, error)
Local(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*LocalResponse, error)
HostInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HostInfoResponse, error)
EnsureVolume(ctx context.Context, in *EnsureVolumeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DestroyVolume(ctx context.Context, in *DestroyVolumeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
AttachVolume(ctx context.Context, in *AttachVolumeRequest, opts ...grpc.CallOption) (*AttachVolumeResponse, error)
DetachVolume(ctx context.Context, in *DetachVolumeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotResponse, error)
ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error)
DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
RevertSnapshot(ctx context.Context, in *RevertSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*CreateBackupResponse, error)
ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error)
DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
RestoreBackup(ctx context.Context, in *RestoreBackupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
VolumeClient is the client API for Volume 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 NewVolumeClient ¶
func NewVolumeClient(cc grpc.ClientConnInterface) VolumeClient
type VolumeServer ¶
type VolumeServer interface {
Name(context.Context, *emptypb.Empty) (*NameResponse, error)
Local(context.Context, *emptypb.Empty) (*LocalResponse, error)
HostInfo(context.Context, *emptypb.Empty) (*HostInfoResponse, error)
EnsureVolume(context.Context, *EnsureVolumeRequest) (*emptypb.Empty, error)
DestroyVolume(context.Context, *DestroyVolumeRequest) (*emptypb.Empty, error)
AttachVolume(context.Context, *AttachVolumeRequest) (*AttachVolumeResponse, error)
DetachVolume(context.Context, *DetachVolumeRequest) (*emptypb.Empty, error)
CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*emptypb.Empty, error)
RevertSnapshot(context.Context, *RevertSnapshotRequest) (*emptypb.Empty, error)
CreateBackup(context.Context, *CreateBackupRequest) (*CreateBackupResponse, error)
ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)
DeleteBackup(context.Context, *DeleteBackupRequest) (*emptypb.Empty, error)
RestoreBackup(context.Context, *RestoreBackupRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
VolumeServer is the server API for Volume service. All implementations must embed UnimplementedVolumeServer for forward compatibility.
type VolumeSpec ¶
type VolumeSpec struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
ProjectUuid string `protobuf:"bytes,2,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
SizeGib int32 `protobuf:"varint,4,opt,name=size_gib,json=sizeGib,proto3" json:"size_gib,omitempty"`
Format string `protobuf:"bytes,5,opt,name=format,proto3" json:"format,omitempty"`
// contains filtered or unexported fields
}
func (*VolumeSpec) Descriptor
deprecated
func (*VolumeSpec) Descriptor() ([]byte, []int)
Deprecated: Use VolumeSpec.ProtoReflect.Descriptor instead.
func (*VolumeSpec) GetFormat ¶
func (x *VolumeSpec) GetFormat() string
func (*VolumeSpec) GetName ¶
func (x *VolumeSpec) GetName() string
func (*VolumeSpec) GetProjectUuid ¶
func (x *VolumeSpec) GetProjectUuid() string
func (*VolumeSpec) GetSizeGib ¶
func (x *VolumeSpec) GetSizeGib() int32
func (*VolumeSpec) GetUuid ¶
func (x *VolumeSpec) GetUuid() string
func (*VolumeSpec) ProtoMessage ¶
func (*VolumeSpec) ProtoMessage()
func (*VolumeSpec) ProtoReflect ¶
func (x *VolumeSpec) ProtoReflect() protoreflect.Message
func (*VolumeSpec) Reset ¶
func (x *VolumeSpec) Reset()
func (*VolumeSpec) String ¶
func (x *VolumeSpec) String() string