block

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_block_proto protoreflect.FileDescriptor

Functions

func NewBlockEndpoints

func NewBlockEndpoints() []*api.Endpoint

func RegisterBlockHandler

func RegisterBlockHandler(s server.Server, hdlr BlockHandler, opts ...server.HandlerOption) error

Types

type BaseRequest

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

func (*BaseRequest) Descriptor deprecated

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

Deprecated: Use BaseRequest.ProtoReflect.Descriptor instead.

func (*BaseRequest) GetId

func (x *BaseRequest) GetId() string

func (*BaseRequest) ProtoMessage

func (*BaseRequest) ProtoMessage()

func (*BaseRequest) ProtoReflect added in v1.0.1

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

func (*BaseRequest) Reset

func (x *BaseRequest) Reset()

func (*BaseRequest) String

func (x *BaseRequest) String() string

type BlockService

type BlockService interface {
	ListVolume(ctx context.Context, in *ListVolumeRequest, opts ...client.CallOption) (*ListVolumeResponse, error)
	GetVolume(ctx context.Context, in *GetVolumeRequest, opts ...client.CallOption) (*GetVolumeResponse, error)
	CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...client.CallOption) (*CreateVolumeResponse, error)
	UpdateVolume(ctx context.Context, in *UpdateVolumeRequest, opts ...client.CallOption) (*UpdateVolumeResponse, error)
	DeleteVolume(ctx context.Context, in *DeleteVolumeRequest, opts ...client.CallOption) (*DeleteVolumeResponse, error)
}

func NewBlockService

func NewBlockService(name string, c client.Client) BlockService

type CreateVolumeRequest

type CreateVolumeRequest struct {
	Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVolumeRequest) Descriptor deprecated

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

Deprecated: Use CreateVolumeRequest.ProtoReflect.Descriptor instead.

func (*CreateVolumeRequest) GetVolume

func (x *CreateVolumeRequest) GetVolume() *Volume

func (*CreateVolumeRequest) ProtoMessage

func (*CreateVolumeRequest) ProtoMessage()

func (*CreateVolumeRequest) ProtoReflect added in v1.0.1

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

func (*CreateVolumeRequest) Reset

func (x *CreateVolumeRequest) Reset()

func (*CreateVolumeRequest) String

func (x *CreateVolumeRequest) String() string

type CreateVolumeResponse

type CreateVolumeResponse struct {
	Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVolumeResponse) Descriptor deprecated

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

Deprecated: Use CreateVolumeResponse.ProtoReflect.Descriptor instead.

func (*CreateVolumeResponse) GetVolume

func (x *CreateVolumeResponse) GetVolume() *Volume

func (*CreateVolumeResponse) ProtoMessage

func (*CreateVolumeResponse) ProtoMessage()

func (*CreateVolumeResponse) ProtoReflect added in v1.0.1

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

func (*CreateVolumeResponse) Reset

func (x *CreateVolumeResponse) Reset()

func (*CreateVolumeResponse) String

func (x *CreateVolumeResponse) String() string

type DeleteVolumeRequest added in v1.0.1

type DeleteVolumeRequest struct {
	Id     string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Volume *Volume `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVolumeRequest) Descriptor deprecated added in v1.0.1

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

Deprecated: Use DeleteVolumeRequest.ProtoReflect.Descriptor instead.

func (*DeleteVolumeRequest) GetId added in v1.0.1

func (x *DeleteVolumeRequest) GetId() string

func (*DeleteVolumeRequest) GetVolume added in v1.0.1

func (x *DeleteVolumeRequest) GetVolume() *Volume

func (*DeleteVolumeRequest) ProtoMessage added in v1.0.1

func (*DeleteVolumeRequest) ProtoMessage()

func (*DeleteVolumeRequest) ProtoReflect added in v1.0.1

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

func (*DeleteVolumeRequest) Reset added in v1.0.1

func (x *DeleteVolumeRequest) Reset()

func (*DeleteVolumeRequest) String added in v1.0.1

func (x *DeleteVolumeRequest) String() string

type DeleteVolumeResponse added in v1.0.1

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

func (*DeleteVolumeResponse) Descriptor deprecated added in v1.0.1

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

Deprecated: Use DeleteVolumeResponse.ProtoReflect.Descriptor instead.

func (*DeleteVolumeResponse) ProtoMessage added in v1.0.1

func (*DeleteVolumeResponse) ProtoMessage()

func (*DeleteVolumeResponse) ProtoReflect added in v1.0.1

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

func (*DeleteVolumeResponse) Reset added in v1.0.1

func (x *DeleteVolumeResponse) Reset()

func (*DeleteVolumeResponse) String added in v1.0.1

func (x *DeleteVolumeResponse) String() string

type GetVolumeRequest added in v1.0.1

type GetVolumeRequest struct {
	Id     string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Volume *Volume `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVolumeRequest) Descriptor deprecated added in v1.0.1

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

