proto

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

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
HostInfo
VolumeData
CreateReplicationOpts
DeleteReplicationOpts
EnableReplicationOpts
DisableReplicationOpts
FailoverReplicationOpts
CreateVolumeGroupOpts
UpdateVolumeGroupOpts
DeleteVolumeGroupOpts
AttachVolumeOpts
DetachVolumeOpts
GenericResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAttachDockServer

func RegisterAttachDockServer(s *grpc.Server, srv AttachDockServer)

func RegisterProvisionDockServer

func RegisterProvisionDockServer(s *grpc.Server, srv ProvisionDockServer)

Types

type AttachDockClient

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

func NewAttachDockClient(cc *grpc.ClientConn) AttachDockClient

type AttachDockServer

type AttachDockServer interface {
	// Attach a volume
	AttachVolume(context.Context, *AttachVolumeOpts) (*GenericResponse, error)
	// Detach a volume
	DetachVolume(context.Context, *DetachVolumeOpts) (*GenericResponse, error)
}

type AttachVolumeOpts

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

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

func (*AttachVolumeOpts) GetAccessProtocol

func (m *AttachVolumeOpts) GetAccessProtocol() string

func (*AttachVolumeOpts) GetConnectionData

func (m *AttachVolumeOpts) GetConnectionData() string

func (*AttachVolumeOpts) GetContext

func (m *AttachVolumeOpts) GetContext() string

func (*AttachVolumeOpts) GetMetadata

func (m *AttachVolumeOpts) GetMetadata() map[string]string

func (*AttachVolumeOpts) ProtoMessage

func (*AttachVolumeOpts) ProtoMessage()

func (*AttachVolumeOpts) Reset

func (m *AttachVolumeOpts) Reset()

func (*AttachVolumeOpts) String

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

func (m *CreateAttachmentOpts) GetAccessProtocol() string

func (*CreateAttachmentOpts) GetContext

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

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

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

func (*CreateReplicationOpts) GetAvailabilityZone

func (m *CreateReplicationOpts) GetAvailabilityZone() string

func (*CreateReplicationOpts) GetContext

func (m *CreateReplicationOpts) GetContext() string

func (*CreateReplicationOpts) GetDescription

func (m *CreateReplicationOpts) GetDescription() string

func (*CreateReplicationOpts) GetDockId

func (m *CreateReplicationOpts) GetDockId() string

func (*CreateReplicationOpts) GetDriverName

func (m *CreateReplicationOpts) GetDriverName() string

func (*CreateReplicationOpts) GetId

func (m *CreateReplicationOpts) GetId() string

func (*CreateReplicationOpts) GetIsPrimary

func (m *CreateReplicationOpts) GetIsPrimary() bool

func (*CreateReplicationOpts) GetMetadata

func (m *CreateReplicationOpts) GetMetadata() map[string]string

func (*CreateReplicationOpts) GetName

func (m *CreateReplicationOpts) GetName() string

func (*CreateReplicationOpts) GetPoolId

func (m *CreateReplicationOpts) GetPoolId() string

func (*CreateReplicationOpts) GetPoolName

func (m *CreateReplicationOpts) GetPoolName() string

func (*CreateReplicationOpts) GetPrimaryReplicationDriverData

func (m *CreateReplicationOpts) GetPrimaryReplicationDriverData() map[string]string

func (*CreateReplicationOpts) GetPrimaryVolumeId

func (m *CreateReplicationOpts) GetPrimaryVolumeId() string

func (*CreateReplicationOpts) GetProfileId

func (m *CreateReplicationOpts) GetProfileId() string

func (*CreateReplicationOpts) GetReplicationBandwidth

func (m *CreateReplicationOpts) GetReplicationBandwidth() int64

func (*CreateReplicationOpts) GetReplicationMode

func (m *CreateReplicationOpts) GetReplicationMode() string

func (*CreateReplicationOpts) GetReplicationPeriod

func (m *CreateReplicationOpts) GetReplicationPeriod() int64

func (*CreateReplicationOpts) GetSecondaryReplicationDriverData

func (m *CreateReplicationOpts) GetSecondaryReplicationDriverData() map[string]string

func (*CreateReplicationOpts) GetSecondaryVolumeId

func (m *CreateReplicationOpts) GetSecondaryVolumeId() string

func (*CreateReplicationOpts) GetVolumeDataList

func (m *CreateReplicationOpts) GetVolumeDataList() []*VolumeData

