Documentation ¶
Overview ¶
Package volume contains specific implementation of cas template engine
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVolumeEngine ¶
func NewVolumeEngine( casConfigPVC string, casConfigSC string, castObj *v1alpha1.CASTemplate, key string, volumeValues map[string]interface{}) (e *volumeEngine, err error)
NewVolumeEngine returns a new instance of casVolumeEngine based on the provided cas configs & volume runtime values
NOTE:
volume runtime values set at **runtime**
by openebs storage provisioner (a kubernetes dynamic storage provisioner)
Types ¶
type ListOperation ¶
type ListOperation struct { // OperationOptions has the options to various volume related // operations OperationOptions // contains filtered or unexported fields }
ListOperation exposes methods to execute volume list operation
func NewListOperation ¶
func NewListOperation(volumes *v1alpha1.CASVolumeList) (*ListOperation, error)
NewListOperation returns a new instance of ListOperation that is capable of listing volumes
func (*ListOperation) List ¶
func (v *ListOperation) List() (*v1alpha1.CASVolumeList, error)
List returns a list of CASVolumeList
type Operation ¶
type Operation struct { // OperationOptions has the options to various volume related // operations OperationOptions // contains filtered or unexported fields }
Operation exposes methods with respect to volume related operations e.g. read, create, delete.
func NewOperation ¶
NewOperation returns a new instance of volumeOperation
type OperationOptions ¶
type OperationOptions struct {
// contains filtered or unexported fields
}
OperationOptions contains the options with respect to volume related operations