Deprecated: Use GetVolumeRequest.ProtoReflect.Descriptor instead.

func (*GetVolumeRequest) GetId added in v1.0.1

func (x *GetVolumeRequest) GetId() string

func (*GetVolumeRequest) GetVolume added in v1.0.1

func (x *GetVolumeRequest) GetVolume() *Volume

func (*GetVolumeRequest) ProtoMessage added in v1.0.1

func (*GetVolumeRequest) ProtoMessage()

func (*GetVolumeRequest) ProtoReflect added in v1.0.1

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

func (*GetVolumeRequest) Reset added in v1.0.1

func (x *GetVolumeRequest) Reset()

func (*GetVolumeRequest) String added in v1.0.1

func (x *GetVolumeRequest) String() string

type GetVolumeResponse added in v1.0.1

type GetVolumeResponse struct {
	Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVolumeResponse) Descriptor deprecated added in v1.0.1

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

Deprecated: Use GetVolumeResponse.ProtoReflect.Descriptor instead.

func (*GetVolumeResponse) GetVolume added in v1.0.1

func (x *GetVolumeResponse) GetVolume() *Volume

func (*GetVolumeResponse) ProtoMessage added in v1.0.1

func (*GetVolumeResponse) ProtoMessage()

func (*GetVolumeResponse) ProtoReflect added in v1.0.1

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

func (*GetVolumeResponse) Reset added in v1.0.1

func (x *GetVolumeResponse) Reset()

func (*GetVolumeResponse) String added in v1.0.1

func (x *GetVolumeResponse) String() string

type ListVolumeRequest added in v1.0.1

type ListVolumeRequest struct {
	Limit    int32             `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset   int32             `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	SortKeys []string          `protobuf:"bytes,3,rep,name=sortKeys,proto3" json:"sortKeys,omitempty"`
	SortDirs []string          `protobuf:"bytes,4,rep,name=sortDirs,proto3" json:"sortDirs,omitempty"`
	Filter   map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListVolumeRequest) Descriptor deprecated added in v1.0.1

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

Deprecated: Use ListVolumeRequest.ProtoReflect.Descriptor instead.

func (*ListVolumeRequest) GetFilter added in v1.0.1

func (x *ListVolumeRequest) GetFilter() map[string]string

func (*ListVolumeRequest) GetLimit added in v1.0.1

func (x *ListVolumeRequest) GetLimit() int32

func (*ListVolumeRequest) GetOffset added in v1.0.1

func (x *ListVolumeRequest) GetOffset() int32

func (*ListVolumeRequest) GetSortDirs added in v1.0.1

func (x *ListVolumeRequest) GetSortDirs() []string

func (*ListVolumeRequest) GetSortKeys added in v1.0.1

func (x *ListVolumeRequest) GetSortKeys() []string

func (*ListVolumeRequest) ProtoMessage added in v1.0.1

func (*ListVolumeRequest) ProtoMessage()

func (*ListVolumeRequest) ProtoReflect added in v1.0.1

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

func (*ListVolumeRequest) Reset added in v1.0.1

func (x *ListVolumeRequest) Reset()

func (*ListVolumeRequest) String added in v1.0.1

func (x *ListVolumeRequest) String() string

type ListVolumeResponse added in v1.0.1