func (*CreateReplicationOpts) ProtoMessage

func (*CreateReplicationOpts) ProtoMessage()

func (*CreateReplicationOpts) Reset

func (m *CreateReplicationOpts) Reset()

func (*CreateReplicationOpts) String

func (m *CreateReplicationOpts) String() string

type CreateVolumeGroupOpts

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

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

func (*CreateVolumeGroupOpts) GetAddVolumes

func (m *CreateVolumeGroupOpts) GetAddVolumes() []string

func (*CreateVolumeGroupOpts) GetAvailabilityZone

func (m *CreateVolumeGroupOpts) GetAvailabilityZone() string

func (*CreateVolumeGroupOpts) GetContext

func (m *CreateVolumeGroupOpts) GetContext() string

func (*CreateVolumeGroupOpts) GetDescription

func (m *CreateVolumeGroupOpts) GetDescription() string

func (*CreateVolumeGroupOpts) GetDriverName

func (m *CreateVolumeGroupOpts) GetDriverName() string

func (*CreateVolumeGroupOpts) GetId

func (m *CreateVolumeGroupOpts) GetId() string

func (*CreateVolumeGroupOpts) GetName

func (m *CreateVolumeGroupOpts) GetName() string

func (*CreateVolumeGroupOpts) GetPoolId

func (m *CreateVolumeGroupOpts) GetPoolId() string

func (*CreateVolumeGroupOpts) GetRemoveVolumes

func (m *CreateVolumeGroupOpts) GetRemoveVolumes() []string

func (*CreateVolumeGroupOpts) ProtoMessage

func (*CreateVolumeGroupOpts) ProtoMessage()

func (*CreateVolumeGroupOpts) Reset

func (m *CreateVolumeGroupOpts) Reset()

func (*CreateVolumeGroupOpts) String

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

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

func (m *CreateVolumeOpts) GetReplicationDriverData() map[string]string

func (*CreateVolumeOpts) GetReplicationId

func (m *CreateVolumeOpts) GetReplicationId() string

func (*CreateVolumeOpts) GetSize

func (m *CreateVolumeOpts) GetSize() int64

func (*CreateVolumeOpts) GetSnapshotId

func (m *CreateVolumeOpts) GetSnapshotId() string

func (*CreateVolumeOpts) GetSnapshotSize

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

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

func (m *DeleteAttachmentOpts) GetAccessProtocol() string

func (*DeleteAttachmentOpts) GetContext

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

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

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

func (*DeleteReplicationOpts) GetAvailabilityZone

func (m *DeleteReplicationOpts) GetAvailabilityZone() string

func (*DeleteReplicationOpts) GetContext

func (m *DeleteReplicationOpts) GetContext() string

func (*DeleteReplicationOpts) GetDescription

func (m *DeleteReplicationOpts) GetDescription() string

func (*DeleteReplicationOpts) GetDockId

func (m *DeleteReplicationOpts) GetDockId() string

func (*DeleteReplicationOpts) GetDriverName

func (m *DeleteReplicationOpts) GetDriverName() string

func (*DeleteReplicationOpts) GetId

func (m *DeleteReplicationOpts) GetId() string

func (*DeleteReplicationOpts) GetIsPrimary

func (m *DeleteReplicationOpts) GetIsPrimary() bool

func (*DeleteReplicationOpts) GetMetadata

func (m *DeleteReplicationOpts) GetMetadata() map[string]string

func (*DeleteReplicationOpts) GetName

func (m *DeleteReplicationOpts) GetName() string

func (*DeleteReplicationOpts) GetPoolId

func (m *DeleteReplicationOpts) GetPoolId() string

func (*DeleteReplicationOpts) GetPoolName

func (m *DeleteReplicationOpts) GetPoolName() string

func (*DeleteReplicationOpts) GetPrimaryReplicationDriverData

func (m *DeleteReplicationOpts) GetPrimaryReplicationDriverData() map[string]string

func (*DeleteReplicationOpts) GetPrimaryVolumeId

func (m *DeleteReplicationOpts) GetPrimaryVolumeId() string

func (*DeleteReplicationOpts) GetProfileId

func (m *DeleteReplicationOpts) GetProfileId() string

func (*DeleteReplicationOpts) GetSecondaryReplicationDriverData

func (m *DeleteReplicationOpts) GetSecondaryReplicationDriverData() map[string]string

func (*DeleteReplicationOpts) GetSecondaryVolumeId

