Documentation ¶
Overview ¶
Package cfs defines the Normal CFS services of BCE. The supported APIs are all defined in sub-package
Index ¶
- Constants
- type Client
- func (c *Client) CreateFS(args *CreateFSArgs) (*CreateFSResult, error)
- func (c *Client) CreateMountTarget(args *CreateMountTargetArgs) (*CreateMountTargetResult, error)
- func (c *Client) DescribeFS(args *DescribeFSArgs) (*DescribeFSResult, error)
- func (c *Client) DescribeMountTarget(args *DescribeMountTargetArgs) (*DescribeMountTargetResult, error)
- func (c *Client) DropFS(args *DropFSArgs) error
- func (c *Client) DropMountTarget(args *DropMountTargetArgs) error
- func (c *Client) UpdateFS(args *UpdateFSArgs) error
- type CreateFSArgs
- type CreateFSResult
- type CreateMountTargetArgs
- type CreateMountTargetResult
- type DescribeFSArgs
- type DescribeFSResult
- type DescribeMountTargetArgs
- type DescribeMountTargetResult
- type DescribeResultMeta
- type DropFSArgs
- type DropMountTargetArgs
- type FSModel
- type FSStatus
- type MoutTargetModel
- type UpdateFSArgs
Constants ¶
View Source
const ( DEFAULT_SERVICE_DOMAIN = "cfs." + bce.DEFAULT_REGION + ".baidubce.com" URI_PREFIX = bce.URI_PREFIX + "v1" REQUEST_CFS_URL = "/cfs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client of CFS service is a kind of BceClient, so derived from BceClient
func (*Client) CreateFS ¶
func (c *Client) CreateFS(args *CreateFSArgs) (*CreateFSResult, error)
CreateFS - create a FS Instance
PARAMS:
- args: parameters to create FS
RETURNS:
- *CreateFSResult: the result of create fs, contains new FS Instance's ID
- error: nil if ok otherwise the specific error
func (*Client) CreateMountTarget ¶
func (c *Client) CreateMountTarget(args *CreateMountTargetArgs) (*CreateMountTargetResult, error)
CreateMountTarget - create a mount target for FS Instances
PARAMS:
- args: parameters to create mount target
RETURNS:
- *CreateMountTargetResult: the result mount target's detail
- error: nil if ok otherwise the specific error
func (*Client) DescribeFS ¶
func (c *Client) DescribeFS(args *DescribeFSArgs) (*DescribeFSResult, error)
DescribeFS - describe all FS Instances
PARAMS:
- args: parameters describe all FS Instances
RETURNS:
- *DescribeFSResult: the result FS Instances's detail
- error: nil if ok otherwise the specific error
func (*Client) DescribeMountTarget ¶
func (c *Client) DescribeMountTarget(args *DescribeMountTargetArgs) (*DescribeMountTargetResult, error)
DescribeMountTarget - describe all mount targets
PARAMS:
- args: parameters describe all mount targets
RETURNS:
- *DescribeMountTargetResult: the result Mount target's detail
- error: nil if ok otherwise the specific error
func (*Client) DropFS ¶
func (c *Client) DropFS(args *DropFSArgs) error
DropFS - drop a fs instance
PARAMS:
- args: parameters to drop fs
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DropMountTarget ¶
func (c *Client) DropMountTarget(args *DropMountTargetArgs) error
DropMountTarget - drop a MountTarget
PARAMS:
- args: parameters to drop mount target
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateFS ¶
func (c *Client) UpdateFS(args *UpdateFSArgs) error
UpdateFS - update name of a FS Instance
PARAMS:
- args: parameters to create FS
RETURNS:
- error: nil if ok otherwise the specific error
type CreateFSArgs ¶
type CreateFSResult ¶
type CreateFSResult struct {
FSID string `json:"fsId"`
}
type CreateMountTargetArgs ¶
type CreateMountTargetResult ¶
type DescribeFSArgs ¶
type DescribeFSResult ¶
type DescribeFSResult struct { FSList []FSModel `json:"fileSystemList"` DescribeResultMeta }
type DescribeMountTargetArgs ¶
type DescribeMountTargetResult ¶
type DescribeMountTargetResult struct { MountTargetList []MoutTargetModel `json:"mountTargetList"` DescribeResultMeta }
type DescribeResultMeta ¶
type DropFSArgs ¶
type DropFSArgs struct {
FSID string
}
type DropMountTargetArgs ¶
type MoutTargetModel ¶
type UpdateFSArgs ¶
Click to show internal directories.
Click to hide internal directories.