Documentation ¶
Index ¶
Constants ¶
View Source
const ( Hanwuji = "hanwuji" Suiyuan = "suiyuan" Sailingsi = "sailingsi" )
Variables ¶
View Source
var (
OctopusUrls = getOctopusUrls()
)
Functions ¶
Types ¶
type HanwujiResp ¶
type HanwujiResp struct { Success bool `json:"success"` Payload struct { MapResourceSpecIdList struct { Debug struct { ResourceSpecs []struct { Id string `json:"id"` Name string `json:"name"` Price int `json:"price"` ResourceQuantity struct { CambriconComMlu string `json:"cambricon.com/mlu,omitempty"` Cpu string `json:"cpu"` Memory string `json:"memory"` Shm string `json:"shm,omitempty"` } `json:"resourceQuantity"` } `json:"resourceSpecs"` } `json:"debug"` Deploy struct { ResourceSpecs []interface{} `json:"resourceSpecs"` } `json:"deploy"` Train struct { ResourceSpecs []struct { Id string `json:"id"` Name string `json:"name"` Price int `json:"price"` ResourceQuantity struct { CambriconComMlu string `json:"cambricon.com/mlu,omitempty"` Cpu string `json:"cpu"` Memory string `json:"memory"` Shm string `json:"shm,omitempty"` } `json:"resourceQuantity"` } `json:"resourceSpecs"` } `json:"train"` } `json:"mapResourceSpecIdList"` } `json:"payload"` Error interface{} `json:"error"` }
type Login ¶
type SailingsiResp ¶
type SailingsiResp struct { Success bool `json:"success"` Payload struct { MapResourceSpecIdList struct { Debug struct { ResourceSpecs []interface{} `json:"resourceSpecs"` } `json:"debug"` Deploy struct { ResourceSpecs []interface{} `json:"resourceSpecs"` } `json:"deploy"` Train struct { ResourceSpecs []interface{} `json:"resourceSpecs"` } `json:"train"` } `json:"mapResourceSpecIdList"` } `json:"payload"` Error interface{} `json:"error"` }
type SuiyuanResp ¶
type SuiyuanResp struct { Success bool `json:"success"` Payload struct { MapResourceSpecIdList struct { Debug struct { ResourceSpecs []struct { Id string `json:"id"` Name string `json:"name"` Price int `json:"price"` ResourceQuantity struct { Cpu string `json:"cpu,omitempty"` EnflameComDtu string `json:"enflame.com/dtu,omitempty"` Memory string `json:"memory"` Shm string `json:"shm,omitempty"` CpuCpu string `json:"cpu_cpu,omitempty"` } `json:"resourceQuantity"` } `json:"resourceSpecs"` } `json:"debug"` Deploy struct { ResourceSpecs []interface{} `json:"resourceSpecs"` } `json:"deploy"` Train struct { ResourceSpecs []struct { Id string `json:"id"` Name string `json:"name"` Price int `json:"price"` ResourceQuantity struct { Cpu string `json:"cpu"` EnflameComDtu string `json:"enflame.com/dtu"` Memory string `json:"memory"` Shm string `json:"shm"` } `json:"resourceQuantity"` } `json:"resourceSpecs"` } `json:"train"` } `json:"mapResourceSpecIdList"` } `json:"payload"` Error interface{} `json:"error"` }
type TokenResp ¶
Click to show internal directories.
Click to hide internal directories.