func (m *DeleteReplicationOpts) GetSecondaryVolumeId() string

func (*DeleteReplicationOpts) ProtoMessage

func (*DeleteReplicationOpts) ProtoMessage()

func (*DeleteReplicationOpts) Reset

func (m *DeleteReplicationOpts) Reset()

func (*DeleteReplicationOpts) String

func (m *DeleteReplicationOpts) String() string

type DeleteVolumeGroupOpts

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

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

func (*DeleteVolumeGroupOpts) GetContext

func (m *DeleteVolumeGroupOpts) GetContext() string

func (*DeleteVolumeGroupOpts) GetDriverName

func (m *DeleteVolumeGroupOpts) GetDriverName() string

func (*DeleteVolumeGroupOpts) GetId

func (m *DeleteVolumeGroupOpts) GetId() string

func (*DeleteVolumeGroupOpts) ProtoMessage

func (*DeleteVolumeGroupOpts) ProtoMessage()

func (*DeleteVolumeGroupOpts) Reset

func (m *DeleteVolumeGroupOpts) Reset()

func (*DeleteVolumeGroupOpts) String

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

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

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

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

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

func (*DetachVolumeOpts) GetAccessProtocol

func (m *DetachVolumeOpts) GetAccessProtocol() string

func (*DetachVolumeOpts) GetConnectionData

func (m *DetachVolumeOpts) GetConnectionData() string

func (*DetachVolumeOpts) GetContext

func (m *DetachVolumeOpts) GetContext() string

func (*DetachVolumeOpts) GetMetadata

func (m *DetachVolumeOpts) GetMetadata() map[string]string

func (*DetachVolumeOpts) ProtoMessage

func (*DetachVolumeOpts) ProtoMessage()

func (*DetachVolumeOpts) Reset

func (m *DetachVolumeOpts) Reset()

func (*DetachVolumeOpts) String

func (m *DetachVolumeOpts) String() string

type DisableReplicationOpts

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

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

func (*DisableReplicationOpts) GetAvailabilityZone

func (m *DisableReplicationOpts) GetAvailabilityZone() string

func (*DisableReplicationOpts) GetContext

func (m *DisableReplicationOpts) GetContext() string

func (*DisableReplicationOpts) GetDescription

func (m *DisableReplicationOpts) GetDescription() string

func (*DisableReplicationOpts) GetDockId

func (m *DisableReplicationOpts) GetDockId() string

func (*DisableReplicationOpts) GetDriverName

func (m *DisableReplicationOpts) GetDriverName() string

func (*DisableReplicationOpts) GetId

func (m *DisableReplicationOpts) GetId() string

func (*DisableReplicationOpts) GetIsPrimary

func (m *DisableReplicationOpts) GetIsPrimary() bool

func (*DisableReplicationOpts) GetMetadata

func (m *DisableReplicationOpts) GetMetadata() map[string]string

func (*DisableReplicationOpts) GetName

func (m *DisableReplicationOpts) GetName() string

func (*DisableReplicationOpts) GetPoolId

func (m *DisableReplicationOpts) GetPoolId() string

func (*DisableReplicationOpts) GetPoolName

func (m *DisableReplicationOpts) GetPoolName() string

func (*DisableReplicationOpts) GetPrimaryReplicationDriverData

func (m *DisableReplicationOpts) GetPrimaryReplicationDriverData() map[string]string

func (*DisableReplicationOpts) GetPrimaryVolumeId

func (m *DisableReplicationOpts) GetPrimaryVolumeId() string

func (*DisableReplicationOpts) GetProfileId

func (m *DisableReplicationOpts) GetProfileId() string

func (*DisableReplicationOpts) GetSecondaryReplicationDriverData

func (m *DisableReplicationOpts) GetSecondaryReplicationDriverData() map[string]string

func (*DisableReplicationOpts) GetSecondaryVolumeId

func (m *DisableReplicationOpts) GetSecondaryVolumeId() string

func (*DisableReplicationOpts) ProtoMessage

func (*DisableReplicationOpts) ProtoMessage()

func (*DisableReplicationOpts) Reset

func (m *DisableReplicationOpts) Reset()

func (*DisableReplicationOpts) String

func (m *DisableReplicationOpts) String() string

type EnableReplicationOpts

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

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

func (*EnableReplicationOpts) GetAvailabilityZone

func (m *EnableReplicationOpts) GetAvailabilityZone() string

func (*EnableReplicationOpts) GetContext

