Documentation ¶
Index ¶
- Constants
- func ChangeUserPassword(s *mcclient.ClientSession, username string, password string) (jsonutils.JSONObject, error)
- func CreateDevtoolTemplate(s *mcclient.ClientSession, name string, hosts []string, mods []string, ...) (jsonutils.JSONObject, error)
- func CreateDynamicSchedtag(s *mcclient.ClientSession, name, schedtag, condition string) (jsonutils.JSONObject, error)
- func CreateNetwork(s *mcclient.ClientSession, name string, gateway string, serverType string, ...) (jsonutils.JSONObject, error)
- func CreateRegion(s *mcclient.ClientSession, region, zone string) (jsonutils.JSONObject, error)
- func CreateRole(s *mcclient.ClientSession, roleName, description string) (jsonutils.JSONObject, error)
- func CreateSchedtag(s *mcclient.ClientSession, name string, strategy string, description string) (jsonutils.JSONObject, error)
- func CreateService(s *mcclient.ClientSession, svcName, svcType string) (jsonutils.JSONObject, error)
- func CreateUser(s *mcclient.ClientSession, username string, password string) (jsonutils.JSONObject, error)
- func CreateWire(s *mcclient.ClientSession, zone string, wire string, bw int, vpc string) (jsonutils.JSONObject, error)
- func CreateZone(s *mcclient.ClientSession, zone string) (jsonutils.JSONObject, error)
- func DeleteResource(s *mcclient.ClientSession, man modulebase.Manager, name string) error
- func DeleteServiceEndpoints(s *mcclient.ClientSession, serviceName string) error
- func DevtoolTemplateCreateParams(name string, hostLines []string, mods []string, files map[string]string, ...) (*jsonutils.JSONDict, error)
- func DisableEndpoint(s *mcclient.ClientSession, id string) error
- func DisableService(s *mcclient.ClientSession, id string) error
- func EnsureDevtoolTemplate(s *mcclient.ClientSession, name string, hosts []string, mods []string, ...) (jsonutils.JSONObject, error)
- func EnsureDynamicSchedtag(s *mcclient.ClientSession, name, schedtag, condition string) (jsonutils.JSONObject, error)
- func EnsureEndpoint(s *mcclient.ClientSession, svcId, regionId, interfaceType, url string) (jsonutils.JSONObject, error)
- func EnsureResource(s *mcclient.ClientSession, man modulebase.Manager, name string, ...) (jsonutils.JSONObject, error)
- func EnsureRole(s *mcclient.ClientSession, roleName, description string) (jsonutils.JSONObject, error)
- func EnsureSchedtag(s *mcclient.ClientSession, name string, strategy string, description string) (jsonutils.JSONObject, error)
- func EnsureService(s *mcclient.ClientSession, svcName, svcType string) (jsonutils.JSONObject, error)
- func GetEndpointsByService(s *mcclient.ClientSession, serviceName string) ([]jsonutils.JSONObject, error)
- func InitServiceAccount(s *mcclient.ClientSession, username string, password string) error
- func IsDynamicSchedtagExists(s *mcclient.ClientSession, name string) (jsonutils.JSONObject, bool, error)
- func IsEndpointExists(s *mcclient.ClientSession, svcId, regionId, interfaceType string) (jsonutils.JSONObject, bool, error)
- func IsNetworkExists(s *mcclient.ClientSession, net string) (jsonutils.JSONObject, bool, error)
- func IsNotFoundError(err error) bool
- func IsResourceExists(s *mcclient.ClientSession, manager modulebase.Manager, name string) (jsonutils.JSONObject, bool, error)
- func IsRoleExists(s *mcclient.ClientSession, roleName string) (jsonutils.JSONObject, bool, error)
- func IsSchedtagExists(s *mcclient.ClientSession, name string) (jsonutils.JSONObject, bool, error)
- func IsServiceExists(s *mcclient.ClientSession, svcName string) (jsonutils.JSONObject, bool, error)
- func IsUserExists(s *mcclient.ClientSession, username string) (jsonutils.JSONObject, bool, error)
- func IsWireExists(s *mcclient.ClientSession, wire string) (jsonutils.JSONObject, bool, error)
- func IsZoneExists(s *mcclient.ClientSession, zone string) (jsonutils.JSONObject, bool, error)
- func NetworkPrivate(s *mcclient.ClientSession, name string) (jsonutils.JSONObject, error)
- func ProjectAddUser(s *mcclient.ClientSession, projectId string, userId string, roleId string) error
- func RegisterServiceEndpointByInterfaces(s *mcclient.ClientSession, regionId string, serviceName string, ...) error
- func RegisterServiceEndpoints(s *mcclient.ClientSession, regionId string, serviceName string, ...) error
- func RegisterServicePublicInternalEndpoint(s *mcclient.ClientSession, regionId string, serviceName string, ...) error
- func ToPlaybook(hostLines []string, mods []string, files map[string]string) (*ansible.Playbook, error)
- type OCWaiter
- type Waiter
Constants ¶
View Source
const (
DevtoolTelegrafConf = `` /* 1275-byte string literal not displayed */
)
View Source
const (
NotFoundMsg = "NotFoundError"
)
Variables ¶
This section is empty.
Functions ¶
func ChangeUserPassword ¶
func ChangeUserPassword(s *mcclient.ClientSession, username string, password string) (jsonutils.JSONObject, error)
func CreateDevtoolTemplate ¶
func CreateDynamicSchedtag ¶
func CreateDynamicSchedtag(s *mcclient.ClientSession, name, schedtag, condition string) (jsonutils.JSONObject, error)
func CreateNetwork ¶
func CreateRegion ¶
func CreateRegion(s *mcclient.ClientSession, region, zone string) (jsonutils.JSONObject, error)
func CreateRole ¶
func CreateRole(s *mcclient.ClientSession, roleName, description string) (jsonutils.JSONObject, error)
func CreateSchedtag ¶
func CreateSchedtag(s *mcclient.ClientSession, name string, strategy string, description string) (jsonutils.JSONObject, error)
func CreateService ¶
func CreateService(s *mcclient.ClientSession, svcName, svcType string) (jsonutils.JSONObject, error)
func CreateUser ¶
func CreateUser(s *mcclient.ClientSession, username string, password string) (jsonutils.JSONObject, error)
func CreateWire ¶
func CreateWire(s *mcclient.ClientSession, zone string, wire string, bw int, vpc string) (jsonutils.JSONObject, error)
func CreateZone ¶
func CreateZone(s *mcclient.ClientSession, zone string) (jsonutils.JSONObject, error)
func DeleteResource ¶
func DeleteResource( s *mcclient.ClientSession, man modulebase.Manager, name string, ) error
func DeleteServiceEndpoints ¶
func DeleteServiceEndpoints(s *mcclient.ClientSession, serviceName string) error
func DisableEndpoint ¶
func DisableEndpoint(s *mcclient.ClientSession, id string) error
func DisableService ¶
func DisableService(s *mcclient.ClientSession, id string) error
func EnsureDevtoolTemplate ¶
func EnsureDynamicSchedtag ¶
func EnsureDynamicSchedtag(s *mcclient.ClientSession, name, schedtag, condition string) (jsonutils.JSONObject, error)
func EnsureEndpoint ¶
func EnsureEndpoint(s *mcclient.ClientSession, svcId, regionId, interfaceType, url string) (jsonutils.JSONObject, error)
func EnsureResource ¶
func EnsureResource( s *mcclient.ClientSession, man modulebase.Manager, name string, createFunc func() (jsonutils.JSONObject, error), ) (jsonutils.JSONObject, error)
func EnsureRole ¶
func EnsureRole(s *mcclient.ClientSession, roleName, description string) (jsonutils.JSONObject, error)
func EnsureSchedtag ¶
func EnsureSchedtag(s *mcclient.ClientSession, name string, strategy string, description string) (jsonutils.JSONObject, error)
func EnsureService ¶
func EnsureService(s *mcclient.ClientSession, svcName, svcType string) (jsonutils.JSONObject, error)
func GetEndpointsByService ¶
func GetEndpointsByService(s *mcclient.ClientSession, serviceName string) ([]jsonutils.JSONObject, error)
func InitServiceAccount ¶
func InitServiceAccount(s *mcclient.ClientSession, username string, password string) error
func IsDynamicSchedtagExists ¶
func IsDynamicSchedtagExists(s *mcclient.ClientSession, name string) (jsonutils.JSONObject, bool, error)
func IsEndpointExists ¶
func IsEndpointExists(s *mcclient.ClientSession, svcId, regionId, interfaceType string) (jsonutils.JSONObject, bool, error)
func IsNetworkExists ¶
func IsNetworkExists(s *mcclient.ClientSession, net string) (jsonutils.JSONObject, bool, error)
func IsNotFoundError ¶
func IsResourceExists ¶
func IsResourceExists(s *mcclient.ClientSession, manager modulebase.Manager, name string) (jsonutils.JSONObject, bool, error)
func IsRoleExists ¶
func IsRoleExists(s *mcclient.ClientSession, roleName string) (jsonutils.JSONObject, bool, error)
func IsSchedtagExists ¶
func IsSchedtagExists(s *mcclient.ClientSession, name string) (jsonutils.JSONObject, bool, error)
func IsServiceExists ¶
func IsServiceExists(s *mcclient.ClientSession, svcName string) (jsonutils.JSONObject, bool, error)
func IsUserExists ¶
func IsUserExists(s *mcclient.ClientSession, username string) (jsonutils.JSONObject, bool, error)
func IsWireExists ¶
func IsWireExists(s *mcclient.ClientSession, wire string) (jsonutils.JSONObject, bool, error)
func IsZoneExists ¶
func IsZoneExists(s *mcclient.ClientSession, zone string) (jsonutils.JSONObject, bool, error)
func NetworkPrivate ¶
func NetworkPrivate(s *mcclient.ClientSession, name string) (jsonutils.JSONObject, error)
func ProjectAddUser ¶
Types ¶
type OCWaiter ¶
func (*OCWaiter) WaitForGlance ¶
func (*OCWaiter) WaitForKeystone ¶
func (*OCWaiter) WaitForPodsWithLabel ¶
WaitForPodsWithLabel will lookup pods with the given label and wait until they are all reporting status as running.
func (*OCWaiter) WaitForRegion ¶
func (*OCWaiter) WaitForScheduler ¶
func (*OCWaiter) WaitForServicePods ¶
Click to show internal directories.
Click to hide internal directories.