volume

package
v0.0.0-...-b1c395d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateController

type CreateController struct {
	beego.Controller
}

func (*CreateController) Get

func (c *CreateController) Get()

@Title get @Description get the glusterfs cluster configuration @Param clusterName path string true "The name of glusterfs cluster configuration" @Success 200 {object} guirestapi.filesystem.glusterfs.cluster.GlusterfsCluster @Failure 404 error reason @router /createinformation/:clusterName [get]

func (*CreateController) Post

func (c *CreateController) Post()

@Title create @Description create gluster volume @Param body body guirestapi.filesystem.glusterfs.cluster.GlusterfsVolumeInput true "body for glusterfs volume" @Success 200 {string} {} @Failure 404 error reason @router / [post]

type DeleteController

type DeleteController struct {
	beego.Controller
}

func (*DeleteController) Delete

func (c *DeleteController) Delete()

@Title delete @Description delete the gluster volume @Param glusterfsVolume path string true "The name of gluster volume" @Param clusterName path string true "The name of gluster cluster configuration" @Success 200 {string} {} @Failure 404 error reason @router /:clusterName/:glusterfsVolume [delete]

type GlusterfsVolume

type GlusterfsVolume struct {
	VolumeName     string
	Type           string
	VolumeID       string
	Status         string
	NumberOfBricks string
	TransportType  string
	Bricks         []string
	Size           int
	ClusterName    string
}

type GlusterfsVolumeInput

type GlusterfsVolumeInput struct {
	Name      string
	Stripe    int
	Replica   int
	Transport string
	HostSlice []string
}

type ListController

type ListController struct {
	beego.Controller
}

func (*ListController) Get

func (c *ListController) Get()

@Title get @Description get all glusterfs cluster configurations @Param clusterName path string true "The name of gluster cluster configuration" @Success 200 {string} []GlusterfsVolume @Failure 404 error reason @router /:clusterName [get]

Jump to

Keyboard shortcuts

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