type ListVolumeResponse struct {
	Volumes []*Volume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"`
	Next    int32     `protobuf:"varint,2,opt,name=next,proto3" json:"next,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVolumeResponse) Descriptor deprecated added in v1.0.1

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

Deprecated: Use ListVolumeResponse.ProtoReflect.Descriptor instead.

func (*ListVolumeResponse) GetNext added in v1.0.1

func (x *ListVolumeResponse) GetNext() int32

func (*ListVolumeResponse) GetVolumes added in v1.0.1

func (x *ListVolumeResponse) GetVolumes() []*Volume

func (*ListVolumeResponse) ProtoMessage added in v1.0.1

func (*ListVolumeResponse) ProtoMessage()

func (*ListVolumeResponse) ProtoReflect added in v1.0.1

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

func (*ListVolumeResponse) Reset added in v1.0.1

func (x *ListVolumeResponse) Reset()

func (*ListVolumeResponse) String added in v1.0.1

func (x *ListVolumeResponse) String() string

type Tag added in v1.0.1

type Tag struct {

	// The key of the tag.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The value of the tag.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated added in v1.0.1

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetKey added in v1.0.1

func (x *Tag) GetKey() string

func (*Tag) GetValue added in v1.0.1

func (x *Tag) GetValue() string

func (*Tag) ProtoMessage added in v1.0.1

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect added in v1.0.1

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

func (*Tag) Reset added in v1.0.1

func (x *Tag) Reset()

func (*Tag) String added in v1.0.1

func (x *Tag) String() string

type UpdateVolumeRequest added in v1.0.1

type UpdateVolumeRequest struct {
	Id     string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Volume *Volume `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVolumeRequest) Descriptor deprecated added in v1.0.1

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

Deprecated: Use UpdateVolumeRequest.ProtoReflect.Descriptor instead.

func (*UpdateVolumeRequest) GetId added in v1.0.1

func (x *UpdateVolumeRequest) GetId() string

func (*UpdateVolumeRequest) GetVolume added in v1.0.1

func (x *UpdateVolumeRequest) GetVolume() *Volume

func (*UpdateVolumeRequest) ProtoMessage added in v1.0.1

func (*UpdateVolumeRequest) ProtoMessage()

func (*UpdateVolumeRequest) ProtoReflect added in v1.0.1

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

func (*UpdateVolumeRequest) Reset added in v1.0.1

func (x *UpdateVolumeRequest) Reset()

func (*UpdateVolumeRequest) String added in v1.0.1

func (x *UpdateVolumeRequest) String() string

type UpdateVolumeResponse added in v1.0.1

type UpdateVolumeResponse struct {
	Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVolumeResponse) Descriptor deprecated added in v1.0.1

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

Deprecated: Use UpdateVolumeResponse.ProtoReflect.Descriptor instead.

func (*UpdateVolumeResponse) GetVolume added in v1.0.1

func (x *UpdateVolumeResponse) GetVolume() *Volume

func (*UpdateVolumeResponse) ProtoMessage added in v1.0.1

func (*UpdateVolumeResponse) ProtoMessage()

func (*UpdateVolumeResponse) ProtoReflect added in v1.0.1

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

func (*UpdateVolumeResponse) Reset added in v1.0.1

func (x *UpdateVolumeResponse) Reset()

func (*UpdateVolumeResponse) String added in v1.0.1

func (x *UpdateVolumeResponse) String() string

type Volume