func (m *EnableReplicationOpts) GetContext() string

func (*EnableReplicationOpts) GetDescription

func (m *EnableReplicationOpts) GetDescription() string

func (*EnableReplicationOpts) GetDockId

func (m *EnableReplicationOpts) GetDockId() string

func (*EnableReplicationOpts) GetDriverName

func (m *EnableReplicationOpts) GetDriverName() string

func (*EnableReplicationOpts) GetId

func (m *EnableReplicationOpts) GetId() string

func (*EnableReplicationOpts) GetIsPrimary

func (m *EnableReplicationOpts) GetIsPrimary() bool

func (*EnableReplicationOpts) GetMetadata

func (m *EnableReplicationOpts) GetMetadata() map[string]string

func (*EnableReplicationOpts) GetName

func (m *EnableReplicationOpts) GetName() string

func (*EnableReplicationOpts) GetPoolId

func (m *EnableReplicationOpts) GetPoolId() string

func (*EnableReplicationOpts) GetPoolName

func (m *EnableReplicationOpts) GetPoolName() string

func (*EnableReplicationOpts) GetPrimaryReplicationDriverData

func (m *EnableReplicationOpts) GetPrimaryReplicationDriverData() map[string]string

func (*EnableReplicationOpts) GetPrimaryVolumeId

func (m *EnableReplicationOpts) GetPrimaryVolumeId() string

func (*EnableReplicationOpts) GetProfileId

func (m *EnableReplicationOpts) GetProfileId() string

func (*EnableReplicationOpts) GetSecondaryReplicationDriverData

func (m *EnableReplicationOpts) GetSecondaryReplicationDriverData() map[string]string

func (*EnableReplicationOpts) GetSecondaryVolumeId

func (m *EnableReplicationOpts) GetSecondaryVolumeId() string

func (*EnableReplicationOpts) ProtoMessage

func (*EnableReplicationOpts) ProtoMessage()

func (*EnableReplicationOpts) Reset

func (m *EnableReplicationOpts) Reset()

func (*EnableReplicationOpts) String

func (m *EnableReplicationOpts) String() string

type ExtendVolumeOpts

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

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

func (*ExtendVolumeOpts) GetAvailabilityZone

func (m *ExtendVolumeOpts) GetAvailabilityZone() string

func (*ExtendVolumeOpts) GetContext

func (m *ExtendVolumeOpts) GetContext() string

func (*ExtendVolumeOpts) GetDescription

func (m *ExtendVolumeOpts) GetDescription() string

func (*ExtendVolumeOpts) GetDriverName

func (m *ExtendVolumeOpts) GetDriverName() string

func (*ExtendVolumeOpts) GetId

func (m *ExtendVolumeOpts) GetId() string

func (*ExtendVolumeOpts) GetMetadata

func (m *ExtendVolumeOpts) GetMetadata() map[string]string

func (*ExtendVolumeOpts) GetName

func (m *ExtendVolumeOpts) GetName() string

func (*ExtendVolumeOpts) GetPoolId

func (m *ExtendVolumeOpts) GetPoolId() string

func (*ExtendVolumeOpts) GetPoolName

func (m *ExtendVolumeOpts) GetPoolName() string

func (*ExtendVolumeOpts) GetProfileId

func (m *ExtendVolumeOpts) GetProfileId() string

func (*ExtendVolumeOpts) GetSize

func (m *ExtendVolumeOpts) GetSize() int64

func (*ExtendVolumeOpts) GetSnapshotId

func (m *ExtendVolumeOpts) GetSnapshotId() string

func (*ExtendVolumeOpts) ProtoMessage

func (*ExtendVolumeOpts) ProtoMessage()

func (*ExtendVolumeOpts) Reset

func (m *ExtendVolumeOpts) Reset()

func (*ExtendVolumeOpts) String

func (m *ExtendVolumeOpts) String() string

type FailoverReplicationOpts

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

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

func (*FailoverReplicationOpts) GetAllowAttachedVolume

func (m *FailoverReplicationOpts) GetAllowAttachedVolume() bool

func (*FailoverReplicationOpts) GetAvailabilityZone

func (m *FailoverReplicationOpts) GetAvailabilityZone() string

func (*FailoverReplicationOpts) GetContext

func (m *FailoverReplicationOpts) GetContext() string

func (*FailoverReplicationOpts) GetDescription

func (m *FailoverReplicationOpts) GetDescription() string

func (*FailoverReplicationOpts) GetDockId

