lib

package
v0.0.0-...-cebfaed Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Vol_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Vol",
	HandlerType: (*VolServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListVol",
			Handler:    _Vol_ListVol_Handler,
		},
		{
			MethodName: "CreateVol",
			Handler:    _Vol_CreateVol_Handler,
		},
		{
			MethodName: "RemoveVol",
			Handler:    _Vol_RemoveVol_Handler,
		},
		{
			MethodName: "CloneVol",
			Handler:    _Vol_CloneVol_Handler,
		},
		{
			MethodName: "ExpandVol",
			Handler:    _Vol_ExpandVol_Handler,
		},
		{
			MethodName: "CreateSnapshot",
			Handler:    _Vol_CreateSnapshot_Handler,
		},
		{
			MethodName: "RemoveSnapshot",
			Handler:    _Vol_RemoveSnapshot_Handler,
		},
		{
			MethodName: "ListSnapshot",
			Handler:    _Vol_ListSnapshot_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vol.proto",
}

Vol_ServiceDesc is the grpc.ServiceDesc for Vol service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVolServer

func RegisterVolServer(s grpc.ServiceRegistrar, srv VolServer)

Types

type CloneVolReply

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

func (*CloneVolReply) Descriptor deprecated

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

Deprecated: Use CloneVolReply.ProtoReflect.Descriptor instead.

func (*CloneVolReply) GetCommandOutput

func (x *CloneVolReply) GetCommandOutput() string

func (*CloneVolReply) ProtoMessage

func (*CloneVolReply) ProtoMessage()

func (*CloneVolReply) ProtoReflect

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

func (*CloneVolReply) Reset

func (x *CloneVolReply) Reset()

func (*CloneVolReply) String

func (x *CloneVolReply) String() string

type CloneVolRequest

