cluster

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 DeleteController

type DeleteController struct {
	beego.Controller
}

func (*DeleteController) Delete

func (c *DeleteController) Delete()

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

type EditController

type EditController struct {
	beego.Controller
}

func (*EditController) Get

func (c *EditController) 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 /:clusterName [get]

func (*EditController) Post

func (c *EditController) Post()

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

func (*EditController) Put

func (c *EditController) Put()

@Title update @Description update gluster cluster configuration @Param body body guirestapi.filesystem.glusterfs.cluster.GlusterfsClusterInput true "body for glusterfs cluster configuration" @Success 200 {string} {} @Failure 404 error reason @router / [put]

type GlusterfsCluster

type GlusterfsCluster struct {
	Name              string
	HostSlice         []string
	Path              string
	SSHDialTimeout    time.Duration
	SSHSessionTimeout time.Duration
	SSHPort           int
	SSHUser           string
	SSHPassword       string
}

type GlusterfsClusterInput

type GlusterfsClusterInput struct {
	Name                           string
	HostSlice                      []string
	Path                           string
	SSHDialTimeoutInMilliSecond    int
	SSHSessionTimeoutInMilliSecond int
	SSHPort                        int
	SSHUser                        string
	SSHPassword                    string
}

type ListController

type ListController struct {
	beego.Controller
}

func (*ListController) Get

func (c *ListController) Get()

@Title get @Description get all glusterfs cluster configurations @Success 200 {string} []GlusterfsCluster @Failure 404 error reason @router / [get]

Jump to

Keyboard shortcuts

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