本文整理匯總了Golang中github.com/nofdev/fastforward/provisioning.OpenStack函數的典型用法代碼示例。如果您正苦於以下問題:Golang OpenStack函數的具體用法?Golang OpenStack怎麽用?Golang OpenStack使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了OpenStack函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Keystone
// Keystone method deploy the Keystone components.
// Args: {"HostName": string, }
func (o *OpenStack) Keystone(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.Keystone()
return nil
}
示例2: PrepareBasicEnvirionment
// PrepareBasicEnvirionment prepares OpenStack basic environment.
func (o *OpenStack) PrepareBasicEnvirionment(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.PrepareBasicEnvirionment()
return nil
}
示例3: RabbtmqCluster
// RabbtmqCluster deploy RabbitMQ Cluster.
// Args: {"HostName": string}
func (o *OpenStack) RabbtmqCluster(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.RabbtmqCluster()
return nil
}
示例4: LoadBalancer
// LoadBalancer deploy a HAProxy and Keepalived for OpenStack HA.
// Args: {"HostName": string, "RouterID": string, "State": string, "Priority": int}
func (o *OpenStack) LoadBalancer(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.LoadBalancer()
return nil
}
示例5: LBOptimize
// LBOptimize optimizing load balancer.
func (o *OpenStack) LBOptimize(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.LBOptimize()
return nil
}
示例6: GetCephKey
// GetCephKey add Ceph initial monitors and gather the keys.
func (o *OpenStack) GetCephKey(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.GetCephKey()
return nil
}
示例7: KvmToDocker
// KvmToDocker converts kvm to docker(OPTIONAL).
func (o *OpenStack) KvmToDocker(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.KvmToDocker()
return nil
}
示例8: Dashboard
// Dashboard deploy Horizon.
func (o *OpenStack) Dashboard(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.Dashboard()
return nil
}
示例9: NovaNetwork
// NovaNetwork deploy legacy networking nova-network(FLATdhcp Only).
// Args: {"HostName": string, "MyIP": string}
func (o *OpenStack) NovaNetwork(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.NovaNetwork()
return nil
}
示例10: RestartCephDeps
// RestartCephDeps restart volume service dependency to take effect for ceph backend.
func (o *OpenStack) RestartCephDeps(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.RestartCephDeps()
return nil
}
示例11: ConfigureStorageNetwork
// ConfigureStorageNetwork takes playback-nic to set up the storage network.
// Args: {"PlaybackNic.Purge": bool, "PlaybackNic.Public": bool, "PlaybackNic.Private": bool, "PlaybackNic.Host": string, "PlaybackNic.User": string, "PlaybackNic.Address": string, "PlaybackNic.NIC": string, "PlaybackNic.Netmask": string, "PlaybackNic.Gateway": string}
func (o *OpenStack) ConfigureStorageNetwork(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.ConfigureStorageNetwork()
return nil
}
示例12: CinderVolume
// CinderVolume deploy cinder-volume on controller node(ceph backend).
// Args: {"HostName": string}
func (o *OpenStack) CinderVolume(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.CinderVolume()
return nil
}
示例13: CephUserPool
// CephUserPool creates the cinder ceph user and pool name.
func (o *OpenStack) CephUserPool(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.CephUserPool()
return nil
}
示例14: AddCephMon
// AddCephMon add the Ceph monitors.
// Args: {"Node": string}
func (o *OpenStack) AddCephMon(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.AddCephMon()
return nil
}
示例15: FormatDiskForSwift
// FormatDiskForSwift formats devices for Swift Storage (sdb1 and sdc1).
// Args: {"HostName": string}
func (o *OpenStack) FormatDiskForSwift(r *http.Request, args *Args, result *Result) error {
i := provisioning.OpenStack(args)
*result = i.FormatDiskForSwift()
return nil
}