type CloneVolRequest struct {
	VgName     string `protobuf:"bytes,1,opt,name=vg_name,json=vgName,proto3" json:"vg_name,omitempty"`
	SourceName string `protobuf:"bytes,2,opt,name=source_name,json=sourceName,proto3" json:"source_name,omitempty"`
	DestName   string `protobuf:"bytes,3,opt,name=dest_name,json=destName,proto3" json:"dest_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CloneVolRequest) Descriptor deprecated

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

Deprecated: Use CloneVolRequest.ProtoReflect.Descriptor instead.

func (*CloneVolRequest) GetDestName

func (x *CloneVolRequest) GetDestName() string

func (*CloneVolRequest) GetSourceName

func (x *CloneVolRequest) GetSourceName() string

func (*CloneVolRequest) GetVgName

func (x *CloneVolRequest) GetVgName() string

func (*CloneVolRequest) ProtoMessage

func (*CloneVolRequest) ProtoMessage()

func (*CloneVolRequest) ProtoReflect

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

func (*CloneVolRequest) Reset

func (x *CloneVolRequest) Reset()

func (*CloneVolRequest) String

func (x *CloneVolRequest) String() string

type CreateSnapshotReply

type CreateSnapshotReply struct {
	SizeBytes int64 `protobuf:"varint,1,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSnapshotReply) Descriptor deprecated

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

Deprecated: Use CreateSnapshotReply.ProtoReflect.Descriptor instead.

func (*CreateSnapshotReply) GetSizeBytes

func (x *CreateSnapshotReply) GetSizeBytes() int64

func (*CreateSnapshotReply) ProtoMessage

func (*CreateSnapshotReply) ProtoMessage()

func (*CreateSnapshotReply) ProtoReflect

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

func (*CreateSnapshotReply) Reset

func (x *CreateSnapshotReply) Reset()

func (*CreateSnapshotReply) String

func (x *CreateSnapshotReply) String() string

type CreateSnapshotRequest

type CreateSnapshotRequest struct {
	VgName        string            `protobuf:"bytes,1,opt,name=vg_name,json=vgName,proto3" json:"vg_name,omitempty"`
	SnapshotName  string            `protobuf:"bytes,2,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
	SrcVolumeName string            `protobuf:"bytes,3,opt,name=src_volume_name,json=srcVolumeName,proto3" json:"src_volume_name,omitempty"`
	Readonly      bool              `protobuf:"varint,4,opt,name=readonly,proto3" json:"readonly,omitempty"`
	RoInitSize    int64             `protobuf:"varint,5,opt,name=roInitSize,proto3" json:"roInitSize,omitempty"`
	S3Secrets     map[string]string `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateSnapshotRequest) Descriptor deprecated

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

Deprecated: Use CreateSnapshotRequest.ProtoReflect.Descriptor instead.

func (*CreateSnapshotRequest) GetReadonly

func (x *CreateSnapshotRequest) GetReadonly() bool

func (*CreateSnapshotRequest) GetRoInitSize

func (x *CreateSnapshotRequest) GetRoInitSize() int64

func (*CreateSnapshotRequest) GetS3Secrets

func (x *CreateSnapshotRequest) GetS3Secrets() map[string]string

func (*CreateSnapshotRequest) GetSnapshotName

func (x *CreateSnapshotRequest) GetSnapshotName() string

func (*CreateSnapshotRequest) GetSrcVolumeName

func (x *CreateSnapshotRequest) GetSrcVolumeName() string

func (*CreateSnapshotRequest) GetVgName

func (x *CreateSnapshotRequest) GetVgName() string

func (*CreateSnapshotRequest) ProtoMessage

func (*CreateSnapshotRequest) ProtoMessage()

func (*CreateSnapshotRequest) ProtoReflect

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

func (*CreateSnapshotRequest) Reset

func (x *CreateSnapshotRequest) Reset()

func (*CreateSnapshotRequest) String

func (x *CreateSnapshotRequest) String() string

type CreateVolReply

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

func (*CreateVolReply) Descriptor deprecated

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

Deprecated: Use CreateVolReply.ProtoReflect.Descriptor instead.

func (*CreateVolReply) GetCommandOutput

func (x *CreateVolReply) GetCommandOutput() string

func (*CreateVolReply) ProtoMessage

func (*CreateVolReply) ProtoMessage()

func (*CreateVolReply) ProtoReflect

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

func (*CreateVolReply) Reset

func (x *CreateVolReply) Reset()

func (*CreateVolReply) String

func (x *CreateVolReply) String() string

type CreateVolRequest

type CreateVolRequest struct {
	VolumeGroup  string   `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"`
	Name         string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Size         uint64   `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	CloneName    string   `protobuf:"bytes,4,opt,name=clone_name,json=cloneName,proto3" json:"clone_name,omitempty"`
	Tags         []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	SnapshotName string   `protobuf:"bytes,6,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVolRequest) Descriptor deprecated

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

Deprecated: Use CreateVolRequest.ProtoReflect.Descriptor instead.

func (*CreateVolRequest) GetCloneName

func (x *CreateVolRequest) GetCloneName() string

func (*CreateVolRequest) GetName

func (x *CreateVolRequest) GetName() string

func (*CreateVolRequest) GetSize

func (x *CreateVolRequest) GetSize() uint64

func (*CreateVolRequest) GetSnapshotName

func (x *CreateVolRequest) GetSnapshotName() string

func (*CreateVolRequest) GetTags

func (x *CreateVolRequest) GetTags() []string

func (*CreateVolRequest) GetVolumeGroup

func (x *CreateVolRequest) GetVolumeGroup() string

func (*CreateVolRequest) ProtoMessage

func (*CreateVolRequest) ProtoMessage()

func (*CreateVolRequest) ProtoReflect

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

func (*CreateVolRequest) Reset

func (x *CreateVolRequest) Reset()

func (*CreateVolRequest) String

func (x *CreateVolRequest) String() string

type ExpandVolReply

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

func (*ExpandVolReply) Descriptor deprecated

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

Deprecated: Use ExpandVolReply.ProtoReflect.Descriptor instead.

func (*ExpandVolReply) GetCommandOutput

func (x *ExpandVolReply) GetCommandOutput() string

func (*ExpandVolReply) ProtoMessage

func (*ExpandVolReply) ProtoMessage()

func (*ExpandVolReply) ProtoReflect

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

func (*ExpandVolReply) Reset

func (x *ExpandVolReply) Reset()

func (*ExpandVolReply) String

func (x *ExpandVolReply) String() string

type ExpandVolRequest

type ExpandVolRequest struct {
	VolumeGroup string `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Size        uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*ExpandVolRequest) Descriptor deprecated

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

Deprecated: Use ExpandVolRequest.ProtoReflect.Descriptor instead.

func (*ExpandVolRequest) GetName

func (x *ExpandVolRequest) GetName() string

func (*ExpandVolRequest) GetSize

func (x *ExpandVolRequest) GetSize() uint64

func (*ExpandVolRequest) GetVolumeGroup

func (x *ExpandVolRequest) GetVolumeGroup() string

func (*ExpandVolRequest) ProtoMessage

func (*ExpandVolRequest) ProtoMessage()

func (*ExpandVolRequest) ProtoReflect

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

func (*ExpandVolRequest) Reset

func (x *ExpandVolRequest) Reset()

func (*ExpandVolRequest) String

func (x *ExpandVolRequest) String() string

type LVAttributes

type LVAttributes struct {
	Type              VolumeType
	Permissions       VolumePermissions
	Allocation        VolumeAllocation
	FixedMinor        VolumeFixedMinor
	State             VolumeState
	Open              VolumeOpen
	TargetType        VolumeTargetType
	Zeroing           VolumeZeroing
	Health            VolumeHealth
	ActivationSkipped VolumeActivationSkipped
}

LVAttributes is attributes

type ListSnapshotReply

type ListSnapshotReply struct {
	Snapshots []*VolumeSnapshost `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSnapshotReply) Descriptor deprecated

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

Deprecated: Use ListSnapshotReply.ProtoReflect.Descriptor instead.

func (*ListSnapshotReply) GetSnapshots

func (x *ListSnapshotReply) GetSnapshots() []*VolumeSnapshost

func (*ListSnapshotReply) ProtoMessage

func (*ListSnapshotReply) ProtoMessage()

func (*ListSnapshotReply) ProtoReflect

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

func (*ListSnapshotReply) Reset

func (x *ListSnapshotReply) Reset()

func (*ListSnapshotReply) String

func (x *ListSnapshotReply) String() string

type ListSnapshotRequest

type ListSnapshotRequest struct {
	VolumeGroup string `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"`
	VolumeName  string `protobuf:"bytes,2,opt,name=volume_name,json=volumeName,proto3" json:"volume_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSnapshotRequest) Descriptor deprecated

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

Deprecated: Use ListSnapshotRequest.ProtoReflect.Descriptor instead.

func (*ListSnapshotRequest) GetVolumeGroup

func (x *ListSnapshotRequest) GetVolumeGroup() string

func (*ListSnapshotRequest) GetVolumeName

func (x *ListSnapshotRequest) GetVolumeName() string

func (*ListSnapshotRequest) ProtoMessage

func (*ListSnapshotRequest) ProtoMessage()

func (*ListSnapshotRequest) ProtoReflect

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

func (*ListSnapshotRequest) Reset

func (x *ListSnapshotRequest) Reset()

func (*ListSnapshotRequest) String

func (x *ListSnapshotRequest) String() string

type ListVolReply

type ListVolReply struct {
	Volumes []*LogicalVolume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVolReply) Descriptor deprecated

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

Deprecated: Use ListVolReply.ProtoReflect.Descriptor instead.

func (*ListVolReply) GetVolumes

func (x *ListVolReply) GetVolumes() []*LogicalVolume

func (*ListVolReply) ProtoMessage

func (*ListVolReply) ProtoMessage()

func (*ListVolReply) ProtoReflect

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

func (*ListVolReply) Reset

func (x *ListVolReply) Reset()

func (*ListVolReply) String

func (x *ListVolReply) String() string

type ListVolRequest

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

func (*ListVolRequest) Descriptor deprecated

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

Deprecated: Use ListVolRequest.ProtoReflect.Descriptor instead.

func (*ListVolRequest) GetVolumeGroup

func (x *ListVolRequest) GetVolumeGroup() string

func (*ListVolRequest) ProtoMessage

func (*ListVolRequest) ProtoMessage()

func (*ListVolRequest) ProtoReflect

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

func (*ListVolRequest) Reset

func (x *ListVolRequest) Reset()

func (*ListVolRequest) String

func (x *ListVolRequest) String() string

type LogicalVolume

type LogicalVolume struct {
	VolumeGroup  string   `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"`
	Name         string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Size         uint64   `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	CloneName    string   `protobuf:"bytes,4,opt,name=clone_name,json=cloneName,proto3" json:"clone_name,omitempty"`
	Tags         []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	SnapshotName string   `protobuf:"bytes,6,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
	Status       string   `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*LogicalVolume) Descriptor deprecated

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

Deprecated: Use LogicalVolume.ProtoReflect.Descriptor instead.

func (*LogicalVolume) GetCloneName

func (x *LogicalVolume) GetCloneName() string

func (*LogicalVolume) GetName

func (x *LogicalVolume) GetName() string

func (*LogicalVolume) GetSize

func (x *LogicalVolume) GetSize() uint64

func (*LogicalVolume) GetSnapshotName

func (x *LogicalVolume) GetSnapshotName() string

func (*LogicalVolume) GetStatus

func (x *LogicalVolume) GetStatus() string

func (*LogicalVolume) GetTags

func (x *LogicalVolume) GetTags() []string

func (*LogicalVolume) GetVolumeGroup

func (x *LogicalVolume) GetVolumeGroup() string

func (*LogicalVolume) ProtoMessage

func (*LogicalVolume) ProtoMessage()

func (*LogicalVolume) ProtoReflect

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

func (*LogicalVolume) Reset

func (x *LogicalVolume) Reset()

func (*LogicalVolume) String

func (x *LogicalVolume) String() string

type PV

type PV struct {
	Name     string
	Size     uint64
	FreeSize uint64
	UUID     string
	Tags     []string
	VgName   string
}

PV is physical volume

type RemoveSnapshotReply

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

func (*RemoveSnapshotReply) Descriptor deprecated

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

Deprecated: Use RemoveSnapshotReply.ProtoReflect.Descriptor instead.

func (*RemoveSnapshotReply) GetCommandOutput

func (x *RemoveSnapshotReply) GetCommandOutput() string

func (*RemoveSnapshotReply) ProtoMessage

func (*RemoveSnapshotReply) ProtoMessage()

func (*RemoveSnapshotReply) ProtoReflect

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

func (*RemoveSnapshotReply) Reset

func (x *RemoveSnapshotReply) Reset()

func (*RemoveSnapshotReply) String

func (x *RemoveSnapshotReply) String() string

type RemoveSnapshotRequest

type RemoveSnapshotRequest struct {
	VgName       string `protobuf:"bytes,1,opt,name=vg_name,json=vgName,proto3" json:"vg_name,omitempty"`
	SnapshotName string `protobuf:"bytes,2,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveSnapshotRequest) Descriptor deprecated

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

Deprecated: Use RemoveSnapshotRequest.ProtoReflect.Descriptor instead.

func (*RemoveSnapshotRequest) GetSnapshotName

func (x *RemoveSnapshotRequest) GetSnapshotName() string

func (*RemoveSnapshotRequest) GetVgName

func (x *RemoveSnapshotRequest) GetVgName() string

func (*RemoveSnapshotRequest) ProtoMessage

func (*RemoveSnapshotRequest) ProtoMessage()

func (*RemoveSnapshotRequest) ProtoReflect

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

func (*RemoveSnapshotRequest) Reset

func (x *RemoveSnapshotRequest) Reset()

func (*RemoveSnapshotRequest) String

func (x *RemoveSnapshotRequest) String() string

type RemoveVolReply

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

func (*RemoveVolReply) Descriptor deprecated

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

Deprecated: Use RemoveVolReply.ProtoReflect.Descriptor instead.

func (*RemoveVolReply) GetCommandOutput

func (x *RemoveVolReply) GetCommandOutput() string

func (*RemoveVolReply) ProtoMessage

func (*RemoveVolReply) ProtoMessage()

func (*RemoveVolReply) ProtoReflect

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

func (*RemoveVolReply) Reset

func (x *RemoveVolReply) Reset()

func (*RemoveVolReply) String

func (x *RemoveVolReply) String() string

type RemoveVolRequest

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

func (*RemoveVolRequest) Descriptor deprecated

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

Deprecated: Use RemoveVolRequest.ProtoReflect.Descriptor instead.

func (*RemoveVolRequest) GetName

func (x *RemoveVolRequest) GetName() string

func (*RemoveVolRequest) GetVolumeGroup

func (x *RemoveVolRequest) GetVolumeGroup() string

func (*RemoveVolRequest) ProtoMessage

func (*RemoveVolRequest) ProtoMessage()

func (*RemoveVolRequest) ProtoReflect

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

func (*RemoveVolRequest) Reset

func (x *RemoveVolRequest) Reset()

func (*RemoveVolRequest) String

func (x *RemoveVolRequest) String() string

type UnimplementedVolServer

type UnimplementedVolServer struct {
}

UnimplementedVolServer must be embedded to have forward compatible implementations.

func (UnimplementedVolServer) CloneVol

func (UnimplementedVolServer) CreateSnapshot

func (UnimplementedVolServer) CreateVol

func (UnimplementedVolServer) ExpandVol

func (UnimplementedVolServer) ListSnapshot

func (UnimplementedVolServer) ListVol

func (UnimplementedVolServer) RemoveSnapshot

func (UnimplementedVolServer) RemoveVol

type UnsafeVolServer

type UnsafeVolServer interface {
	// contains filtered or unexported methods
}

UnsafeVolServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VolServer will result in compilation errors.

type VG

type VG struct {
	Name     string
	Size     uint64
	FreeSize uint64
	UUID     string
	Tags     []string
	PvCount  uint64
}

VG is volume group

func (VG) ToProto

func (vg VG) ToProto() *VolumeGroup

ToProto to proto

type Vol

type Vol struct {
	Name         string
	Size         uint64
	Tags         []string
	VGName       string
	Status       string
	SnapshotName string
	CloneName    string
}

LV is a logical volume

func (Vol) ToProto

func (lv Vol) ToProto() *LogicalVolume

ToProto returns lvm.LogicalVolume representation of struct

type VolClient

type VolClient interface {
	ListVol(ctx context.Context, in *ListVolRequest, opts ...grpc.CallOption) (*ListVolReply, error)
	CreateVol(ctx context.Context, in *CreateVolRequest, opts ...grpc.CallOption) (*CreateVolReply, error)
	RemoveVol(ctx context.Context, in *RemoveVolRequest, opts ...grpc.CallOption) (*RemoveVolReply, error)
	CloneVol(ctx context.Context, in *CloneVolRequest, opts ...grpc.CallOption) (*CloneVolReply, error)
	ExpandVol(ctx context.Context, in *ExpandVolRequest, opts ...grpc.CallOption) (*ExpandVolReply, error)
	CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotReply, error)
	RemoveSnapshot(ctx context.Context, in *RemoveSnapshotRequest, opts ...grpc.CallOption) (*RemoveSnapshotReply, error)
	ListSnapshot(ctx context.Context, in *ListSnapshotRequest, opts ...grpc.CallOption) (*ListSnapshotReply, error)
}

VolClient is the client API for Vol service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewVolClient

func NewVolClient(cc grpc.ClientConnInterface) VolClient

type VolServer

VolServer is the server API for Vol service. All implementations must embed UnimplementedVolServer for forward compatibility

type VolumeActivationSkipped

type VolumeActivationSkipped rune

VolumeActivationSkipped is volume activation

const (
	VolumeActivationSkippedIsSkipped    VolumeActivationSkipped = 's'
	VolumeActivationSkippedIsNotSkipped VolumeActivationSkipped = '-'
)

activation

type VolumeAllocation

type VolumeAllocation rune

VolumeAllocation is volume allocation policy

const (
	VolumeAllocationAnywhere         VolumeAllocation = 'a'
	VolumeAllocationContiguous       VolumeAllocation = 'c'
	VolumeAllocationInherited        VolumeAllocation = 'i'
	VolumeAllocationCling            VolumeAllocation = 'l'
	VolumeAllocationNormal           VolumeAllocation = 'n'
	VolumeAllocationAnywhereLocked   VolumeAllocation = 'A'
	VolumeAllocationContiguousLocked VolumeAllocation = 'C'
	VolumeAllocationInheritedLocked  VolumeAllocation = 'I'
	VolumeAllocationClingLocked      VolumeAllocation = 'L'
	VolumeAllocationNormalLocked     VolumeAllocation = 'N'
)

allocations

type VolumeFixedMinor

type VolumeFixedMinor rune

VolumeFixedMinor is volume fixed minor

const (
	VolumeFixedMinorEnabled  VolumeFixedMinor = 'm'
	VolumeFixedMinorDisabled VolumeFixedMinor = '-'
)

fixed minor

type VolumeGroup

type VolumeGroup struct {
	Name     string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Size     uint64   `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	FreeSize uint64   `protobuf:"varint,3,opt,name=free_size,json=freeSize,proto3" json:"free_size,omitempty"`
	Uuid     string   `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Tags     []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	HostPath uint64   `protobuf:"varint,6,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeGroup) Descriptor deprecated

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

Deprecated: Use VolumeGroup.ProtoReflect.Descriptor instead.

func (*VolumeGroup) GetFreeSize

func (x *VolumeGroup) GetFreeSize() uint64

func (*VolumeGroup) GetHostPath

func (x *VolumeGroup) GetHostPath() uint64

func (*VolumeGroup) GetName

func (x *VolumeGroup) GetName() string

func (*VolumeGroup) GetSize

func (x *VolumeGroup) GetSize() uint64

func (*VolumeGroup) GetTags

func (x *VolumeGroup) GetTags() []string

func (*VolumeGroup) GetUuid

func (x *VolumeGroup) GetUuid() string

func (*VolumeGroup) ProtoMessage

func (*VolumeGroup) ProtoMessage()

func (*VolumeGroup) ProtoReflect

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

func (*VolumeGroup) Reset

func (x *VolumeGroup) Reset()

func (*VolumeGroup) String

func (x *VolumeGroup) String() string

type VolumeHealth

type VolumeHealth rune

VolumeHealth is volume health

const (
	VolumeHealthOK              VolumeHealth = '-'
	VolumeHealthPartial         VolumeHealth = 'p'
	VolumeHealthRefreshNeeded   VolumeHealth = 'r'
	VolumeHealthMismatchesExist VolumeHealth = 'm'
	VolumeHealthWritemostly     VolumeHealth = 'w'
)

health

type VolumeOpen

type VolumeOpen rune

VolumeOpen is volume open

const (
	VolumeOpenIsOpen    VolumeOpen = 'o'
	VolumeOpenIsNotOpen VolumeOpen = '-'
)

open

type VolumePermissions

type VolumePermissions rune

VolumePermissions is volume permissions

const (
	VolumePermissionsWriteable          VolumePermissions = 'w'
	VolumePermissionsReadOnly           VolumePermissions = 'r'
	VolumePermissionsReadOnlyActivation VolumePermissions = 'R'
)

permissions

type VolumeSnapshost

type VolumeSnapshost struct {
	VolumeGroup  string `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"`
	VolumeName   string `protobuf:"bytes,2,opt,name=volume_name,json=volumeName,proto3" json:"volume_name,omitempty"`
	SnapshotName string `protobuf:"bytes,3,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"`
	Status       string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeSnapshost) Descriptor deprecated

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

Deprecated: Use VolumeSnapshost.ProtoReflect.Descriptor instead.

func (*VolumeSnapshost) GetSnapshotName

func (x *VolumeSnapshost) GetSnapshotName() string

func (*VolumeSnapshost) GetStatus

func (x *VolumeSnapshost) GetStatus() string

func (*VolumeSnapshost) GetVolumeGroup

func (x *VolumeSnapshost) GetVolumeGroup() string

func (*VolumeSnapshost) GetVolumeName

func (x *VolumeSnapshost) GetVolumeName() string

func (*VolumeSnapshost) ProtoMessage

func (*VolumeSnapshost) ProtoMessage()

func (*VolumeSnapshost) ProtoReflect

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

func (*VolumeSnapshost) Reset

func (x *VolumeSnapshost) Reset()

func (*VolumeSnapshost) String

func (x *VolumeSnapshost) String() string

type VolumeState

type VolumeState rune

VolumeState is volume state

const (
	VolumeStateActive                               VolumeState = 'a'
	VolumeStateSuspended                            VolumeState = 's'
	VolumeStateInvalidSnapshot                      VolumeState = 'I'
	VolumeStateInvalidSuspendedSnapshot             VolumeState = 'S'
	VolumeStateSnapshotMergeFailed                  VolumeState = 'm'
	VolumeStateSuspendedSnapshotMergeFailed         VolumeState = 'M'
	VolumeStateMappedDevicePresentWithoutTables     VolumeState = 'd'
	VolumeStateMappedDevicePresentWithInactiveTable VolumeState = 'i'
)

states

type VolumeTargetType

type VolumeTargetType rune

VolumeTargetType is volume taget type

const (
	VolumeTargetTypeMirror   VolumeTargetType = 'm'
	VolumeTargetTypeRAID     VolumeTargetType = 'r'
	VolumeTargetTypeSnapshot VolumeTargetType = 's'
	VolumeTargetTypeThin     VolumeTargetType = 't'
	VolumeTargetTypeUnknown  VolumeTargetType = 'u'
	VolumeTargetTypeVirtual  VolumeTargetType = 'v'
)

target type

type VolumeType

type VolumeType byte

VolumeType is volume type

const (
	VolumeTypeMirrored                  VolumeType = 'm'
	VolumeTypeMirroredWithoutSync       VolumeType = 'M'
	VolumeTypeOrigin                    VolumeType = 'o'
	VolumeTypeOriginWithMergingSnapshot VolumeType = 'O'
	VolumeTypeRAID                      VolumeType = 'r'
	VolumeTypeRAIDWithoutSync           VolumeType = 'R'
	VolumeTypeSnapshot                  VolumeType = 's'
	VolumeTypeMergingSnapshot           VolumeType = 'S'
	VolumeTypePVMove                    VolumeType = 'p'
	VolumeTypeVirtualMirror             VolumeType = 'v'
	VolumeTypeVirtualRaidImage          VolumeType = 'i'
	VolumeTypeRaidImageOutOfSync        VolumeType = 'I'
	VolumeTypeMirrorLog                 VolumeType = 'l'
	VolumeTypeUnderConversion           VolumeType = 'c'
	VolumeTypeThin                      VolumeType = 'V'
	VolumeTypeThinPool                  VolumeType = 't'
	VolumeTypeThinPoolData              VolumeType = 'T'
	VolumeTypeRaidOrThinPoolMetadata    VolumeType = 'e'
)

types

type VolumeZeroing

type VolumeZeroing rune

VolumeZeroing is volume zeroing

const (
	VolumeZeroingIsZeroing    VolumeZeroing = 'z'
	VolumeZeroingIsNonZeroing VolumeZeroing = '-'
)

zeroing

Jump to

Keyboard shortcuts

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