type Volume struct {

	//The uuid of the volume.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The createdAt representing the server time when the file share was created.
	CreatedAt string `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// The updatedAt representing the server time when the file share was updated.
	UpdatedAt string `protobuf:"bytes,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// The name of the volume.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// The description of the volume.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// The uuid of the project that the volume belongs to.
	TenantId string `protobuf:"bytes,6,opt,name=tenantId,proto3" json:"tenantId,omitempty"`
	// The uuid of the user that the volume belongs to.
	UserId string `protobuf:"bytes,7,opt,name=userId,proto3" json:"userId,omitempty"`
	// The uuid of the backend that the volume belongs to.
	BackendId string `protobuf:"bytes,8,opt,name=backendId,proto3" json:"backendId,omitempty"`
	// The uuid of the backend that the volume belongs to.
	Backend string `protobuf:"bytes,9,opt,name=backend,proto3" json:"backend,omitempty"`
	// The size of the volume requested by the user.
	Size int64 `protobuf:"varint,10,opt,name=size,proto3" json:"size,omitempty"`
	// The type of the volume.
	Type string `protobuf:"bytes,11,opt,name=type,proto3" json:"type,omitempty"`
	// The location that volume belongs to.
	Region string `protobuf:"bytes,12,opt,name=region,proto3" json:"region,omitempty"`
	// The locality that volume belongs to.
	AvailabilityZone string `protobuf:"bytes,13,opt,name=availabilityZone,proto3" json:"availabilityZone,omitempty"`
	// The status of the volume.
	Status string `protobuf:"bytes,14,opt,name=status,proto3" json:"status,omitempty"`
	// The iops of the volume.
	Iops int64 `protobuf:"varint,15,opt,name=iops,proto3" json:"iops,omitempty"`
	// The uuid of the snapshot which the volume is created
	SnapshotId string `protobuf:"bytes,16,opt,name=snapshotId,proto3" json:"snapshotId,omitempty"`
	// Any tags assigned to the volume.
	Tags []*Tag `protobuf:"bytes,17,rep,name=tags,proto3" json:"tags,omitempty"`
	// Indicates whether Multi-Attach is enabled.
	MultiAttachEnabled bool `protobuf:"varint,18,opt,name=multiAttachEnabled,proto3" json:"multiAttachEnabled,omitempty"`
	// Indicates whether the volume is encrypted.
	Encrypted bool `protobuf:"varint,19,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	// EncryptionSettings that was used to protect the volume encryption.
	EncryptionSettings map[string]string `` /* 178-byte string literal not displayed */
	// Metadata should be kept until the semantics between volume and backend storage resource.
	Metadata *_struct.Struct `protobuf:"bytes,21,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Volume) Descriptor deprecated

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

Deprecated: Use Volume.ProtoReflect.Descriptor instead.

func (*Volume) GetAvailabilityZone

func (x *Volume) GetAvailabilityZone() string

func (*Volume) GetBackend added in v1.0.1

func (x *Volume) GetBackend() string

func (*Volume) GetBackendId

func (x *Volume) GetBackendId() string

func (*Volume) GetCreatedAt

func (x *Volume) GetCreatedAt() string

func (*Volume) GetDescription added in v1.0.1

func (x *Volume) GetDescription() string

func (*Volume) GetEncrypted

func (x *Volume) GetEncrypted() bool

func (*Volume) GetEncryptionSettings added in v1.0.1

func (x *Volume) GetEncryptionSettings() map[string]string

func (*Volume) GetId

func (x *Volume) GetId() string

func (*Volume) GetIops

func (x *Volume) GetIops() int64

func (*Volume) GetMetadata added in v1.0.1

func (x *Volume) GetMetadata() *_struct.Struct

func (*Volume) GetMultiAttachEnabled added in v1.0.1

func (x *Volume) GetMultiAttachEnabled() bool

func (*Volume) GetName

func (x *Volume) GetName() string

func (*Volume) GetRegion

func (x *Volume) GetRegion() string

func (*Volume) GetSize

func (x *Volume) GetSize() int64

func (*Volume) GetSnapshotId added in v1.0.1

func (x *Volume) GetSnapshotId() string

func (*Volume) GetStatus added in v1.0.1

func (x *Volume) GetStatus() string

func (*Volume) GetTags added in v1.0.1

func (x *Volume) GetTags() []*Tag

func (*Volume) GetTenantId

func (x *Volume) GetTenantId() string

func (*Volume) GetType

func (x *Volume) GetType() string

func (*Volume) GetUpdatedAt

func (x *Volume) GetUpdatedAt() string

func (*Volume) GetUserId

func (x *Volume) GetUserId() string

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) ProtoReflect added in v1.0.1

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

func (*Volume) Reset

func (x *Volume) Reset()

func (*Volume) String

func (x *Volume) String() string

Jump to

Keyboard shortcuts

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