func (m *FailoverReplicationOpts) GetDockId() string

func (*FailoverReplicationOpts) GetDriverName

func (m *FailoverReplicationOpts) GetDriverName() string

func (*FailoverReplicationOpts) GetId

func (m *FailoverReplicationOpts) GetId() string

func (*FailoverReplicationOpts) GetIsPrimary

func (m *FailoverReplicationOpts) GetIsPrimary() bool

func (*FailoverReplicationOpts) GetMetadata

func (m *FailoverReplicationOpts) GetMetadata() map[string]string

func (*FailoverReplicationOpts) GetName

func (m *FailoverReplicationOpts) GetName() string

func (*FailoverReplicationOpts) GetPoolId

func (m *FailoverReplicationOpts) GetPoolId() string

func (*FailoverReplicationOpts) GetPoolName

func (m *FailoverReplicationOpts) GetPoolName() string

func (*FailoverReplicationOpts) GetPrimaryReplicationDriverData

func (m *FailoverReplicationOpts) GetPrimaryReplicationDriverData() map[string]string

func (*FailoverReplicationOpts) GetPrimaryVolumeId

func (m *FailoverReplicationOpts) GetPrimaryVolumeId() string

func (*FailoverReplicationOpts) GetProfileId

func (m *FailoverReplicationOpts) GetProfileId() string

func (*FailoverReplicationOpts) GetSecondaryBackendId

func (m *FailoverReplicationOpts) GetSecondaryBackendId() string

func (*FailoverReplicationOpts) GetSecondaryReplicationDriverData

func (m *FailoverReplicationOpts) GetSecondaryReplicationDriverData() map[string]string

func (*FailoverReplicationOpts) GetSecondaryVolumeId

func (m *FailoverReplicationOpts) GetSecondaryVolumeId() string

func (*FailoverReplicationOpts) ProtoMessage

func (*FailoverReplicationOpts) ProtoMessage()

func (*FailoverReplicationOpts) Reset

func (m *FailoverReplicationOpts) Reset()

func (*FailoverReplicationOpts) String

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) Descriptor() ([]byte, []int)

func (*HostInfo) GetHost

func (m *HostInfo) GetHost() string

func (*HostInfo) GetInitiator

func (m *HostInfo) GetInitiator() string

func (*HostInfo) GetIp

func (m *HostInfo) GetIp() string

func (*HostInfo) GetOsType

func (m *HostInfo) GetOsType() string

func (*HostInfo) GetPlatform

func (m *HostInfo) GetPlatform() string

func (*HostInfo) ProtoMessage

func (*HostInfo) ProtoMessage()

func (*HostInfo) Reset

func (m *HostInfo) Reset()

func (*HostInfo) String

func (m *HostInfo) String() string

type ProvisionDockClient

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

func NewProvisionDockClient(cc *grpc.ClientConn) ProvisionDockClient

type ProvisionDockServer

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

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

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

func (*UpdateVolumeGroupOpts) GetAddVolumes

func (m *UpdateVolumeGroupOpts) GetAddVolumes() []string

func (*UpdateVolumeGroupOpts) GetContext

func (m *UpdateVolumeGroupOpts) GetContext() string

func (*UpdateVolumeGroupOpts) GetDriverName

func (m *UpdateVolumeGroupOpts) GetDriverName() string

func (*UpdateVolumeGroupOpts) GetId

func (m *UpdateVolumeGroupOpts) GetId() string

func (*UpdateVolumeGroupOpts) GetRemoveVolumes

func (m *UpdateVolumeGroupOpts) GetRemoveVolumes() []string

func (*UpdateVolumeGroupOpts) ProtoMessage

func (*UpdateVolumeGroupOpts) ProtoMessage()

func (*UpdateVolumeGroupOpts) Reset

func (m *UpdateVolumeGroupOpts) Reset()

func (*UpdateVolumeGroupOpts) String

func (m *UpdateVolumeGroupOpts) String() string

type VolumeData

type VolumeData struct {
	Data map[string]string `` /* 128-byte string literal not displayed */
}

func (*VolumeData) Descriptor

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

func (*VolumeData) GetData

func (m *VolumeData) GetData() map[string]string

func (*VolumeData) ProtoMessage

func (*VolumeData) ProtoMessage()

func (*VolumeData) Reset

func (m *VolumeData) Reset()

func (*VolumeData) String

func (m *VolumeData) String() string

Jump to

Keyboard shortcuts

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