v1alpha1

package
v0.5.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v1alpha1 is the API version +groupName=openebs.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder is the scheme builder
	// with scheme init functions to run
	// for this API package
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme is a global function that
	// registers this API group & version to
	// a scheme
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "openebs.io",
	Version: "v1alpha1",
}

SchemeGroupVersion is group version used to register custom resources

NOTE:

This variable name should not be changed

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type MountInfo

type MountInfo struct {
	// FSType of a volume will specify the
	// format type - ext4(default), xfs of PV
	FSType string `json:"fsType"`

	// AccessMode of a volume will hold the
	// access mode of the volume
	AccessModes []string `json:"accessModes"`

	// MountPath of the volume will hold the
	// path on which the volume is mounted
	// on that node
	MountPath string `json:"mountPath"`

	// ReadOnly specifies if the volume needs
	// to be mounted in ReadOnly mode
	ReadOnly bool `json:"readOnly"`

	// MountOptions specifies the options with
	// which mount needs to be attempted
	MountOptions []string `json:"mountOptions"`
}

MountInfo contains the volume related info for all types of volumes in ZFSVolume

func (*MountInfo) DeepCopy

func (in *MountInfo) DeepCopy() *MountInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MountInfo.

func (*MountInfo) DeepCopyInto

func (in *MountInfo) DeepCopyInto(out *MountInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SnapStatus

type SnapStatus struct {
	State string `json:"state,omitempty"`
}

func (*SnapStatus) DeepCopy

func (in *SnapStatus) DeepCopy() *SnapStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapStatus.

func (*SnapStatus) DeepCopyInto

func (in *SnapStatus) DeepCopyInto(out *SnapStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VolumeInfo

type VolumeInfo struct {
	// OwnerNodeID is the Node ID which
	// is the owner of this Volume
	OwnerNodeID string `json:"ownerNodeID"`

	// poolName specifies the name of the
	// pool where this volume should be created
	PoolName string `json:"poolName"`

	// SnapName specifies the name of the
	// snapshot where this volume should be cloned
	SnapName string `json:"snapname,omitempty"`

	// Capacity of the volume
	Capacity string `json:"capacity"`

	// RecordSize specifies the record size
	// for the zfs dataset
	RecordSize string `json:"recordsize,omitempty"`

	// VolBlockSize specifies the block size for the zvol
	VolBlockSize string `json:"volblocksize,omitempty"`

	// Compression specifies if the it should
	// enabled on the zvol
	Compression string `json:"compression,omitempty"`

	// Dedup specifies the deduplication
	// should be enabled on the zvol
	Dedup string `json:"dedup,omitempty"`

	// Encryption specifies the encryption
	// should be enabled on the zvol
	Encryption string `json:"encryption,omitempty"`

	// KeyLocation is the location of key
	// for the encryption
	KeyLocation string `json:"keylocation,omitempty"`

	// KeyFormat specifies format of the
	// encryption key
	KeyFormat string `json:"keyformat,omitempty"`

	// Thinprovision specifies if we should
	// thin provisioned the volume or not
	ThinProvision string `json:"thinProvision,omitempty"`

	// VolumeType specifies whether the volume is
	// zvol or a dataset
	VolumeType string `json:"volumeType"`

	// FsType specifies filesystem type for the
	// zfs volume/dataset
	FsType string `json:"fsType,omitempty"`
}

VolumeInfo contains the volume related info for all types of volumes in ZFSVolume

func (*VolumeInfo) DeepCopy

func (in *VolumeInfo) DeepCopy() *VolumeInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeInfo.

func (*VolumeInfo) DeepCopyInto

func (in *VolumeInfo) DeepCopyInto(out *VolumeInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ZFSSnapshot

type ZFSSnapshot struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VolumeInfo `json:"spec"`
	Status SnapStatus `json:"status"`
}

ZFSSnapshot represents a ZFS Snapshot of the zfsvolume

func (*ZFSSnapshot) DeepCopy

func (in *ZFSSnapshot) DeepCopy() *ZFSSnapshot

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZFSSnapshot.

func (*ZFSSnapshot) DeepCopyInto

func (in *ZFSSnapshot) DeepCopyInto(out *ZFSSnapshot)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ZFSSnapshot) DeepCopyObject

func (in *ZFSSnapshot) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ZFSSnapshotList

type ZFSSnapshotList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ZFSSnapshot `json:"items"`
}

ZFSSnapshotList is a list of ZFSSnapshot resources

func (*ZFSSnapshotList) DeepCopy

func (in *ZFSSnapshotList) DeepCopy() *ZFSSnapshotList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZFSSnapshotList.

func (*ZFSSnapshotList) DeepCopyInto

func (in *ZFSSnapshotList) DeepCopyInto(out *ZFSSnapshotList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ZFSSnapshotList) DeepCopyObject

func (in *ZFSSnapshotList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ZFSVolume

type ZFSVolume struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec VolumeInfo `json:"spec"`
}

ZFSVolume represents a ZFS based volume

func (*ZFSVolume) DeepCopy

func (in *ZFSVolume) DeepCopy() *ZFSVolume

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZFSVolume.

func (*ZFSVolume) DeepCopyInto

func (in *ZFSVolume) DeepCopyInto(out *ZFSVolume)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ZFSVolume) DeepCopyObject

func (in *ZFSVolume) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ZFSVolumeList

type ZFSVolumeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ZFSVolume `json:"items"`
}

ZFSVolumeList is a list of ZFSVolume resources

func (*ZFSVolumeList) DeepCopy

func (in *ZFSVolumeList) DeepCopy() *ZFSVolumeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZFSVolumeList.

func (*ZFSVolumeList) DeepCopyInto

func (in *ZFSVolumeList) DeepCopyInto(out *ZFSVolumeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ZFSVolumeList) DeepCopyObject

func (in *ZFSVolumeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

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