Thanks to visit codestin.com
Credit goes to github.com

Skip to content

net/goai: g.Meta is passed as parameters of a request #4247

@gqcn

Description

@gqcn

Description

Here is the API definition:

type DrainReq struct {
    g.Meta    `path:"/cluster/{cluster_id}/node/{name}/drain" method:"post" tags:"节点管理" summary:"驱逐节点" dc:"该接口会先设置节点不可调度,再进行驱逐"`
    ClusterId string `json:"cluster_id" v:"required" dc:"集群ID"`
    Name      string `json:"name"       v:"required" dc:"节点名称"`
}
type DrainRes struct{}

Here is the generated API document:

Image

Additional

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions