v1alpha1

package
Version: v2.8.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CASVolume

type CASVolume struct{}

CASVolume struct

func (CASVolume) CreateSnapshot

func (v CASVolume) CreateSnapshot(castype, volName, snapName, namespace string) (string, error)

CreateSnapshot to create the Vsm through a API call to m-apiserver

func (CASVolume) CreateVolume

func (v CASVolume) CreateVolume(vol v1alpha1.CASVolume) error

CreateVolume to create the CAS volume through a API call to m-apiserver

func (CASVolume) DeleteSnapshot

func (v CASVolume) DeleteSnapshot(castype, volName, snapName, namespace string) (string, error)

func (CASVolume) DeleteVolume

func (v CASVolume) DeleteVolume(vname string, namespace string) error

DeleteVolume to get delete CAS volume through a API call to m-apiserver

func (CASVolume) GetMayaClusterIP

func (v CASVolume) GetMayaClusterIP(client kubernetes.Interface) (string, error)

GetMayaClusterIP returns maya-apiserver IP address

func (CASVolume) ListSnapshot

func (v CASVolume) ListSnapshot(volName string, snapname string, namespace string, obj interface{}) error

ListVolume to get the info of Vsm through a API call to m-apiserver

func (CASVolume) ReadVolume

func (v CASVolume) ReadVolume(vname, namespace, storageclass string, obj interface{}) error

ReadVolume to get the info of CAS volume through a API call to m-apiserver

func (CASVolume) SnapshotInfo

func (v CASVolume) SnapshotInfo(volName string, snapName string) (string, error)

type CASVolumeInterface

type CASVolumeInterface interface {
	Creater
	Reader
	Deleter
}

CASVolumeInterface Interface CAS volume operations

type Creater

type Creater interface {
	CreateVolume(v1alpha1.CASVolume) (string, error)
}

Creater interface for volume create operations

type Deleter

type Deleter interface {
	DeleteVolume(vname string) error
}

Deleter interface for volume delete operations

type Reader

type Reader interface {
	ReadVolume(vname string, namespace string, obj interface{}) error
}

Reader interface for volume read operations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL