Documentation ¶
Index ¶
- func AuthorizeProjectContext(ctx *c.Context, tenantId string) bool
- func Init(etcd *config.Database) *client
- func IsAdminContext(ctx *c.Context) bool
- type Client
- func (c *Client) CreateDock(ctx *c.Context, dck *model.DockSpec) (*model.DockSpec, error)
- func (c *Client) CreatePool(ctx *c.Context, pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
- func (c *Client) CreateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
- func (c *Client) DeleteDock(ctx *c.Context, dckID string) error
- func (c *Client) DeletePool(ctx *c.Context, polID string) error
- func (c *Client) DeleteVolume(ctx *c.Context, volID string) error
- func (c *Client) FilterAndSort(src interface{}, params map[string][]string, sortableKeys []string) interface{}
- func (c *Client) GetDock(ctx *c.Context, dckID string) (*model.DockSpec, error)
- func (c *Client) GetDockByPoolId(ctx *c.Context, poolId string) (*model.DockSpec, error)
- func (c *Client) GetLimit(m map[string][]string) int
- func (c *Client) GetOffset(m map[string][]string, size int) int
- func (c *Client) GetPool(ctx *c.Context, polID string) (*model.StoragePoolSpec, error)
- func (c *Client) GetSortDir(m map[string][]string) string
- func (c *Client) GetSortKey(m map[string][]string, sortKeys []string) string
- func (c *Client) GetVolume(ctx *c.Context, volID string) (*model.VolumeSpec, error)
- func (c *Client) GetVolumeGroup(ctx *c.Context, vgId string) (*model.VolumeGroupSpec, error)
- func (c *Client) IsInArray(e string, s []string) bool
- func (c *Client) ListDocks(ctx *c.Context) ([]*model.DockSpec, error)
- func (c *Client) ListDocksWithFilter(ctx *c.Context, m map[string][]string) ([]*model.DockSpec, error)
- func (c *Client) ListPools(ctx *c.Context) ([]*model.StoragePoolSpec, error)
- func (c *Client) ListPoolsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.StoragePoolSpec, error)
- func (c *Client) ListVolumes(ctx *c.Context) ([]*model.VolumeSpec, error)
- func (c *Client) ListVolumesByGroupId(ctx *c.Context, vgId string) ([]*model.VolumeSpec, error)
- func (c *Client) ParameterFilter(m map[string][]string, size int, sortKeys []string) *Parameter
- func (c *Client) SelectOrNot(m map[string][]string) bool
- func (c *Client) UpdateDock(ctx *c.Context, dckID, name, desp string) (*model.DockSpec, error)
- func (c *Client) UpdatePool(ctx *c.Context, polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
- func (c *Client) UpdateStatus(ctx *c.Context, in interface{}, status string) error
- func (c *Client) UpdateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (c *Client) UpdateVolumeGroup(ctx *c.Context, vgUpdate *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
- func (c *Client) VolumesToUpdate(ctx *c.Context, volumeList []*model.VolumeSpec) ([]*model.VolumeSpec, error)
- type Parameter
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeProjectContext ¶ added in v0.1.4
func IsAdminContext ¶ added in v0.1.4
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client
func (*Client) CreateDock ¶
CreateDock
func (*Client) CreatePool ¶
func (c *Client) CreatePool(ctx *c.Context, pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
CreatePool
func (*Client) CreateVolumeGroup ¶ added in v0.1.8
func (c *Client) CreateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
func (*Client) DeleteDock ¶
DeleteDock
func (*Client) DeletePool ¶
DeletePool
func (*Client) DeleteVolume ¶
DeleteVolume
func (*Client) FilterAndSort ¶ added in v0.12.0
func (*Client) GetDockByPoolId ¶
GetDockByPoolId
func (*Client) GetSortDir ¶ added in v0.1.4
Get parameter sortDir
func (*Client) GetSortKey ¶ added in v0.1.4
Get parameter sortKey
func (*Client) GetVolumeGroup ¶ added in v0.1.8
func (*Client) ListDocksWithFilter ¶ added in v0.1.4
func (*Client) ListPoolsWithFilter ¶ added in v0.1.4
func (*Client) ListVolumes ¶
ListVolumes
func (*Client) ListVolumesByGroupId ¶ added in v0.1.8
func (*Client) ParameterFilter ¶ added in v0.1.4
ParameterFilter
func (*Client) SelectOrNot ¶ added in v0.1.4
func (*Client) UpdateDock ¶
UpdateDock
func (*Client) UpdatePool ¶
func (c *Client) UpdatePool(ctx *c.Context, polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
UpdatePool
func (*Client) UpdateStatus ¶ added in v0.1.8
func (*Client) UpdateVolume ¶
func (c *Client) UpdateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
UpdateVolume ...
func (*Client) UpdateVolumeGroup ¶ added in v0.1.8
func (c *Client) UpdateVolumeGroup(ctx *c.Context, vgUpdate *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
func (*Client) VolumesToUpdate ¶ added in v0.1.8
func (c *Client) VolumesToUpdate(ctx *c.Context, volumeList []*model.VolumeSpec) ([]*model.VolumeSpec, error)
type Parameter ¶ added in v0.1.4
type Parameter struct {
// contains filtered or unexported fields
}
Parameter
Click to show internal directories.
Click to hide internal directories.