Documentation
¶
Index ¶
- Constants
- func CacheReportRequest(req CacheReportParams, c *core.PaddleFlowClient) error
- func FsMountCreate(req CreateMountRequest, c *core.PaddleFlowClient) error
- func FsMountDelete(req DeleteMountRequest, c *core.PaddleFlowClient) error
- type CacheReportParams
- type CreateMountRequest
- type DeleteMountRequest
- type FsCacheResponse
- type FsParams
- type FsResponse
- type LinkResponse
- type LinksParams
- type LinksResponse
- type ListMountRequest
- type ListMountResponse
- type LoginParams
- type LoginResponse
- type MountResponse
Constants ¶
View Source
const ( Prefix = util.PaddleflowRouterPrefix + util.PaddleflowRouterVersionV1 LoginApi = Prefix + "/login" GetFsApi = Prefix + "/fs" GetLinksApis = Prefix + "/link" FsCacheConfig = Prefix + "/fsCache" FsMount = Prefix + "/fsMount" CacheReportConfig = Prefix + "/fsCache/report" KeyUsername = "username" KeyFsName = "fsName" KeyClusterID = "clusterID" KeyNodeName = "nodename" KeyMountPoint = "mountpoint" )
Variables ¶
This section is empty.
Functions ¶
func CacheReportRequest ¶
func CacheReportRequest(req CacheReportParams, c *core.PaddleFlowClient) error
func FsMountCreate ¶
func FsMountCreate(req CreateMountRequest, c *core.PaddleFlowClient) error
func FsMountDelete ¶
func FsMountDelete(req DeleteMountRequest, c *core.PaddleFlowClient) error
Types ¶
type CacheReportParams ¶
type CreateMountRequest ¶
type DeleteMountRequest ¶
type FsCacheResponse ¶
type FsCacheResponse struct {
CacheDir string `json:"cacheDir"`
Quota int `json:"quota"`
MetaDriver string `json:"metaDriver"`
BlockSize int `json:"blockSize"`
Debug bool `json:"debug"`
NodeAffinity map[string]interface{} `json:"nodeAffinity"`
NodeTaintToleration map[string]interface{} `json:"nodeTaintToleration"`
ExtraConfig map[string]string `json:"extraConfig"`
FsName string `json:"fsName"`
Username string `json:"username"`
CreateTime string `json:"createTime"`
UpdateTime string `json:"updateTime,omitempty"`
}
func FsCacheRequest ¶
func FsCacheRequest(params FsParams, c *core.PaddleFlowClient) (*FsCacheResponse, error)
type FsResponse ¶
type FsResponse struct {
Id string `json:"id"`
Name string `json:"name"`
ServerAddress string `json:"serverAddress"`
Type string `json:"type"`
SubPath string `json:"subPath"`
Username string `json:"username"`
Properties map[string]string `json:"properties"`
}
func FsRequest ¶
func FsRequest(params FsParams, c *core.PaddleFlowClient) (*FsResponse, error)
type LinkResponse ¶
type LinksParams ¶
type LinksResponse ¶
type LinksResponse struct {
Marker string `json:"marker"`
Truncated bool `json:"truncated"`
NextMarker string `json:"nextMarker"`
LinkList []*LinkResponse `json:"linkList"`
}
func LinksRequest ¶
func LinksRequest(params LinksParams, c *core.PaddleFlowClient) (*LinksResponse, error)
type ListMountRequest ¶
type ListMountResponse ¶
type ListMountResponse struct {
Marker string `json:"marker"`
Truncated bool `json:"truncated"`
NextMarker string `json:"nextMarker"`
MountList []*MountResponse `json:"mountList"`
}
func FsMountList ¶
func FsMountList(req ListMountRequest, c *core.PaddleFlowClient) (*ListMountResponse, error)
type LoginParams ¶
type LoginResponse ¶
type LoginResponse struct {
Authorization string `json:"authorization"`
}
func LoginRequest ¶
func LoginRequest(params LoginParams, c *core.PaddleFlowClient) (*LoginResponse, error)
Click to show internal directories.
Click to hide internal directories.