Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
dock.proto
It has these top-level messages:
CreateVolumeOpts DeleteVolumeOpts ExtendVolumeOpts CreateVolumeSnapshotOpts DeleteVolumeSnapshotOpts CreateAttachmentOpts DeleteAttachmentOpts CreateSnapshotAttachmentOpts DeleteSnapshotAttachmentOpts HostInfo VolumeData CreateReplicationOpts DeleteReplicationOpts EnableReplicationOpts DisableReplicationOpts FailoverReplicationOpts CreateVolumeGroupOpts UpdateVolumeGroupOpts DeleteVolumeGroupOpts AttachVolumeOpts DetachVolumeOpts GenericResponse
Index ¶
- func RegisterAttachDockServer(s *grpc.Server, srv AttachDockServer)
- func RegisterProvisionDockServer(s *grpc.Server, srv ProvisionDockServer)
- type AttachDockClient
- type AttachDockServer
- type AttachVolumeOpts
- func (*AttachVolumeOpts) Descriptor() ([]byte, []int)
- func (m *AttachVolumeOpts) GetAccessProtocol() string
- func (m *AttachVolumeOpts) GetConnectionData() string
- func (m *AttachVolumeOpts) GetContext() string
- func (m *AttachVolumeOpts) GetMetadata() map[string]string
- func (*AttachVolumeOpts) ProtoMessage()
- func (m *AttachVolumeOpts) Reset()
- func (m *AttachVolumeOpts) String() string
- type CreateAttachmentOpts
- func (*CreateAttachmentOpts) Descriptor() ([]byte, []int)
- func (m *CreateAttachmentOpts) GetAccessProtocol() string
- func (m *CreateAttachmentOpts) GetContext() string
- func (m *CreateAttachmentOpts) GetDoLocalAttach() bool
- func (m *CreateAttachmentOpts) GetDriverName() string
- func (m *CreateAttachmentOpts) GetHostInfo() *HostInfo
- func (m *CreateAttachmentOpts) GetId() string
- func (m *CreateAttachmentOpts) GetMetadata() map[string]string
- func (m *CreateAttachmentOpts) GetMultiPath() bool
- func (m *CreateAttachmentOpts) GetVolumeId() string
- func (*CreateAttachmentOpts) ProtoMessage()
- func (m *CreateAttachmentOpts) Reset()
- func (m *CreateAttachmentOpts) String() string
- type CreateReplicationOpts
- func (*CreateReplicationOpts) Descriptor() ([]byte, []int)
- func (m *CreateReplicationOpts) GetAvailabilityZone() string
- func (m *CreateReplicationOpts) GetContext() string
- func (m *CreateReplicationOpts) GetDescription() string
- func (m *CreateReplicationOpts) GetDockId() string
- func (m *CreateReplicationOpts) GetDriverName() string
- func (m *CreateReplicationOpts) GetId() string
- func (m *CreateReplicationOpts) GetIsPrimary() bool
- func (m *CreateReplicationOpts) GetMetadata() map[string]string
- func (m *CreateReplicationOpts) GetName() string
- func (m *CreateReplicationOpts) GetPoolId() string
- func (m *CreateReplicationOpts) GetPoolName() string
- func (m *CreateReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
- func (m *CreateReplicationOpts) GetPrimaryVolumeId() string
- func (m *CreateReplicationOpts) GetProfileId() string
- func (m *CreateReplicationOpts) GetReplicationBandwidth() int64
- func (m *CreateReplicationOpts) GetReplicationMode() string
- func (m *CreateReplicationOpts) GetReplicationPeriod() int64
- func (m *CreateReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
- func (m *CreateReplicationOpts) GetSecondaryVolumeId() string
- func (m *CreateReplicationOpts) GetVolumeDataList() []*VolumeData
- func (*CreateReplicationOpts) ProtoMessage()
- func (m *CreateReplicationOpts) Reset()
- func (m *CreateReplicationOpts) String() string
- type CreateSnapshotAttachmentOpts
- func (*CreateSnapshotAttachmentOpts) Descriptor() ([]byte, []int)
- func (m *CreateSnapshotAttachmentOpts) GetAccessProtocol() string
- func (m *CreateSnapshotAttachmentOpts) GetContext() string
- func (m *CreateSnapshotAttachmentOpts) GetDoLocalAttach() bool
- func (m *CreateSnapshotAttachmentOpts) GetDriverName() string
- func (m *CreateSnapshotAttachmentOpts) GetHostInfo() *HostInfo
- func (m *CreateSnapshotAttachmentOpts) GetId() string
- func (m *CreateSnapshotAttachmentOpts) GetMetadata() map[string]string
- func (m *CreateSnapshotAttachmentOpts) GetMultiPath() bool
- func (m *CreateSnapshotAttachmentOpts) GetSnapshotId() string
- func (*CreateSnapshotAttachmentOpts) ProtoMessage()
- func (m *CreateSnapshotAttachmentOpts) Reset()
- func (m *CreateSnapshotAttachmentOpts) String() string
- type CreateVolumeGroupOpts
- func (*CreateVolumeGroupOpts) Descriptor() ([]byte, []int)
- func (m *CreateVolumeGroupOpts) GetAddVolumes() []string
- func (m *CreateVolumeGroupOpts) GetAvailabilityZone() string
- func (m *CreateVolumeGroupOpts) GetContext() string
- func (m *CreateVolumeGroupOpts) GetDescription() string
- func (m *CreateVolumeGroupOpts) GetDriverName() string
- func (m *CreateVolumeGroupOpts) GetId() string
- func (m *CreateVolumeGroupOpts) GetName() string
- func (m *CreateVolumeGroupOpts) GetPoolId() string
- func (m *CreateVolumeGroupOpts) GetRemoveVolumes() []string
- func (*CreateVolumeGroupOpts) ProtoMessage()
- func (m *CreateVolumeGroupOpts) Reset()
- func (m *CreateVolumeGroupOpts) String() string
- type CreateVolumeOpts
- func (*CreateVolumeOpts) Descriptor() ([]byte, []int)
- func (m *CreateVolumeOpts) GetAvailabilityZone() string
- func (m *CreateVolumeOpts) GetContext() string
- func (m *CreateVolumeOpts) GetDescription() string
- func (m *CreateVolumeOpts) GetDriverName() string
- func (m *CreateVolumeOpts) GetId() string
- func (m *CreateVolumeOpts) GetMetadata() map[string]string
- func (m *CreateVolumeOpts) GetName() string
- func (m *CreateVolumeOpts) GetPoolId() string
- func (m *CreateVolumeOpts) GetPoolName() string
- func (m *CreateVolumeOpts) GetProfileId() string
- func (m *CreateVolumeOpts) GetReplicationDriverData() map[string]string
- func (m *CreateVolumeOpts) GetReplicationId() string
- func (m *CreateVolumeOpts) GetSize() int64
- func (m *CreateVolumeOpts) GetSnapshotId() string
- func (m *CreateVolumeOpts) GetSnapshotSize() int64
- func (*CreateVolumeOpts) ProtoMessage()
- func (m *CreateVolumeOpts) Reset()
- func (m *CreateVolumeOpts) String() string
- type CreateVolumeSnapshotOpts
- func (*CreateVolumeSnapshotOpts) Descriptor() ([]byte, []int)
- func (m *CreateVolumeSnapshotOpts) GetContext() string
- func (m *CreateVolumeSnapshotOpts) GetDescription() string
- func (m *CreateVolumeSnapshotOpts) GetDriverName() string
- func (m *CreateVolumeSnapshotOpts) GetId() string
- func (m *CreateVolumeSnapshotOpts) GetMetadata() map[string]string
- func (m *CreateVolumeSnapshotOpts) GetName() string
- func (m *CreateVolumeSnapshotOpts) GetSize() int64
- func (m *CreateVolumeSnapshotOpts) GetVolumeId() string
- func (*CreateVolumeSnapshotOpts) ProtoMessage()
- func (m *CreateVolumeSnapshotOpts) Reset()
- func (m *CreateVolumeSnapshotOpts) String() string
- type DeleteAttachmentOpts
- func (*DeleteAttachmentOpts) Descriptor() ([]byte, []int)
- func (m *DeleteAttachmentOpts) GetAccessProtocol() string
- func (m *DeleteAttachmentOpts) GetContext() string
- func (m *DeleteAttachmentOpts) GetDriverName() string
- func (m *DeleteAttachmentOpts) GetHostInfo() *HostInfo
- func (m *DeleteAttachmentOpts) GetId() string
- func (m *DeleteAttachmentOpts) GetMetadata() map[string]string
- func (m *DeleteAttachmentOpts) GetVolumeId() string
- func (*DeleteAttachmentOpts) ProtoMessage()
- func (m *DeleteAttachmentOpts) Reset()
- func (m *DeleteAttachmentOpts) String() string
- type DeleteReplicationOpts
- func (*DeleteReplicationOpts) Descriptor() ([]byte, []int)
- func (m *DeleteReplicationOpts) GetAvailabilityZone() string
- func (m *DeleteReplicationOpts) GetContext() string
- func (m *DeleteReplicationOpts) GetDescription() string
- func (m *DeleteReplicationOpts) GetDockId() string
- func (m *DeleteReplicationOpts) GetDriverName() string
- func (m *DeleteReplicationOpts) GetId() string
- func (m *DeleteReplicationOpts) GetIsPrimary() bool
- func (m *DeleteReplicationOpts) GetMetadata() map[string]string
- func (m *DeleteReplicationOpts) GetName() string
- func (m *DeleteReplicationOpts) GetPoolId() string
- func (m *DeleteReplicationOpts) GetPoolName() string
- func (m *DeleteReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
- func (m *DeleteReplicationOpts) GetPrimaryVolumeId() string
- func (m *DeleteReplicationOpts) GetProfileId() string
- func (m *DeleteReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
- func (m *DeleteReplicationOpts) GetSecondaryVolumeId() string
- func (*DeleteReplicationOpts) ProtoMessage()
- func (m *DeleteReplicationOpts) Reset()
- func (m *DeleteReplicationOpts) String() string
- type DeleteSnapshotAttachmentOpts
- func (*DeleteSnapshotAttachmentOpts) Descriptor() ([]byte, []int)
- func (m *DeleteSnapshotAttachmentOpts) GetAccessProtocol() string
- func (m *DeleteSnapshotAttachmentOpts) GetContext() string
- func (m *DeleteSnapshotAttachmentOpts) GetDriverName() string
- func (m *DeleteSnapshotAttachmentOpts) GetHostInfo() *HostInfo
- func (m *DeleteSnapshotAttachmentOpts) GetId() string
- func (m *DeleteSnapshotAttachmentOpts) GetMetadata() map[string]string
- func (m *DeleteSnapshotAttachmentOpts) GetSnapshotId() string
- func (*DeleteSnapshotAttachmentOpts) ProtoMessage()
- func (m *DeleteSnapshotAttachmentOpts) Reset()
- func (m *DeleteSnapshotAttachmentOpts) String() string
- type DeleteVolumeGroupOpts
- func (*DeleteVolumeGroupOpts) Descriptor() ([]byte, []int)
- func (m *DeleteVolumeGroupOpts) GetContext() string
- func (m *DeleteVolumeGroupOpts) GetDriverName() string
- func (m *DeleteVolumeGroupOpts) GetId() string
- func (*DeleteVolumeGroupOpts) ProtoMessage()
- func (m *DeleteVolumeGroupOpts) Reset()
- func (m *DeleteVolumeGroupOpts) String() string
- type DeleteVolumeOpts
- func (*DeleteVolumeOpts) Descriptor() ([]byte, []int)
- func (m *DeleteVolumeOpts) GetContext() string
- func (m *DeleteVolumeOpts) GetDriverName() string
- func (m *DeleteVolumeOpts) GetId() string
- func (m *DeleteVolumeOpts) GetMetadata() map[string]string
- func (*DeleteVolumeOpts) ProtoMessage()
- func (m *DeleteVolumeOpts) Reset()
- func (m *DeleteVolumeOpts) String() string
- type DeleteVolumeSnapshotOpts
- func (*DeleteVolumeSnapshotOpts) Descriptor() ([]byte, []int)
- func (m *DeleteVolumeSnapshotOpts) GetContext() string
- func (m *DeleteVolumeSnapshotOpts) GetDriverName() string
- func (m *DeleteVolumeSnapshotOpts) GetId() string
- func (m *DeleteVolumeSnapshotOpts) GetMetadata() map[string]string
- func (m *DeleteVolumeSnapshotOpts) GetVolumeId() string
- func (*DeleteVolumeSnapshotOpts) ProtoMessage()
- func (m *DeleteVolumeSnapshotOpts) Reset()
- func (m *DeleteVolumeSnapshotOpts) String() string
- type DetachVolumeOpts
- func (*DetachVolumeOpts) Descriptor() ([]byte, []int)
- func (m *DetachVolumeOpts) GetAccessProtocol() string
- func (m *DetachVolumeOpts) GetConnectionData() string
- func (m *DetachVolumeOpts) GetContext() string
- func (m *DetachVolumeOpts) GetMetadata() map[string]string
- func (*DetachVolumeOpts) ProtoMessage()
- func (m *DetachVolumeOpts) Reset()
- func (m *DetachVolumeOpts) String() string
- type DisableReplicationOpts
- func (*DisableReplicationOpts) Descriptor() ([]byte, []int)
- func (m *DisableReplicationOpts) GetAvailabilityZone() string
- func (m *DisableReplicationOpts) GetContext() string
- func (m *DisableReplicationOpts) GetDescription() string
- func (m *DisableReplicationOpts) GetDockId() string
- func (m *DisableReplicationOpts) GetDriverName() string
- func (m *DisableReplicationOpts) GetId() string
- func (m *DisableReplicationOpts) GetIsPrimary() bool
- func (m *DisableReplicationOpts) GetMetadata() map[string]string
- func (m *DisableReplicationOpts) GetName() string
- func (m *DisableReplicationOpts) GetPoolId() string
- func (m *DisableReplicationOpts) GetPoolName() string
- func (m *DisableReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
- func (m *DisableReplicationOpts) GetPrimaryVolumeId() string
- func (m *DisableReplicationOpts) GetProfileId() string
- func (m *DisableReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
- func (m *DisableReplicationOpts) GetSecondaryVolumeId() string
- func (*DisableReplicationOpts) ProtoMessage()
- func (m *DisableReplicationOpts) Reset()
- func (m *DisableReplicationOpts) String() string
- type EnableReplicationOpts
- func (*EnableReplicationOpts) Descriptor() ([]byte, []int)
- func (m *EnableReplicationOpts) GetAvailabilityZone() string
- func (m *EnableReplicationOpts) GetContext() string
- func (m *EnableReplicationOpts) GetDescription() string
- func (m *EnableReplicationOpts) GetDockId() string
- func (m *EnableReplicationOpts) GetDriverName() string
- func (m *EnableReplicationOpts) GetId() string
- func (m *EnableReplicationOpts) GetIsPrimary() bool
- func (m *EnableReplicationOpts) GetMetadata() map[string]string
- func (m *EnableReplicationOpts) GetName() string
- func (m *EnableReplicationOpts) GetPoolId() string
- func (m *EnableReplicationOpts) GetPoolName() string
- func (m *EnableReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
- func (m *EnableReplicationOpts) GetPrimaryVolumeId() string
- func (m *EnableReplicationOpts) GetProfileId() string
- func (m *EnableReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
- func (m *EnableReplicationOpts) GetSecondaryVolumeId() string
- func (*EnableReplicationOpts) ProtoMessage()
- func (m *EnableReplicationOpts) Reset()
- func (m *EnableReplicationOpts) String() string
- type ExtendVolumeOpts
- func (*ExtendVolumeOpts) Descriptor() ([]byte, []int)
- func (m *ExtendVolumeOpts) GetAvailabilityZone() string
- func (m *ExtendVolumeOpts) GetContext() string
- func (m *ExtendVolumeOpts) GetDescription() string
- func (m *ExtendVolumeOpts) GetDriverName() string
- func (m *ExtendVolumeOpts) GetId() string
- func (m *ExtendVolumeOpts) GetMetadata() map[string]string
- func (m *ExtendVolumeOpts) GetName() string
- func (m *ExtendVolumeOpts) GetPoolId() string
- func (m *ExtendVolumeOpts) GetPoolName() string
- func (m *ExtendVolumeOpts) GetProfileId() string
- func (m *ExtendVolumeOpts) GetSize() int64
- func (m *ExtendVolumeOpts) GetSnapshotId() string
- func (*ExtendVolumeOpts) ProtoMessage()
- func (m *ExtendVolumeOpts) Reset()
- func (m *ExtendVolumeOpts) String() string
- type FailoverReplicationOpts
- func (*FailoverReplicationOpts) Descriptor() ([]byte, []int)
- func (m *FailoverReplicationOpts) GetAllowAttachedVolume() bool
- func (m *FailoverReplicationOpts) GetAvailabilityZone() string
- func (m *FailoverReplicationOpts) GetContext() string
- func (m *FailoverReplicationOpts) GetDescription() string
- func (m *FailoverReplicationOpts) GetDockId() string
- func (m *FailoverReplicationOpts) GetDriverName() string
- func (m *FailoverReplicationOpts) GetId() string
- func (m *FailoverReplicationOpts) GetIsPrimary() bool
- func (m *FailoverReplicationOpts) GetMetadata() map[string]string
- func (m *FailoverReplicationOpts) GetName() string
- func (m *FailoverReplicationOpts) GetPoolId() string
- func (m *FailoverReplicationOpts) GetPoolName() string
- func (m *FailoverReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
- func (m *FailoverReplicationOpts) GetPrimaryVolumeId() string
- func (m *FailoverReplicationOpts) GetProfileId() string
- func (m *FailoverReplicationOpts) GetSecondaryBackendId() string
- func (m *FailoverReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
- func (m *FailoverReplicationOpts) GetSecondaryVolumeId() string
- func (*FailoverReplicationOpts) ProtoMessage()
- func (m *FailoverReplicationOpts) Reset()
- func (m *FailoverReplicationOpts) String() string
- type GenericResponse
- func (*GenericResponse) Descriptor() ([]byte, []int)
- func (m *GenericResponse) GetError() *GenericResponse_Error
- func (m *GenericResponse) GetReply() isGenericResponse_Reply
- func (m *GenericResponse) GetResult() *GenericResponse_Result
- func (*GenericResponse) ProtoMessage()
- func (m *GenericResponse) Reset()
- func (m *GenericResponse) String() string
- func (*GenericResponse) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type GenericResponse_Error
- type GenericResponse_Error_
- type GenericResponse_Result
- type GenericResponse_Result_
- type HostInfo
- func (*HostInfo) Descriptor() ([]byte, []int)
- func (m *HostInfo) GetHost() string
- func (m *HostInfo) GetInitiator() string
- func (m *HostInfo) GetIp() string
- func (m *HostInfo) GetOsType() string
- func (m *HostInfo) GetPlatform() string
- func (*HostInfo) ProtoMessage()
- func (m *HostInfo) Reset()
- func (m *HostInfo) String() string
- type ProvisionDockClient
- type ProvisionDockServer
- type UpdateVolumeGroupOpts
- func (*UpdateVolumeGroupOpts) Descriptor() ([]byte, []int)
- func (m *UpdateVolumeGroupOpts) GetAddVolumes() []string
- func (m *UpdateVolumeGroupOpts) GetContext() string
- func (m *UpdateVolumeGroupOpts) GetDriverName() string
- func (m *UpdateVolumeGroupOpts) GetId() string
- func (m *UpdateVolumeGroupOpts) GetRemoveVolumes() []string
- func (*UpdateVolumeGroupOpts) ProtoMessage()
- func (m *UpdateVolumeGroupOpts) Reset()
- func (m *UpdateVolumeGroupOpts) String() string
- type VolumeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAttachDockServer ¶ added in v0.1.7
func RegisterAttachDockServer(s *grpc.Server, srv AttachDockServer)
func RegisterProvisionDockServer ¶ added in v0.1.7
func RegisterProvisionDockServer(s *grpc.Server, srv ProvisionDockServer)
Types ¶
type AttachDockClient ¶ added in v0.1.7
type AttachDockClient interface { // Attach a volume AttachVolume(ctx context.Context, in *AttachVolumeOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Detach a volume DetachVolume(ctx context.Context, in *DetachVolumeOpts, opts ...grpc.CallOption) (*GenericResponse, error) }
func NewAttachDockClient ¶ added in v0.1.7
func NewAttachDockClient(cc *grpc.ClientConn) AttachDockClient
type AttachDockServer ¶ added in v0.1.7
type AttachDockServer interface { // Attach a volume AttachVolume(context.Context, *AttachVolumeOpts) (*GenericResponse, error) // Detach a volume DetachVolume(context.Context, *DetachVolumeOpts) (*GenericResponse, error) }
type AttachVolumeOpts ¶ added in v0.1.7
type AttachVolumeOpts struct { // The access protocol for attaching a volume. AccessProtocol string `protobuf:"bytes,1,opt,name=accessProtocol" json:"accessProtocol,omitempty"` // The connectionData for attaching a volume. ConnectionData string `protobuf:"bytes,2,opt,name=connectionData" json:"connectionData,omitempty"` // The metadata for attaching a volume, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The Context Context string `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"` }
AttachVolumeOpts is a structure which indicates all required properties for attaching a volume.
func (*AttachVolumeOpts) Descriptor ¶ added in v0.1.7
func (*AttachVolumeOpts) Descriptor() ([]byte, []int)
func (*AttachVolumeOpts) GetAccessProtocol ¶ added in v0.1.7
func (m *AttachVolumeOpts) GetAccessProtocol() string
func (*AttachVolumeOpts) GetConnectionData ¶ added in v0.1.7
func (m *AttachVolumeOpts) GetConnectionData() string
func (*AttachVolumeOpts) GetContext ¶ added in v0.1.7
func (m *AttachVolumeOpts) GetContext() string
func (*AttachVolumeOpts) GetMetadata ¶ added in v0.1.7
func (m *AttachVolumeOpts) GetMetadata() map[string]string
func (*AttachVolumeOpts) ProtoMessage ¶ added in v0.1.7
func (*AttachVolumeOpts) ProtoMessage()
func (*AttachVolumeOpts) Reset ¶ added in v0.1.7
func (m *AttachVolumeOpts) Reset()
func (*AttachVolumeOpts) String ¶ added in v0.1.7
func (m *AttachVolumeOpts) String() string
type CreateAttachmentOpts ¶
type CreateAttachmentOpts struct { // The uuid of the volume attachment, optional. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The uuid of the volume, required. VolumeId string `protobuf:"bytes,2,opt,name=volumeId" json:"volumeId,omitempty"` // This field indicates if the volume is attached locally, optional. DoLocalAttach bool `protobuf:"varint,3,opt,name=doLocalAttach" json:"doLocalAttach,omitempty"` // This field indicates if the volume is attached multiple times, optional. MultiPath bool `protobuf:"varint,4,opt,name=multiPath" json:"multiPath,omitempty"` // The infomation of the host node on which the volume will be attached. HostInfo *HostInfo `protobuf:"bytes,5,opt,name=hostInfo" json:"hostInfo,omitempty"` // The metadata of the volume attachment, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,7,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,8,opt,name=context" json:"context,omitempty"` // The protocol AccessProtocol string `protobuf:"bytes,9,opt,name=AccessProtocol" json:"AccessProtocol,omitempty"` }
CreateAttachmentOpts is a structure which indicates all required properties for creating a volume attachment.
func (*CreateAttachmentOpts) Descriptor ¶
func (*CreateAttachmentOpts) Descriptor() ([]byte, []int)
func (*CreateAttachmentOpts) GetAccessProtocol ¶ added in v0.1.9
func (m *CreateAttachmentOpts) GetAccessProtocol() string
func (*CreateAttachmentOpts) GetContext ¶ added in v0.1.4
func (m *CreateAttachmentOpts) GetContext() string
func (*CreateAttachmentOpts) GetDoLocalAttach ¶
func (m *CreateAttachmentOpts) GetDoLocalAttach() bool
func (*CreateAttachmentOpts) GetDriverName ¶
func (m *CreateAttachmentOpts) GetDriverName() string
func (*CreateAttachmentOpts) GetHostInfo ¶
func (m *CreateAttachmentOpts) GetHostInfo() *HostInfo
func (*CreateAttachmentOpts) GetId ¶
func (m *CreateAttachmentOpts) GetId() string
func (*CreateAttachmentOpts) GetMetadata ¶
func (m *CreateAttachmentOpts) GetMetadata() map[string]string
func (*CreateAttachmentOpts) GetMultiPath ¶
func (m *CreateAttachmentOpts) GetMultiPath() bool
func (*CreateAttachmentOpts) GetVolumeId ¶
func (m *CreateAttachmentOpts) GetVolumeId() string
func (*CreateAttachmentOpts) ProtoMessage ¶
func (*CreateAttachmentOpts) ProtoMessage()
func (*CreateAttachmentOpts) Reset ¶
func (m *CreateAttachmentOpts) Reset()
func (*CreateAttachmentOpts) String ¶
func (m *CreateAttachmentOpts) String() string
type CreateReplicationOpts ¶ added in v0.1.8
type CreateReplicationOpts struct { // The uuid of the replication, optional when creating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the replication, optional. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The description of the replication, optional. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` // The uuid of the primary volume. This field is required. PrimaryVolumeId string `protobuf:"bytes,4,opt,name=primaryVolumeId" json:"primaryVolumeId,omitempty"` // The uuid of the secondary volume. This field is required. SecondaryVolumeId string `protobuf:"bytes,5,opt,name=secondaryVolumeId" json:"secondaryVolumeId,omitempty"` // The dock infomation on which the request will be executed AvailabilityZone string `protobuf:"bytes,6,opt,name=availabilityZone" json:"availabilityZone,omitempty"` // The service level that volume belongs to, required. ProfileId string `protobuf:"bytes,7,opt,name=profileId" json:"profileId,omitempty"` // The uuid of the pool on which volume will be created, required. PoolId string `protobuf:"bytes,8,opt,name=poolId" json:"poolId,omitempty"` // The name of the pool on which volume will be created, required. PoolName string `protobuf:"bytes,9,opt,name=poolName" json:"poolName,omitempty"` // The metadata of the primary replication, optional. PrimaryReplicationDriverData map[string]string `` /* 177-byte string literal not displayed */ // The metadata of the seondary replication, optional. SecondaryReplicationDriverData map[string]string `` /* 181-byte string literal not displayed */ // The dock id. DockId string `protobuf:"bytes,13,opt,name=dockId" json:"dockId,omitempty"` // The replication driver type. DriverName string `protobuf:"bytes,14,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,15,opt,name=context" json:"context,omitempty"` // Whether is primary replication IsPrimary bool `protobuf:"varint,16,opt,name=isPrimary" json:"isPrimary,omitempty"` // The replication metadata Metadata map[string]string `` /* 137-byte string literal not displayed */ // The volume data list VolumeDataList []*VolumeData `protobuf:"bytes,18,rep,name=volumeDataList" json:"volumeDataList,omitempty"` // the replication mode sync/async ReplicationMode string `protobuf:"bytes,19,opt,name=replicationMode" json:"replicationMode,omitempty"` // 0 means sync replication. ReplicationPeriod int64 `protobuf:"varint,20,opt,name=ReplicationPeriod" json:"ReplicationPeriod,omitempty"` // replication bandwidth ReplicationBandwidth int64 `protobuf:"varint,21,opt,name=ReplicationBandwidth" json:"ReplicationBandwidth,omitempty"` }
CreateReplicationOpts is a structure which indicates all required properties for creating a replication. NOTE: Need to figure out how to handle more than 2 sites.
func (*CreateReplicationOpts) Descriptor ¶ added in v0.1.8
func (*CreateReplicationOpts) Descriptor() ([]byte, []int)
func (*CreateReplicationOpts) GetAvailabilityZone ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetAvailabilityZone() string
func (*CreateReplicationOpts) GetContext ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetContext() string
func (*CreateReplicationOpts) GetDescription ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetDescription() string
func (*CreateReplicationOpts) GetDockId ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetDockId() string
func (*CreateReplicationOpts) GetDriverName ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetDriverName() string
func (*CreateReplicationOpts) GetId ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetId() string
func (*CreateReplicationOpts) GetIsPrimary ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetIsPrimary() bool
func (*CreateReplicationOpts) GetMetadata ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetMetadata() map[string]string
func (*CreateReplicationOpts) GetName ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetName() string
func (*CreateReplicationOpts) GetPoolId ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetPoolId() string
func (*CreateReplicationOpts) GetPoolName ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetPoolName() string
func (*CreateReplicationOpts) GetPrimaryReplicationDriverData ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
func (*CreateReplicationOpts) GetPrimaryVolumeId ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetPrimaryVolumeId() string
func (*CreateReplicationOpts) GetProfileId ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetProfileId() string
func (*CreateReplicationOpts) GetReplicationBandwidth ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetReplicationBandwidth() int64
func (*CreateReplicationOpts) GetReplicationMode ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetReplicationMode() string
func (*CreateReplicationOpts) GetReplicationPeriod ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetReplicationPeriod() int64
func (*CreateReplicationOpts) GetSecondaryReplicationDriverData ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
func (*CreateReplicationOpts) GetSecondaryVolumeId ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetSecondaryVolumeId() string
func (*CreateReplicationOpts) GetVolumeDataList ¶ added in v0.1.8
func (m *CreateReplicationOpts) GetVolumeDataList() []*VolumeData
func (*CreateReplicationOpts) ProtoMessage ¶ added in v0.1.8
func (*CreateReplicationOpts) ProtoMessage()
func (*CreateReplicationOpts) Reset ¶ added in v0.1.8
func (m *CreateReplicationOpts) Reset()
func (*CreateReplicationOpts) String ¶ added in v0.1.8
func (m *CreateReplicationOpts) String() string
type CreateSnapshotAttachmentOpts ¶ added in v0.3.2
type CreateSnapshotAttachmentOpts struct { // The uuid of the snapshot attachment, optional. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The uuid of the snapshot, required. SnapshotId string `protobuf:"bytes,2,opt,name=snapshotId" json:"snapshotId,omitempty"` // This field indicates if the snapshot is attached locally, optional. DoLocalAttach bool `protobuf:"varint,3,opt,name=doLocalAttach" json:"doLocalAttach,omitempty"` // This field indicates if the snapshot is attached multiple times, optional. MultiPath bool `protobuf:"varint,4,opt,name=multiPath" json:"multiPath,omitempty"` // The infomation of the host node on which the snapshot will be attached. HostInfo *HostInfo `protobuf:"bytes,5,opt,name=hostInfo" json:"hostInfo,omitempty"` // The metadata of the snapshot attachment, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,7,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,8,opt,name=context" json:"context,omitempty"` // The protocol AccessProtocol string `protobuf:"bytes,9,opt,name=AccessProtocol" json:"AccessProtocol,omitempty"` }
CreateSnapshotAttachmentOpts is a structure which indicates all required properties for creating a snapshot attachment.
func (*CreateSnapshotAttachmentOpts) Descriptor ¶ added in v0.3.2
func (*CreateSnapshotAttachmentOpts) Descriptor() ([]byte, []int)
func (*CreateSnapshotAttachmentOpts) GetAccessProtocol ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetAccessProtocol() string
func (*CreateSnapshotAttachmentOpts) GetContext ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetContext() string
func (*CreateSnapshotAttachmentOpts) GetDoLocalAttach ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetDoLocalAttach() bool
func (*CreateSnapshotAttachmentOpts) GetDriverName ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetDriverName() string
func (*CreateSnapshotAttachmentOpts) GetHostInfo ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetHostInfo() *HostInfo
func (*CreateSnapshotAttachmentOpts) GetId ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetId() string
func (*CreateSnapshotAttachmentOpts) GetMetadata ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetMetadata() map[string]string
func (*CreateSnapshotAttachmentOpts) GetMultiPath ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetMultiPath() bool
func (*CreateSnapshotAttachmentOpts) GetSnapshotId ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) GetSnapshotId() string
func (*CreateSnapshotAttachmentOpts) ProtoMessage ¶ added in v0.3.2
func (*CreateSnapshotAttachmentOpts) ProtoMessage()
func (*CreateSnapshotAttachmentOpts) Reset ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) Reset()
func (*CreateSnapshotAttachmentOpts) String ¶ added in v0.3.2
func (m *CreateSnapshotAttachmentOpts) String() string
type CreateVolumeGroupOpts ¶ added in v0.1.8
type CreateVolumeGroupOpts struct { // The uuid of the volume group, optional when creating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the volume, required. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The driver of the volume group. DriverName string `protobuf:"bytes,3,opt,name=driverName" json:"driverName,omitempty"` // The description of the volume, optional. Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` // When create volume from snapshot, this field is required. AvailabilityZone string `protobuf:"bytes,5,opt,name=availabilityZone" json:"availabilityZone,omitempty"` // The addVolumes contain UUIDs of volumes to be added to the group. AddVolumes []string `protobuf:"bytes,6,rep,name=addVolumes" json:"addVolumes,omitempty"` // The removeVolumes contains the volumes to be removed from the group. RemoveVolumes []string `protobuf:"bytes,7,rep,name=removeVolumes" json:"removeVolumes,omitempty"` // The pool belongs to the group. PoolId string `protobuf:"bytes,8,opt,name=poolId" json:"poolId,omitempty"` // The Context Context string `protobuf:"bytes,9,opt,name=context" json:"context,omitempty"` }
CreateVolumeGroupOpts is a structure which indicates all required properties for creating a volume group.
func (*CreateVolumeGroupOpts) Descriptor ¶ added in v0.1.8
func (*CreateVolumeGroupOpts) Descriptor() ([]byte, []int)
func (*CreateVolumeGroupOpts) GetAddVolumes ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetAddVolumes() []string
func (*CreateVolumeGroupOpts) GetAvailabilityZone ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetAvailabilityZone() string
func (*CreateVolumeGroupOpts) GetContext ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetContext() string
func (*CreateVolumeGroupOpts) GetDescription ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetDescription() string
func (*CreateVolumeGroupOpts) GetDriverName ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetDriverName() string
func (*CreateVolumeGroupOpts) GetId ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetId() string
func (*CreateVolumeGroupOpts) GetName ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetName() string
func (*CreateVolumeGroupOpts) GetPoolId ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetPoolId() string
func (*CreateVolumeGroupOpts) GetRemoveVolumes ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) GetRemoveVolumes() []string
func (*CreateVolumeGroupOpts) ProtoMessage ¶ added in v0.1.8
func (*CreateVolumeGroupOpts) ProtoMessage()
func (*CreateVolumeGroupOpts) Reset ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) Reset()
func (*CreateVolumeGroupOpts) String ¶ added in v0.1.8
func (m *CreateVolumeGroupOpts) String() string
type CreateVolumeOpts ¶
type CreateVolumeOpts struct { // The uuid of the volume, optional when creating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the volume, required. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The requested capacity of the volume, required. Size int64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` // The description of the volume, optional. Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` // When create volume from snapshot, this field is required. SnapshotId string `protobuf:"bytes,5,opt,name=snapshotId" json:"snapshotId,omitempty"` // The locality that volume belongs to, required. AvailabilityZone string `protobuf:"bytes,6,opt,name=availabilityZone" json:"availabilityZone,omitempty"` // The service level that volume belongs to, required. ProfileId string `protobuf:"bytes,7,opt,name=profileId" json:"profileId,omitempty"` // The uuid of the pool on which volume will be created, required. PoolId string `protobuf:"bytes,8,opt,name=poolId" json:"poolId,omitempty"` // The name of the pool on which volume will be created, required. PoolName string `protobuf:"bytes,9,opt,name=poolName" json:"poolName,omitempty"` // The metadata of the volume, optional. Metadata map[string]string `` /* 137-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,11,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,12,opt,name=context" json:"context,omitempty"` // The replication driver data ReplicationDriverData map[string]string `` /* 163-byte string literal not displayed */ // The uuid of replication ReplicationId string `protobuf:"bytes,14,opt,name=replicationId" json:"replicationId,omitempty"` // The size of snapshot SnapshotSize int64 `protobuf:"varint,15,opt,name=snapshotSize" json:"snapshotSize,omitempty"` }
CreateVolumeOpts is a structure which indicates all required properties for creating a volume.
func (*CreateVolumeOpts) Descriptor ¶
func (*CreateVolumeOpts) Descriptor() ([]byte, []int)
func (*CreateVolumeOpts) GetAvailabilityZone ¶
func (m *CreateVolumeOpts) GetAvailabilityZone() string
func (*CreateVolumeOpts) GetContext ¶ added in v0.1.4
func (m *CreateVolumeOpts) GetContext() string
func (*CreateVolumeOpts) GetDescription ¶
func (m *CreateVolumeOpts) GetDescription() string
func (*CreateVolumeOpts) GetDriverName ¶
func (m *CreateVolumeOpts) GetDriverName() string
func (*CreateVolumeOpts) GetId ¶
func (m *CreateVolumeOpts) GetId() string
func (*CreateVolumeOpts) GetMetadata ¶
func (m *CreateVolumeOpts) GetMetadata() map[string]string
func (*CreateVolumeOpts) GetName ¶
func (m *CreateVolumeOpts) GetName() string
func (*CreateVolumeOpts) GetPoolId ¶
func (m *CreateVolumeOpts) GetPoolId() string
func (*CreateVolumeOpts) GetPoolName ¶
func (m *CreateVolumeOpts) GetPoolName() string
func (*CreateVolumeOpts) GetProfileId ¶
func (m *CreateVolumeOpts) GetProfileId() string
func (*CreateVolumeOpts) GetReplicationDriverData ¶ added in v0.1.8
func (m *CreateVolumeOpts) GetReplicationDriverData() map[string]string
func (*CreateVolumeOpts) GetReplicationId ¶ added in v0.1.8
func (m *CreateVolumeOpts) GetReplicationId() string
func (*CreateVolumeOpts) GetSize ¶
func (m *CreateVolumeOpts) GetSize() int64
func (*CreateVolumeOpts) GetSnapshotId ¶
func (m *CreateVolumeOpts) GetSnapshotId() string
func (*CreateVolumeOpts) GetSnapshotSize ¶ added in v0.1.10
func (m *CreateVolumeOpts) GetSnapshotSize() int64
func (*CreateVolumeOpts) ProtoMessage ¶
func (*CreateVolumeOpts) ProtoMessage()
func (*CreateVolumeOpts) Reset ¶
func (m *CreateVolumeOpts) Reset()
func (*CreateVolumeOpts) String ¶
func (m *CreateVolumeOpts) String() string
type CreateVolumeSnapshotOpts ¶
type CreateVolumeSnapshotOpts struct { // The uuid of the volume snapshot, optional. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the volume snapshot, required. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The size of the volume that snapshot belongs to, required. Size int64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` // The description of the volume snapshot, optional. Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` // The uuid of the volume that snapshot belongs to, required. VolumeId string `protobuf:"bytes,5,opt,name=volumeId" json:"volumeId,omitempty"` // The metadata of the volume snapshot, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,7,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,8,opt,name=context" json:"context,omitempty"` }
CreateVolumeSnapshotOpts is a structure which indicates all required properties for creating a volume snapshot.
func (*CreateVolumeSnapshotOpts) Descriptor ¶
func (*CreateVolumeSnapshotOpts) Descriptor() ([]byte, []int)
func (*CreateVolumeSnapshotOpts) GetContext ¶ added in v0.1.4
func (m *CreateVolumeSnapshotOpts) GetContext() string
func (*CreateVolumeSnapshotOpts) GetDescription ¶
func (m *CreateVolumeSnapshotOpts) GetDescription() string
func (*CreateVolumeSnapshotOpts) GetDriverName ¶
func (m *CreateVolumeSnapshotOpts) GetDriverName() string
func (*CreateVolumeSnapshotOpts) GetId ¶
func (m *CreateVolumeSnapshotOpts) GetId() string
func (*CreateVolumeSnapshotOpts) GetMetadata ¶
func (m *CreateVolumeSnapshotOpts) GetMetadata() map[string]string
func (*CreateVolumeSnapshotOpts) GetName ¶
func (m *CreateVolumeSnapshotOpts) GetName() string
func (*CreateVolumeSnapshotOpts) GetSize ¶
func (m *CreateVolumeSnapshotOpts) GetSize() int64
func (*CreateVolumeSnapshotOpts) GetVolumeId ¶
func (m *CreateVolumeSnapshotOpts) GetVolumeId() string
func (*CreateVolumeSnapshotOpts) ProtoMessage ¶
func (*CreateVolumeSnapshotOpts) ProtoMessage()
func (*CreateVolumeSnapshotOpts) Reset ¶
func (m *CreateVolumeSnapshotOpts) Reset()
func (*CreateVolumeSnapshotOpts) String ¶
func (m *CreateVolumeSnapshotOpts) String() string
type DeleteAttachmentOpts ¶
type DeleteAttachmentOpts struct { // The uuid of the volume attachment, optional. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The uuid of the volume, required. VolumeId string `protobuf:"bytes,2,opt,name=volumeId" json:"volumeId,omitempty"` // The infomation of the host node on which the volume will be attached. HostInfo *HostInfo `protobuf:"bytes,3,opt,name=hostInfo" json:"hostInfo,omitempty"` // The metadata of the volume attachment, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,5,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,6,opt,name=context" json:"context,omitempty"` // The protocol AccessProtocol string `protobuf:"bytes,7,opt,name=AccessProtocol" json:"AccessProtocol,omitempty"` }
DeleteAttachmentOpts is a structure which indicates all required properties for deleting a volume attachment.
func (*DeleteAttachmentOpts) Descriptor ¶
func (*DeleteAttachmentOpts) Descriptor() ([]byte, []int)
func (*DeleteAttachmentOpts) GetAccessProtocol ¶ added in v0.1.9
func (m *DeleteAttachmentOpts) GetAccessProtocol() string
func (*DeleteAttachmentOpts) GetContext ¶ added in v0.1.4
func (m *DeleteAttachmentOpts) GetContext() string
func (*DeleteAttachmentOpts) GetDriverName ¶
func (m *DeleteAttachmentOpts) GetDriverName() string
func (*DeleteAttachmentOpts) GetHostInfo ¶
func (m *DeleteAttachmentOpts) GetHostInfo() *HostInfo
func (*DeleteAttachmentOpts) GetId ¶
func (m *DeleteAttachmentOpts) GetId() string
func (*DeleteAttachmentOpts) GetMetadata ¶
func (m *DeleteAttachmentOpts) GetMetadata() map[string]string
func (*DeleteAttachmentOpts) GetVolumeId ¶
func (m *DeleteAttachmentOpts) GetVolumeId() string
func (*DeleteAttachmentOpts) ProtoMessage ¶
func (*DeleteAttachmentOpts) ProtoMessage()
func (*DeleteAttachmentOpts) Reset ¶
func (m *DeleteAttachmentOpts) Reset()
func (*DeleteAttachmentOpts) String ¶
func (m *DeleteAttachmentOpts) String() string
type DeleteReplicationOpts ¶ added in v0.1.8
type DeleteReplicationOpts struct { // The uuid of the replication, optional when creating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the replication, optional. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The description of the replication, optional. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` // The uuid of the primary volume. This field is required. PrimaryVolumeId string `protobuf:"bytes,4,opt,name=primaryVolumeId" json:"primaryVolumeId,omitempty"` // The uuid of the secondary volume. This field is required. SecondaryVolumeId string `protobuf:"bytes,5,opt,name=secondaryVolumeId" json:"secondaryVolumeId,omitempty"` // The dock infomation on which the request will be executed AvailabilityZone string `protobuf:"bytes,6,opt,name=availabilityZone" json:"availabilityZone,omitempty"` // The service level that volume belongs to, required. ProfileId string `protobuf:"bytes,7,opt,name=profileId" json:"profileId,omitempty"` // The uuid of the pool on which volume will be created, required. PoolId string `protobuf:"bytes,8,opt,name=poolId" json:"poolId,omitempty"` // The name of the pool on which volume will be created, required. PoolName string `protobuf:"bytes,9,opt,name=poolName" json:"poolName,omitempty"` // The metadata of the primary replication, optional. PrimaryReplicationDriverData map[string]string `` /* 177-byte string literal not displayed */ // The metadata of the seondary replication, optional. SecondaryReplicationDriverData map[string]string `` /* 181-byte string literal not displayed */ // The dock id. DockId string `protobuf:"bytes,13,opt,name=dockId" json:"dockId,omitempty"` // The replication driver type. DriverName string `protobuf:"bytes,14,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,15,opt,name=context" json:"context,omitempty"` // The replication metadata Metadata map[string]string `` /* 137-byte string literal not displayed */ // Whether is primary replication IsPrimary bool `protobuf:"varint,17,opt,name=isPrimary" json:"isPrimary,omitempty"` }
Delete ReplicationOpts is a structure which indicates all required properties for deleting a replication. NOTE: Need to figure out how to handle more than 2 sites.
func (*DeleteReplicationOpts) Descriptor ¶ added in v0.1.8
func (*DeleteReplicationOpts) Descriptor() ([]byte, []int)
func (*DeleteReplicationOpts) GetAvailabilityZone ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetAvailabilityZone() string
func (*DeleteReplicationOpts) GetContext ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetContext() string
func (*DeleteReplicationOpts) GetDescription ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetDescription() string
func (*DeleteReplicationOpts) GetDockId ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetDockId() string
func (*DeleteReplicationOpts) GetDriverName ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetDriverName() string
func (*DeleteReplicationOpts) GetId ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetId() string
func (*DeleteReplicationOpts) GetIsPrimary ¶ added in v0.1.9
func (m *DeleteReplicationOpts) GetIsPrimary() bool
func (*DeleteReplicationOpts) GetMetadata ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetMetadata() map[string]string
func (*DeleteReplicationOpts) GetName ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetName() string
func (*DeleteReplicationOpts) GetPoolId ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetPoolId() string
func (*DeleteReplicationOpts) GetPoolName ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetPoolName() string
func (*DeleteReplicationOpts) GetPrimaryReplicationDriverData ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
func (*DeleteReplicationOpts) GetPrimaryVolumeId ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetPrimaryVolumeId() string
func (*DeleteReplicationOpts) GetProfileId ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetProfileId() string
func (*DeleteReplicationOpts) GetSecondaryReplicationDriverData ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
func (*DeleteReplicationOpts) GetSecondaryVolumeId ¶ added in v0.1.8
func (m *DeleteReplicationOpts) GetSecondaryVolumeId() string
func (*DeleteReplicationOpts) ProtoMessage ¶ added in v0.1.8
func (*DeleteReplicationOpts) ProtoMessage()
func (*DeleteReplicationOpts) Reset ¶ added in v0.1.8
func (m *DeleteReplicationOpts) Reset()
func (*DeleteReplicationOpts) String ¶ added in v0.1.8
func (m *DeleteReplicationOpts) String() string
type DeleteSnapshotAttachmentOpts ¶ added in v0.3.2
type DeleteSnapshotAttachmentOpts struct { // The uuid of the snapshot attachment, optional. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The uuid of the snapshot, required. SnapshotId string `protobuf:"bytes,2,opt,name=snapshotId" json:"snapshotId,omitempty"` // The infomation of the host node on which the volume will be attached. HostInfo *HostInfo `protobuf:"bytes,3,opt,name=hostInfo" json:"hostInfo,omitempty"` // The metadata of the snapshot attachment, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,5,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,6,opt,name=context" json:"context,omitempty"` // The protocol AccessProtocol string `protobuf:"bytes,7,opt,name=AccessProtocol" json:"AccessProtocol,omitempty"` }
DeleteSnapshotAttachmentOpts is a structure which indicates all required properties for deleting a snapshot attachment.
func (*DeleteSnapshotAttachmentOpts) Descriptor ¶ added in v0.3.2
func (*DeleteSnapshotAttachmentOpts) Descriptor() ([]byte, []int)
func (*DeleteSnapshotAttachmentOpts) GetAccessProtocol ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) GetAccessProtocol() string
func (*DeleteSnapshotAttachmentOpts) GetContext ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) GetContext() string
func (*DeleteSnapshotAttachmentOpts) GetDriverName ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) GetDriverName() string
func (*DeleteSnapshotAttachmentOpts) GetHostInfo ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) GetHostInfo() *HostInfo
func (*DeleteSnapshotAttachmentOpts) GetId ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) GetId() string
func (*DeleteSnapshotAttachmentOpts) GetMetadata ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) GetMetadata() map[string]string
func (*DeleteSnapshotAttachmentOpts) GetSnapshotId ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) GetSnapshotId() string
func (*DeleteSnapshotAttachmentOpts) ProtoMessage ¶ added in v0.3.2
func (*DeleteSnapshotAttachmentOpts) ProtoMessage()
func (*DeleteSnapshotAttachmentOpts) Reset ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) Reset()
func (*DeleteSnapshotAttachmentOpts) String ¶ added in v0.3.2
func (m *DeleteSnapshotAttachmentOpts) String() string
type DeleteVolumeGroupOpts ¶ added in v0.1.8
type DeleteVolumeGroupOpts struct { // The uuid of the volume group, optional when deleting. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The driver of the volume group. DriverName string `protobuf:"bytes,2,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` }
func (*DeleteVolumeGroupOpts) Descriptor ¶ added in v0.1.8
func (*DeleteVolumeGroupOpts) Descriptor() ([]byte, []int)
func (*DeleteVolumeGroupOpts) GetContext ¶ added in v0.1.8
func (m *DeleteVolumeGroupOpts) GetContext() string
func (*DeleteVolumeGroupOpts) GetDriverName ¶ added in v0.1.8
func (m *DeleteVolumeGroupOpts) GetDriverName() string
func (*DeleteVolumeGroupOpts) GetId ¶ added in v0.1.8
func (m *DeleteVolumeGroupOpts) GetId() string
func (*DeleteVolumeGroupOpts) ProtoMessage ¶ added in v0.1.8
func (*DeleteVolumeGroupOpts) ProtoMessage()
func (*DeleteVolumeGroupOpts) Reset ¶ added in v0.1.8
func (m *DeleteVolumeGroupOpts) Reset()
func (*DeleteVolumeGroupOpts) String ¶ added in v0.1.8
func (m *DeleteVolumeGroupOpts) String() string
type DeleteVolumeOpts ¶
type DeleteVolumeOpts struct { // The uuid of the volume, required. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The metadata of the volume, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,3,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"` }
DeleteVolumeOpts is a structure which indicates all required properties for deleting a volume.
func (*DeleteVolumeOpts) Descriptor ¶
func (*DeleteVolumeOpts) Descriptor() ([]byte, []int)
func (*DeleteVolumeOpts) GetContext ¶ added in v0.1.4
func (m *DeleteVolumeOpts) GetContext() string
func (*DeleteVolumeOpts) GetDriverName ¶
func (m *DeleteVolumeOpts) GetDriverName() string
func (*DeleteVolumeOpts) GetId ¶
func (m *DeleteVolumeOpts) GetId() string
func (*DeleteVolumeOpts) GetMetadata ¶
func (m *DeleteVolumeOpts) GetMetadata() map[string]string
func (*DeleteVolumeOpts) ProtoMessage ¶
func (*DeleteVolumeOpts) ProtoMessage()
func (*DeleteVolumeOpts) Reset ¶
func (m *DeleteVolumeOpts) Reset()
func (*DeleteVolumeOpts) String ¶
func (m *DeleteVolumeOpts) String() string
type DeleteVolumeSnapshotOpts ¶
type DeleteVolumeSnapshotOpts struct { // The uuid of the volume snapshot, required. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The uuid of the volume that snapshot belongs to, required. VolumeId string `protobuf:"bytes,2,opt,name=volumeId" json:"volumeId,omitempty"` // The metadata of the volume snapshot, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,4,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,5,opt,name=context" json:"context,omitempty"` }
DeleteVolumeSnapshotOpts is a structure which indicates all required properties for deleting a volume snapshot.
func (*DeleteVolumeSnapshotOpts) Descriptor ¶
func (*DeleteVolumeSnapshotOpts) Descriptor() ([]byte, []int)
func (*DeleteVolumeSnapshotOpts) GetContext ¶ added in v0.1.4
func (m *DeleteVolumeSnapshotOpts) GetContext() string
func (*DeleteVolumeSnapshotOpts) GetDriverName ¶
func (m *DeleteVolumeSnapshotOpts) GetDriverName() string
func (*DeleteVolumeSnapshotOpts) GetId ¶
func (m *DeleteVolumeSnapshotOpts) GetId() string
func (*DeleteVolumeSnapshotOpts) GetMetadata ¶
func (m *DeleteVolumeSnapshotOpts) GetMetadata() map[string]string
func (*DeleteVolumeSnapshotOpts) GetVolumeId ¶
func (m *DeleteVolumeSnapshotOpts) GetVolumeId() string
func (*DeleteVolumeSnapshotOpts) ProtoMessage ¶
func (*DeleteVolumeSnapshotOpts) ProtoMessage()
func (*DeleteVolumeSnapshotOpts) Reset ¶
func (m *DeleteVolumeSnapshotOpts) Reset()
func (*DeleteVolumeSnapshotOpts) String ¶
func (m *DeleteVolumeSnapshotOpts) String() string
type DetachVolumeOpts ¶ added in v0.1.7
type DetachVolumeOpts struct { // The access protocol for detaching a volume. AccessProtocol string `protobuf:"bytes,1,opt,name=accessProtocol" json:"accessProtocol,omitempty"` // The connectionData for detaching a volume. ConnectionData string `protobuf:"bytes,2,opt,name=connectionData" json:"connectionData,omitempty"` // The metadata for detaching a volume, optional. Metadata map[string]string `` /* 136-byte string literal not displayed */ // The Context Context string `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"` }
DetachVolumeOpts is a structure which indicates all required properties for detaching a volume.
func (*DetachVolumeOpts) Descriptor ¶ added in v0.1.7
func (*DetachVolumeOpts) Descriptor() ([]byte, []int)
func (*DetachVolumeOpts) GetAccessProtocol ¶ added in v0.1.7
func (m *DetachVolumeOpts) GetAccessProtocol() string
func (*DetachVolumeOpts) GetConnectionData ¶ added in v0.1.7
func (m *DetachVolumeOpts) GetConnectionData() string
func (*DetachVolumeOpts) GetContext ¶ added in v0.1.7
func (m *DetachVolumeOpts) GetContext() string
func (*DetachVolumeOpts) GetMetadata ¶ added in v0.1.7
func (m *DetachVolumeOpts) GetMetadata() map[string]string
func (*DetachVolumeOpts) ProtoMessage ¶ added in v0.1.7
func (*DetachVolumeOpts) ProtoMessage()
func (*DetachVolumeOpts) Reset ¶ added in v0.1.7
func (m *DetachVolumeOpts) Reset()
func (*DetachVolumeOpts) String ¶ added in v0.1.7
func (m *DetachVolumeOpts) String() string
type DisableReplicationOpts ¶ added in v0.1.8
type DisableReplicationOpts struct { // The uuid of the replication, optional when creating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the replication, optional. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The description of the replication, optional. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` // The uuid of the primary volume. This field is required. PrimaryVolumeId string `protobuf:"bytes,4,opt,name=primaryVolumeId" json:"primaryVolumeId,omitempty"` // The uuid of the secondary volume. This field is required. SecondaryVolumeId string `protobuf:"bytes,5,opt,name=secondaryVolumeId" json:"secondaryVolumeId,omitempty"` // The dock infomation on which the request will be executed AvailabilityZone string `protobuf:"bytes,6,opt,name=availabilityZone" json:"availabilityZone,omitempty"` // The service level that volume belongs to, required. ProfileId string `protobuf:"bytes,7,opt,name=profileId" json:"profileId,omitempty"` // The uuid of the pool on which volume will be created, required. PoolId string `protobuf:"bytes,8,opt,name=poolId" json:"poolId,omitempty"` // The name of the pool on which volume will be created, required. PoolName string `protobuf:"bytes,9,opt,name=poolName" json:"poolName,omitempty"` // The metadata of the primary replication, optional. PrimaryReplicationDriverData map[string]string `` /* 177-byte string literal not displayed */ // The metadata of the seondary replication, optional. SecondaryReplicationDriverData map[string]string `` /* 181-byte string literal not displayed */ // The dock id. DockId string `protobuf:"bytes,13,opt,name=dockId" json:"dockId,omitempty"` // The replication driver type. DriverName string `protobuf:"bytes,14,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,15,opt,name=context" json:"context,omitempty"` // The replication metadata Metadata map[string]string `` /* 137-byte string literal not displayed */ // Whether is primary replication IsPrimary bool `protobuf:"varint,17,opt,name=isPrimary" json:"isPrimary,omitempty"` }
Delete ReplicationOpts is a structure which indicates all required properties
func (*DisableReplicationOpts) Descriptor ¶ added in v0.1.8
func (*DisableReplicationOpts) Descriptor() ([]byte, []int)
func (*DisableReplicationOpts) GetAvailabilityZone ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetAvailabilityZone() string
func (*DisableReplicationOpts) GetContext ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetContext() string
func (*DisableReplicationOpts) GetDescription ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetDescription() string
func (*DisableReplicationOpts) GetDockId ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetDockId() string
func (*DisableReplicationOpts) GetDriverName ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetDriverName() string
func (*DisableReplicationOpts) GetId ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetId() string
func (*DisableReplicationOpts) GetIsPrimary ¶ added in v0.1.9
func (m *DisableReplicationOpts) GetIsPrimary() bool
func (*DisableReplicationOpts) GetMetadata ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetMetadata() map[string]string
func (*DisableReplicationOpts) GetName ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetName() string
func (*DisableReplicationOpts) GetPoolId ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetPoolId() string
func (*DisableReplicationOpts) GetPoolName ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetPoolName() string
func (*DisableReplicationOpts) GetPrimaryReplicationDriverData ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
func (*DisableReplicationOpts) GetPrimaryVolumeId ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetPrimaryVolumeId() string
func (*DisableReplicationOpts) GetProfileId ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetProfileId() string
func (*DisableReplicationOpts) GetSecondaryReplicationDriverData ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
func (*DisableReplicationOpts) GetSecondaryVolumeId ¶ added in v0.1.8
func (m *DisableReplicationOpts) GetSecondaryVolumeId() string
func (*DisableReplicationOpts) ProtoMessage ¶ added in v0.1.8
func (*DisableReplicationOpts) ProtoMessage()
func (*DisableReplicationOpts) Reset ¶ added in v0.1.8
func (m *DisableReplicationOpts) Reset()
func (*DisableReplicationOpts) String ¶ added in v0.1.8
func (m *DisableReplicationOpts) String() string
type EnableReplicationOpts ¶ added in v0.1.8
type EnableReplicationOpts struct { // The uuid of the replication, optional when creating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the replication, optional. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The description of the replication, optional. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` // The uuid of the primary volume. This field is required. PrimaryVolumeId string `protobuf:"bytes,4,opt,name=primaryVolumeId" json:"primaryVolumeId,omitempty"` // The uuid of the secondary volume. This field is required. SecondaryVolumeId string `protobuf:"bytes,5,opt,name=secondaryVolumeId" json:"secondaryVolumeId,omitempty"` // The dock infomation on which the request will be executed AvailabilityZone string `protobuf:"bytes,6,opt,name=availabilityZone" json:"availabilityZone,omitempty"` // The service level that volume belongs to, required. ProfileId string `protobuf:"bytes,7,opt,name=profileId" json:"profileId,omitempty"` // The uuid of the pool on which volume will be created, required. PoolId string `protobuf:"bytes,8,opt,name=poolId" json:"poolId,omitempty"` // The name of the pool on which volume will be created, required. PoolName string `protobuf:"bytes,9,opt,name=poolName" json:"poolName,omitempty"` // The metadata of the primary replication, optional. PrimaryReplicationDriverData map[string]string `` /* 177-byte string literal not displayed */ // The metadata of the seondary replication, optional. SecondaryReplicationDriverData map[string]string `` /* 181-byte string literal not displayed */ // The dock id. DockId string `protobuf:"bytes,13,opt,name=dockId" json:"dockId,omitempty"` // The replication driver type. DriverName string `protobuf:"bytes,14,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,15,opt,name=context" json:"context,omitempty"` // The replication metadata Metadata map[string]string `` /* 137-byte string literal not displayed */ // Whether is primary replication IsPrimary bool `protobuf:"varint,17,opt,name=isPrimary" json:"isPrimary,omitempty"` }
Delete ReplicationOpts is a structure which indicates all required properties
func (*EnableReplicationOpts) Descriptor ¶ added in v0.1.8
func (*EnableReplicationOpts) Descriptor() ([]byte, []int)
func (*EnableReplicationOpts) GetAvailabilityZone ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetAvailabilityZone() string
func (*EnableReplicationOpts) GetContext ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetContext() string
func (*EnableReplicationOpts) GetDescription ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetDescription() string
func (*EnableReplicationOpts) GetDockId ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetDockId() string
func (*EnableReplicationOpts) GetDriverName ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetDriverName() string
func (*EnableReplicationOpts) GetId ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetId() string
func (*EnableReplicationOpts) GetIsPrimary ¶ added in v0.1.9
func (m *EnableReplicationOpts) GetIsPrimary() bool
func (*EnableReplicationOpts) GetMetadata ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetMetadata() map[string]string
func (*EnableReplicationOpts) GetName ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetName() string
func (*EnableReplicationOpts) GetPoolId ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetPoolId() string
func (*EnableReplicationOpts) GetPoolName ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetPoolName() string
func (*EnableReplicationOpts) GetPrimaryReplicationDriverData ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
func (*EnableReplicationOpts) GetPrimaryVolumeId ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetPrimaryVolumeId() string
func (*EnableReplicationOpts) GetProfileId ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetProfileId() string
func (*EnableReplicationOpts) GetSecondaryReplicationDriverData ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
func (*EnableReplicationOpts) GetSecondaryVolumeId ¶ added in v0.1.8
func (m *EnableReplicationOpts) GetSecondaryVolumeId() string
func (*EnableReplicationOpts) ProtoMessage ¶ added in v0.1.8
func (*EnableReplicationOpts) ProtoMessage()
func (*EnableReplicationOpts) Reset ¶ added in v0.1.8
func (m *EnableReplicationOpts) Reset()
func (*EnableReplicationOpts) String ¶ added in v0.1.8
func (m *EnableReplicationOpts) String() string
type ExtendVolumeOpts ¶ added in v0.1.1
type ExtendVolumeOpts struct { // The uuid of the volume, optional when creating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the volume, required. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The requested capacity of the volume, required. Size int64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` // The description of the volume, optional. Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` // When create volume from snapshot, this field is required. SnapshotId string `protobuf:"bytes,5,opt,name=snapshotId" json:"snapshotId,omitempty"` // The locality that volume belongs to, required. AvailabilityZone string `protobuf:"bytes,6,opt,name=availabilityZone" json:"availabilityZone,omitempty"` // The service level that volume belongs to, required. ProfileId string `protobuf:"bytes,7,opt,name=profileId" json:"profileId,omitempty"` // The uuid of the pool on which volume will be created, required. PoolId string `protobuf:"bytes,8,opt,name=poolId" json:"poolId,omitempty"` // The name of the pool on which volume will be created, required. PoolName string `protobuf:"bytes,9,opt,name=poolName" json:"poolName,omitempty"` // The metadata of the volume, optional. Metadata map[string]string `` /* 137-byte string literal not displayed */ // The storage driver type. DriverName string `protobuf:"bytes,11,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,12,opt,name=context" json:"context,omitempty"` }
ExtendVolumeOpts is a structure which indicates all required properties for Extending a volume.
func (*ExtendVolumeOpts) Descriptor ¶ added in v0.1.1
func (*ExtendVolumeOpts) Descriptor() ([]byte, []int)
func (*ExtendVolumeOpts) GetAvailabilityZone ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetAvailabilityZone() string
func (*ExtendVolumeOpts) GetContext ¶ added in v0.1.4
func (m *ExtendVolumeOpts) GetContext() string
func (*ExtendVolumeOpts) GetDescription ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetDescription() string
func (*ExtendVolumeOpts) GetDriverName ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetDriverName() string
func (*ExtendVolumeOpts) GetId ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetId() string
func (*ExtendVolumeOpts) GetMetadata ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetMetadata() map[string]string
func (*ExtendVolumeOpts) GetName ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetName() string
func (*ExtendVolumeOpts) GetPoolId ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetPoolId() string
func (*ExtendVolumeOpts) GetPoolName ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetPoolName() string
func (*ExtendVolumeOpts) GetProfileId ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetProfileId() string
func (*ExtendVolumeOpts) GetSize ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetSize() int64
func (*ExtendVolumeOpts) GetSnapshotId ¶ added in v0.1.1
func (m *ExtendVolumeOpts) GetSnapshotId() string
func (*ExtendVolumeOpts) ProtoMessage ¶ added in v0.1.1
func (*ExtendVolumeOpts) ProtoMessage()
func (*ExtendVolumeOpts) Reset ¶ added in v0.1.1
func (m *ExtendVolumeOpts) Reset()
func (*ExtendVolumeOpts) String ¶ added in v0.1.1
func (m *ExtendVolumeOpts) String() string
type FailoverReplicationOpts ¶ added in v0.1.8
type FailoverReplicationOpts struct { // The uuid of the replication, optional when creating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the replication, optional. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The description of the replication, optional. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` // The uuid of the primary volume. This field is required. PrimaryVolumeId string `protobuf:"bytes,4,opt,name=primaryVolumeId" json:"primaryVolumeId,omitempty"` // The uuid of the secondary volume. This field is required. SecondaryVolumeId string `protobuf:"bytes,5,opt,name=secondaryVolumeId" json:"secondaryVolumeId,omitempty"` // The dock infomation on which the request will be executed AvailabilityZone string `protobuf:"bytes,6,opt,name=availabilityZone" json:"availabilityZone,omitempty"` // The service level that volume belongs to, required. ProfileId string `protobuf:"bytes,7,opt,name=profileId" json:"profileId,omitempty"` // The uuid of the pool on which volume will be created, required. PoolId string `protobuf:"bytes,8,opt,name=poolId" json:"poolId,omitempty"` // The name of the pool on which volume will be created, required. PoolName string `protobuf:"bytes,9,opt,name=poolName" json:"poolName,omitempty"` // The metadata of the primary replication, optional. PrimaryReplicationDriverData map[string]string `` /* 177-byte string literal not displayed */ // The metadata of the seondary replication, optional. SecondaryReplicationDriverData map[string]string `` /* 181-byte string literal not displayed */ // The dock id. DockId string `protobuf:"bytes,13,opt,name=dockId" json:"dockId,omitempty"` // The replication driver type. DriverName string `protobuf:"bytes,14,opt,name=driverName" json:"driverName,omitempty"` // The Context Context string `protobuf:"bytes,15,opt,name=context" json:"context,omitempty"` // Allow attached volume AllowAttachedVolume bool `protobuf:"varint,16,opt,name=allowAttachedVolume" json:"allowAttachedVolume,omitempty"` // The secondary backend id. SecondaryBackendId string `protobuf:"bytes,17,opt,name=secondaryBackendId" json:"secondaryBackendId,omitempty"` // The replication metadata Metadata map[string]string `` /* 137-byte string literal not displayed */ // Whether is primary replication IsPrimary bool `protobuf:"varint,19,opt,name=isPrimary" json:"isPrimary,omitempty"` }
Delete ReplicationOpts is a structure which indicates all required properties
func (*FailoverReplicationOpts) Descriptor ¶ added in v0.1.8
func (*FailoverReplicationOpts) Descriptor() ([]byte, []int)
func (*FailoverReplicationOpts) GetAllowAttachedVolume ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetAllowAttachedVolume() bool
func (*FailoverReplicationOpts) GetAvailabilityZone ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetAvailabilityZone() string
func (*FailoverReplicationOpts) GetContext ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetContext() string
func (*FailoverReplicationOpts) GetDescription ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetDescription() string
func (*FailoverReplicationOpts) GetDockId ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetDockId() string
func (*FailoverReplicationOpts) GetDriverName ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetDriverName() string
func (*FailoverReplicationOpts) GetId ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetId() string
func (*FailoverReplicationOpts) GetIsPrimary ¶ added in v0.1.9
func (m *FailoverReplicationOpts) GetIsPrimary() bool
func (*FailoverReplicationOpts) GetMetadata ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetMetadata() map[string]string
func (*FailoverReplicationOpts) GetName ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetName() string
func (*FailoverReplicationOpts) GetPoolId ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetPoolId() string
func (*FailoverReplicationOpts) GetPoolName ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetPoolName() string
func (*FailoverReplicationOpts) GetPrimaryReplicationDriverData ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetPrimaryReplicationDriverData() map[string]string
func (*FailoverReplicationOpts) GetPrimaryVolumeId ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetPrimaryVolumeId() string
func (*FailoverReplicationOpts) GetProfileId ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetProfileId() string
func (*FailoverReplicationOpts) GetSecondaryBackendId ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetSecondaryBackendId() string
func (*FailoverReplicationOpts) GetSecondaryReplicationDriverData ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetSecondaryReplicationDriverData() map[string]string
func (*FailoverReplicationOpts) GetSecondaryVolumeId ¶ added in v0.1.8
func (m *FailoverReplicationOpts) GetSecondaryVolumeId() string
func (*FailoverReplicationOpts) ProtoMessage ¶ added in v0.1.8
func (*FailoverReplicationOpts) ProtoMessage()
func (*FailoverReplicationOpts) Reset ¶ added in v0.1.8
func (m *FailoverReplicationOpts) Reset()
func (*FailoverReplicationOpts) String ¶ added in v0.1.8
func (m *FailoverReplicationOpts) String() string
type GenericResponse ¶
type GenericResponse struct { // Types that are valid to be assigned to Reply: // *GenericResponse_Result_ // *GenericResponse_Error_ Reply isGenericResponse_Reply `protobuf_oneof:"reply"` }
Generic response, it return: 1. Return result with message when create/update resource successfully. 2. Return result without message when delete resource successfully. 3. Return Error with error code and message when operate unsuccessfully.
func (*GenericResponse) Descriptor ¶
func (*GenericResponse) Descriptor() ([]byte, []int)
func (*GenericResponse) GetError ¶
func (m *GenericResponse) GetError() *GenericResponse_Error
func (*GenericResponse) GetReply ¶
func (m *GenericResponse) GetReply() isGenericResponse_Reply
func (*GenericResponse) GetResult ¶
func (m *GenericResponse) GetResult() *GenericResponse_Result
func (*GenericResponse) ProtoMessage ¶
func (*GenericResponse) ProtoMessage()
func (*GenericResponse) Reset ¶
func (m *GenericResponse) Reset()
func (*GenericResponse) String ¶
func (m *GenericResponse) String() string
func (*GenericResponse) XXX_OneofFuncs ¶
func (*GenericResponse) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type GenericResponse_Error ¶
type GenericResponse_Error struct { Code string `protobuf:"bytes,1,opt,name=code" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` }
func (*GenericResponse_Error) Descriptor ¶
func (*GenericResponse_Error) Descriptor() ([]byte, []int)
func (*GenericResponse_Error) GetCode ¶
func (m *GenericResponse_Error) GetCode() string
func (*GenericResponse_Error) GetDescription ¶
func (m *GenericResponse_Error) GetDescription() string
func (*GenericResponse_Error) ProtoMessage ¶
func (*GenericResponse_Error) ProtoMessage()
func (*GenericResponse_Error) Reset ¶
func (m *GenericResponse_Error) Reset()
func (*GenericResponse_Error) String ¶
func (m *GenericResponse_Error) String() string
type GenericResponse_Error_ ¶
type GenericResponse_Error_ struct {
Error *GenericResponse_Error `protobuf:"bytes,2,opt,name=error,oneof"`
}
type GenericResponse_Result ¶
type GenericResponse_Result struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*GenericResponse_Result) Descriptor ¶
func (*GenericResponse_Result) Descriptor() ([]byte, []int)
func (*GenericResponse_Result) GetMessage ¶
func (m *GenericResponse_Result) GetMessage() string
func (*GenericResponse_Result) ProtoMessage ¶
func (*GenericResponse_Result) ProtoMessage()
func (*GenericResponse_Result) Reset ¶
func (m *GenericResponse_Result) Reset()
func (*GenericResponse_Result) String ¶
func (m *GenericResponse_Result) String() string
type GenericResponse_Result_ ¶
type GenericResponse_Result_ struct {
Result *GenericResponse_Result `protobuf:"bytes,1,opt,name=result,oneof"`
}
type HostInfo ¶
type HostInfo struct { // The platform of the host, such as "x86_64" Platform string `protobuf:"bytes,1,opt,name=platform" json:"platform,omitempty"` // The type of OS, such as "linux","windows", etc. OsType string `protobuf:"bytes,2,opt,name=osType" json:"osType,omitempty"` // The name of the host Host string `protobuf:"bytes,3,opt,name=host" json:"host,omitempty"` // The ip address of the host Ip string `protobuf:"bytes,4,opt,name=ip" json:"ip,omitempty"` // The initiator infomation, such as: "iqn.2017.com.redhat:e08039b48d5c" Initiator string `protobuf:"bytes,5,opt,name=initiator" json:"initiator,omitempty"` }
func (*HostInfo) Descriptor ¶
func (*HostInfo) GetInitiator ¶
func (*HostInfo) GetPlatform ¶
func (*HostInfo) ProtoMessage ¶
func (*HostInfo) ProtoMessage()
type ProvisionDockClient ¶ added in v0.1.7
type ProvisionDockClient interface { // Create a volume CreateVolume(ctx context.Context, in *CreateVolumeOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Delete a volume DeleteVolume(ctx context.Context, in *DeleteVolumeOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Extend a volume ExtendVolume(ctx context.Context, in *ExtendVolumeOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Create a volume snapshot CreateVolumeSnapshot(ctx context.Context, in *CreateVolumeSnapshotOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Delete a volume snapshot DeleteVolumeSnapshot(ctx context.Context, in *DeleteVolumeSnapshotOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Create a volume attachment CreateAttachment(ctx context.Context, in *CreateAttachmentOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Delete a volume attachment DeleteAttachment(ctx context.Context, in *DeleteAttachmentOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Create a replication CreateReplication(ctx context.Context, in *CreateReplicationOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Delete a replication DeleteReplication(ctx context.Context, in *DeleteReplicationOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Enable a replication EnableReplication(ctx context.Context, in *EnableReplicationOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Disable a replication DisableReplication(ctx context.Context, in *DisableReplicationOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Failover a replication FailoverReplication(ctx context.Context, in *FailoverReplicationOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Create a volume group CreateVolumeGroup(ctx context.Context, in *CreateVolumeGroupOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Update volume group UpdateVolumeGroup(ctx context.Context, in *UpdateVolumeGroupOpts, opts ...grpc.CallOption) (*GenericResponse, error) // Delete volume group DeleteVolumeGroup(ctx context.Context, in *DeleteVolumeGroupOpts, opts ...grpc.CallOption) (*GenericResponse, error) }
func NewProvisionDockClient ¶ added in v0.1.7
func NewProvisionDockClient(cc *grpc.ClientConn) ProvisionDockClient
type ProvisionDockServer ¶ added in v0.1.7
type ProvisionDockServer interface { // Create a volume CreateVolume(context.Context, *CreateVolumeOpts) (*GenericResponse, error) // Delete a volume DeleteVolume(context.Context, *DeleteVolumeOpts) (*GenericResponse, error) // Extend a volume ExtendVolume(context.Context, *ExtendVolumeOpts) (*GenericResponse, error) // Create a volume snapshot CreateVolumeSnapshot(context.Context, *CreateVolumeSnapshotOpts) (*GenericResponse, error) // Delete a volume snapshot DeleteVolumeSnapshot(context.Context, *DeleteVolumeSnapshotOpts) (*GenericResponse, error) // Create a volume attachment CreateAttachment(context.Context, *CreateAttachmentOpts) (*GenericResponse, error) // Delete a volume attachment DeleteAttachment(context.Context, *DeleteAttachmentOpts) (*GenericResponse, error) // Create a replication CreateReplication(context.Context, *CreateReplicationOpts) (*GenericResponse, error) // Delete a replication DeleteReplication(context.Context, *DeleteReplicationOpts) (*GenericResponse, error) // Enable a replication EnableReplication(context.Context, *EnableReplicationOpts) (*GenericResponse, error) // Disable a replication DisableReplication(context.Context, *DisableReplicationOpts) (*GenericResponse, error) // Failover a replication FailoverReplication(context.Context, *FailoverReplicationOpts) (*GenericResponse, error) // Create a volume group CreateVolumeGroup(context.Context, *CreateVolumeGroupOpts) (*GenericResponse, error) // Update volume group UpdateVolumeGroup(context.Context, *UpdateVolumeGroupOpts) (*GenericResponse, error) // Delete volume group DeleteVolumeGroup(context.Context, *DeleteVolumeGroupOpts) (*GenericResponse, error) }
type UpdateVolumeGroupOpts ¶ added in v0.1.8
type UpdateVolumeGroupOpts struct { // The uuid of the volume group, optional when updating. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The driver of the volume group. DriverName string `protobuf:"bytes,2,opt,name=driverName" json:"driverName,omitempty"` // The addVolumes contain UUIDs of volumes to be added to the group. AddVolumes []string `protobuf:"bytes,3,rep,name=addVolumes" json:"addVolumes,omitempty"` // The removeVolumes contains the volumes to be removed from the group. RemoveVolumes []string `protobuf:"bytes,4,rep,name=removeVolumes" json:"removeVolumes,omitempty"` // The Context Context string `protobuf:"bytes,5,opt,name=context" json:"context,omitempty"` }
func (*UpdateVolumeGroupOpts) Descriptor ¶ added in v0.1.8
func (*UpdateVolumeGroupOpts) Descriptor() ([]byte, []int)
func (*UpdateVolumeGroupOpts) GetAddVolumes ¶ added in v0.1.8
func (m *UpdateVolumeGroupOpts) GetAddVolumes() []string
func (*UpdateVolumeGroupOpts) GetContext ¶ added in v0.1.8
func (m *UpdateVolumeGroupOpts) GetContext() string
func (*UpdateVolumeGroupOpts) GetDriverName ¶ added in v0.1.8
func (m *UpdateVolumeGroupOpts) GetDriverName() string
func (*UpdateVolumeGroupOpts) GetId ¶ added in v0.1.8
func (m *UpdateVolumeGroupOpts) GetId() string
func (*UpdateVolumeGroupOpts) GetRemoveVolumes ¶ added in v0.1.8
func (m *UpdateVolumeGroupOpts) GetRemoveVolumes() []string
func (*UpdateVolumeGroupOpts) ProtoMessage ¶ added in v0.1.8
func (*UpdateVolumeGroupOpts) ProtoMessage()
func (*UpdateVolumeGroupOpts) Reset ¶ added in v0.1.8
func (m *UpdateVolumeGroupOpts) Reset()
func (*UpdateVolumeGroupOpts) String ¶ added in v0.1.8
func (m *UpdateVolumeGroupOpts) String() string
type VolumeData ¶ added in v0.1.8
func (*VolumeData) Descriptor ¶ added in v0.1.8
func (*VolumeData) Descriptor() ([]byte, []int)
func (*VolumeData) GetData ¶ added in v0.1.8
func (m *VolumeData) GetData() map[string]string
func (*VolumeData) ProtoMessage ¶ added in v0.1.8
func (*VolumeData) ProtoMessage()
func (*VolumeData) Reset ¶ added in v0.1.8
func (m *VolumeData) Reset()
func (*VolumeData) String ¶ added in v0.1.8
func (m *VolumeData) String() string