Documentation
¶
Index ¶
- Variables
- func GetOpenstackConfWithPlatform(platform string) (*config.Conf, error)
- func GetToken(Platform string) (token string)
- type Auth
- type CrServer
- type CreateSerReq
- type CreateServerResp
- type GetServersDetailedByIdReq
- type GetServersDetailedByIdResp
- type Networks
- type Server
- type ServerDetailed
- type ServerResp
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var C config.Config
View Source
var FileName string
Functions ¶
Types ¶
type Auth ¶
type Auth struct { Auth struct { Identity struct { Methods []string `json:"methods"` Password struct { User struct { Name string `json:"name"` Password string `json:"password"` Domain struct { Name string `json:"name"` } `json:"domain"` } `json:"user"` } `json:"password"` } `json:"identity"` Scope struct { Project struct { Name string `json:"name"` Domain struct { Id string `json:"id"` } `json:"domain"` } `json:"project"` } `json:"scope"` } `json:"auth"` }
type CreateSerReq ¶
type CreateServerResp ¶
type CreateServerResp struct { Code int64 `json:"code"` Msg string `json:"msg"` Data string `json:"data"` Server ServerResp `json:"server,omitempty"` }
type GetServersDetailedByIdResp ¶
type GetServersDetailedByIdResp struct { Code int64 `json:"code"` Msg string `json:"msg"` // Data string `json:"data"` Server ServerDetailed `json:"server,omitempty"` }
type Server ¶
type Server struct { FlavorRef string `json:"flavorRef,omitempty"` Name string `json:"name,omitempty"` Networks []Networks `json:"networks,omitempty"` ImageRef string `json:"imageRef,omitempty"` AccessIPv4 string `json:"accessIPv4,omitempty"` AccessIPv6 string `json:"accessIPv6,omitempty"` AdminPass string `json:"adminPass,omitempty"` MinCount int64 `json:"min_count,omitempty"` }
type ServerDetailed ¶
type ServerResp ¶
type ServerResp struct {
Id string `json:"id,omitempty"`
}
type Token ¶
type Token struct { Token struct { ExpiresAt time.Time `json:"expires_at"` AuditIds []string `json:"audit_ids"` Methods []string `json:"methods"` IssuedAt time.Time `json:"issued_at"` User struct { Domain struct { Id string `json:"id"` Name string `json:"name"` } `json:"domain"` Id string `json:"id"` Name string `json:"name"` PasswordExpiresAt string `json:"password_expires_at"` } `json:"user"` } `json:"token"` }
Click to show internal directories.
Click to hide internal directories.