package
Version:
v3.0.0-...-1c69814
Opens a new window with list of versions in this module.
Published: Sep 10, 2019
License: LGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
ApiGroups = "groups"
ApiRegions = "regions"
ApiProjects = "projects"
ApiUsers = "users"
)
API URL parts.
Client provides a means to access the OpenStack Compute Service.
New creates a new Client.
type Domain struct {
Description string `json:"description"`
Enabled bool `json:"enabled"`
ID string `json:"id"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Name string `json:"name"`
}
type DomainList struct {
Domains []Domain `json:"domains"`
Links struct {
Next interface{} `json:"next"`
Previous interface{} `json:"previous"`
Self string `json:"self"`
} `json:"links"`
}
type Group struct {
Description string `json:"description"`
DomainID string `json:"domain_id"`
ID string `json:"id"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Name string `json:"name"`
}
type GroupList struct {
Links struct {
Self string `json:"self"`
Previous interface{} `json:"previous"`
Next interface{} `json:"next"`
} `json:"links"`
Groups []Group `json:"groups"`
}
type Project struct {
IsDomain bool `json:"is_domain"`
Description interface{} `json:"description"`
DomainID string `json:"domain_id"`
Enabled bool `json:"enabled"`
ID string `json:"id"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Name string `json:"name"`
ParentID interface{} `json:"parent_id"`
Tags []interface{} `json:"tags"`
}
type ProjectList struct {
Links struct {
Next interface{} `json:"next"`
Previous interface{} `json:"previous"`
Self string `json:"self"`
} `json:"links"`
Projects []Project `json:"projects"`
}
type Region struct {
Description string `json:"description"`
ID string `json:"id"`
Links struct {
Self string `json:"self"`
} `json:"links"`
ParentRegionID interface{} `json:"parent_region_id"`
}
type RegionList struct {
Regions []Region `json:"regions"`
Links struct {
Next interface{} `json:"next"`
Previous interface{} `json:"previous"`
Self string `json:"self"`
} `json:"links"`
}
type User struct {
DomainID string `json:"domain_id"`
Enabled bool `json:"enabled"`
ID string `json:"id"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Name string `json:"name"`
PasswordExpiresAt interface{} `json:"password_expires_at"`
}
type UserList struct {
Links struct {
Next interface{} `json:"next"`
Previous interface{} `json:"previous"`
Self string `json:"self"`
} `json:"links"`
Users []User `json:"users"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.