Documentation ¶
Index ¶
- Constants
- Variables
- func AuthenticatedClientV2(options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error)
- type OpenStack
- func (self *OpenStack) AttachNetToRouter(routerId, subNetId string) (string, error)
- func (self *OpenStack) AttachPortToVM(vmId, portId string) (*Interface, error)
- func (self *OpenStack) Auth() error
- func (o *OpenStack) CreateBulkPorts(req *mgriaas.MgrBulkPortsReq) ([]*Interface, error)
- func (self *OpenStack) CreateNetwork(name string) (*Network, error)
- func (self *OpenStack) CreatePort(networkId, subnetId, portName, ip, mac, vnicType string) (*Interface, error)
- func (self *OpenStack) CreateProviderNetwork(name, nwType, phyNet, sId string, vlanTransparent bool) (*Network, error)
- func (self *OpenStack) CreateRouter(name, extNetId string) (string, error)
- func (self *OpenStack) CreateSubnet(id, cidr, gw string, allocationPools []subnets.AllocationPool) (*Subnet, error)
- func (self *OpenStack) DeleteNetwork(id string) error
- func (self *OpenStack) DeletePort(portId string) error
- func (self *OpenStack) DeleteRouter(id string) error
- func (self *OpenStack) DeleteSubnet(id string) error
- func (self *OpenStack) DetachNetFromRouter(routerId, subNetId string) (string, error)
- func (self *OpenStack) DetachPortFromVM(vmId, portId string) error
- func (self *OpenStack) GetAttachReq() int
- func (self *OpenStack) GetNetwork(id string) (*Network, error)
- func (self *OpenStack) GetNetworkExtenAttrs(id string) (*NetworkExtenAttrs, error)
- func (self *OpenStack) GetNetworkID(networkName string) (string, error)
- func (self *OpenStack) GetPort(id string) (*Interface, error)
- func (self *OpenStack) GetRouter(id string) (*Router, error)
- func (self *OpenStack) GetSubnet(id string) (*Subnet, error)
- func (self *OpenStack) GetSubnetID(networkId string) (string, error)
- func (self *OpenStack) GetTenantID() string
- func (self *OpenStack) GetTenantName() string
- func (self *OpenStack) GetTenantUUID(cfgStr string) (string, error)
- func (self *OpenStack) GetType() string
- func (self *OpenStack) ListPorts(networkID string) ([]*Interface, error)
- func (self *OpenStack) Lock(vmId string)
- func (self *OpenStack) SetAttachReq(req int)
- func (self *OpenStack) SetConfig(conf gophercloud.AuthOptions)
- func (self *OpenStack) SetOpenstackConfig(cfgStr string) error
- func (self *OpenStack) Unlock(vmId string)
- func (self *OpenStack) UpdateRouter(routerID, name, extNetId string) error
- func (self *OpenStack) VmLockInit(vmId string)
- type OpenStackConf
Constants ¶
View Source
const MaxReqForAttach int = 5
Variables ¶
View Source
var InitLock sync.Mutex
Functions ¶
func AuthenticatedClientV2 ¶
func AuthenticatedClientV2(options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error)
Types ¶
type OpenStack ¶
type OpenStack struct { VmLock map[string]*sync.Mutex Channel chan int AttachReq int // contains filtered or unexported fields }
func NewOpenstack ¶
func NewOpenstack() *OpenStack
func (*OpenStack) AttachNetToRouter ¶
func (*OpenStack) AttachPortToVM ¶
func (*OpenStack) CreateBulkPorts ¶
func (*OpenStack) CreateNetwork ¶
func (*OpenStack) CreatePort ¶
func (*OpenStack) CreateProviderNetwork ¶
func (*OpenStack) CreateRouter ¶
func (*OpenStack) CreateSubnet ¶
func (self *OpenStack) CreateSubnet(id, cidr, gw string, allocationPools []subnets.AllocationPool) (*Subnet, error)
func (*OpenStack) DeleteNetwork ¶
func (*OpenStack) DeletePort ¶
func (*OpenStack) DeleteRouter ¶
func (*OpenStack) DeleteSubnet ¶
func (*OpenStack) DetachNetFromRouter ¶
func (*OpenStack) DetachPortFromVM ¶
func (*OpenStack) GetAttachReq ¶
func (*OpenStack) GetNetwork ¶
func (*OpenStack) GetNetworkExtenAttrs ¶
func (*OpenStack) GetNetworkID ¶
func (*OpenStack) GetSubnetID ¶
func (*OpenStack) GetTenantID ¶
func (*OpenStack) GetTenantName ¶
func (*OpenStack) GetTenantUUID ¶
func (*OpenStack) SetAttachReq ¶
func (*OpenStack) SetConfig ¶
func (self *OpenStack) SetConfig(conf gophercloud.AuthOptions)
func (*OpenStack) SetOpenstackConfig ¶
func (*OpenStack) UpdateRouter ¶
func (*OpenStack) VmLockInit ¶
Click to show internal directories.
Click to hide internal directories.