Documentation ¶
Index ¶
- type KubePersistentVolumeClaimController
- type RobinPersistentVolumeClaimController
- func (c *RobinPersistentVolumeClaimController) ActiveImage()
- func (c *RobinPersistentVolumeClaimController) CreateSnapshot()
- func (c *RobinPersistentVolumeClaimController) DeleteAllSnapshot()
- func (c *RobinPersistentVolumeClaimController) DeleteSnapshot()
- func (c *RobinPersistentVolumeClaimController) GetPvcStatus()
- func (c *RobinPersistentVolumeClaimController) InActiveImage()
- func (c *RobinPersistentVolumeClaimController) ListSnapshot()
- func (c *RobinPersistentVolumeClaimController) LoginInfo()
- func (c *RobinPersistentVolumeClaimController) OfflineImageUser()
- func (c *RobinPersistentVolumeClaimController) Prepare()
- func (c *RobinPersistentVolumeClaimController) RollbackSnapshot()
- func (c *RobinPersistentVolumeClaimController) URLMapping()
- func (c *RobinPersistentVolumeClaimController) Verify()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubePersistentVolumeClaimController ¶
type KubePersistentVolumeClaimController struct {
base.APIController
}
func (*KubePersistentVolumeClaimController) Deploy ¶
func (c *KubePersistentVolumeClaimController) Deploy()
@Title deploy @Description deploy tpl @Param body body string true "The tpl content" @Success 200 return ok success @router /:pvcId/tpls/:tplId/clusters/:cluster [post]
func (*KubePersistentVolumeClaimController) Get ¶
func (c *KubePersistentVolumeClaimController) Get()
@Title Get @Description find PersistentVolumeClaim by cluster @router /:pvc/namespaces/:namespace/clusters/:cluster [get]
func (*KubePersistentVolumeClaimController) Offline ¶
func (c *KubePersistentVolumeClaimController) Offline()
@Title Delete @Description delete the PersistentVolumeClaim @Param cluster path string true "the cluster want to delete" @Param namespace path string true "the namespace want to delete" @Param pvc path string true "the pvc name want to delete" @Success 200 {string} delete success! @router /:pvc/namespaces/:namespace/clusters/:cluster [delete]
func (*KubePersistentVolumeClaimController) Prepare ¶
func (c *KubePersistentVolumeClaimController) Prepare()
func (*KubePersistentVolumeClaimController) URLMapping ¶
func (c *KubePersistentVolumeClaimController) URLMapping()
type RobinPersistentVolumeClaimController ¶
type RobinPersistentVolumeClaimController struct {
base.APIController
}
func (*RobinPersistentVolumeClaimController) ActiveImage ¶
func (c *RobinPersistentVolumeClaimController) ActiveImage()
@Title Active Image @Description active rbd images @router /:pvc/rbd/namespaces/:namespace/clusters/:cluster [post]
func (*RobinPersistentVolumeClaimController) CreateSnapshot ¶
func (c *RobinPersistentVolumeClaimController) CreateSnapshot()
@Title create snapshot @Description create snapshot @router /:pvc/snapshot/:version/namespaces/:namespace/clusters/:cluster [post]
func (*RobinPersistentVolumeClaimController) DeleteAllSnapshot ¶
func (c *RobinPersistentVolumeClaimController) DeleteAllSnapshot()
@Title delete all snapshot @Description delete all snapshot @router /:pvc/snapshot/namespaces/:namespace/clusters/:cluster [delete]
func (*RobinPersistentVolumeClaimController) DeleteSnapshot ¶
func (c *RobinPersistentVolumeClaimController) DeleteSnapshot()
@Title delete snapshot @Description delete snapshot @router /:pvc/snapshot/:version/namespaces/:namespace/clusters/:cluster [delete]
func (*RobinPersistentVolumeClaimController) GetPvcStatus ¶
func (c *RobinPersistentVolumeClaimController) GetPvcStatus()
@Title Get pvc status @Description find PersistentVolumeClaim by cluster @router /:pvc/status/namespaces/:namespace/clusters/:cluster [get]
func (*RobinPersistentVolumeClaimController) InActiveImage ¶
func (c *RobinPersistentVolumeClaimController) InActiveImage()
@Title InActive Image @Description inActive rbd images @router /:pvc/rbd/namespaces/:namespace/clusters/:cluster [delete]
func (*RobinPersistentVolumeClaimController) ListSnapshot ¶
func (c *RobinPersistentVolumeClaimController) ListSnapshot()
@Title list snapshot @Description list snapshot @router /:pvc/snapshot/namespaces/:namespace/clusters/:cluster [get]
func (*RobinPersistentVolumeClaimController) LoginInfo ¶
func (c *RobinPersistentVolumeClaimController) LoginInfo()
@Title get user info @Description get user info @router /:pvc/user/namespaces/:namespace/clusters/:cluster [get]
func (*RobinPersistentVolumeClaimController) OfflineImageUser ¶
func (c *RobinPersistentVolumeClaimController) OfflineImageUser()
@Title offline image user @Description offline image user @router /:pvc/user/namespaces/:namespace/clusters/:cluster [delete]
func (*RobinPersistentVolumeClaimController) Prepare ¶
func (c *RobinPersistentVolumeClaimController) Prepare()
func (*RobinPersistentVolumeClaimController) RollbackSnapshot ¶
func (c *RobinPersistentVolumeClaimController) RollbackSnapshot()
@Title rollback to snapshot version @Description rollback to snapshot version @router /:pvc/snapshot/:version/namespaces/:namespace/clusters/:cluster [put]
func (*RobinPersistentVolumeClaimController) URLMapping ¶
func (c *RobinPersistentVolumeClaimController) URLMapping()
func (*RobinPersistentVolumeClaimController) Verify ¶
func (c *RobinPersistentVolumeClaimController) Verify()
@Title verify file @Description verify file @router /:pvc/verify/namespaces/:namespace/clusters/:cluster [get]