Documentation ¶
Index ¶
- Constants
- type DefaultProviderConf
- type Ip
- type NoAuthNeutronBulkPortsResp
- type NoauthNeutronConf
- type NoauthNeutronPort
- type NoauthOpenStack
- func (self *NoauthOpenStack) AttachNetToRouter(routerId, subNetId string) (string, error)
- func (self *NoauthOpenStack) AttachPortToVM(vmId, portId string) (*Interface, error)
- func (self *NoauthOpenStack) Auth() error
- func (n *NoauthOpenStack) CreateBulkPorts(req *mgriaas.MgrBulkPortsReq) ([]*Interface, error)
- func (self *NoauthOpenStack) CreateNetwork(name string) (*Network, error)
- func (self *NoauthOpenStack) CreatePort(networkId, subnetId, networkPlane, ip, mac, vnicType string) (*Interface, error)
- func (self *NoauthOpenStack) CreateProviderNetwork(name, netType, physNet, segId string, vlanTransparent bool) (*Network, error)
- func (self *NoauthOpenStack) CreateRouter(name, extNetId string) (string, error)
- func (self *NoauthOpenStack) CreateSubnet(id, cidr, gw string, allocationPools []subnets.AllocationPool) (*Subnet, error)
- func (self *NoauthOpenStack) DeleteNetwork(id string) error
- func (self *NoauthOpenStack) DeletePort(id string) error
- func (self *NoauthOpenStack) DeleteRouter(id string) error
- func (self *NoauthOpenStack) DeleteSubnet(id string) error
- func (self *NoauthOpenStack) DetachNetFromRouter(routerId, netId string) (string, error)
- func (self *NoauthOpenStack) DetachPortFromVM(vmId, portId string) error
- func (self *NoauthOpenStack) GetAttachReq() int
- func (self *NoauthOpenStack) GetNetwork(id string) (*Network, error)
- func (self *NoauthOpenStack) GetNetworkExtenAttrs(id string) (*NetworkExtenAttrs, error)
- func (self *NoauthOpenStack) GetNetworkID(name string) (string, error)
- func (self *NoauthOpenStack) GetPort(id string) (*Interface, error)
- func (self *NoauthOpenStack) GetRouter(id string) (*Router, error)
- func (self *NoauthOpenStack) GetSubnet(id string) (*Subnet, error)
- func (self *NoauthOpenStack) GetSubnetID(networkId string) (string, error)
- func (self *NoauthOpenStack) GetTenantUUID(cfg string) (string, error)
- func (self *NoauthOpenStack) GetType() string
- func (self *NoauthOpenStack) ListPorts(networkID string) ([]*Interface, error)
- func (self *NoauthOpenStack) SetAttachReq(req int)
- func (self *NoauthOpenStack) UpdateRouter(id, name, extNetID string) error
- type NoauthOpenStackConf
Constants ¶
View Source
const ( DefaultNoauthOpenStackTenantId = "knitter-blank-openstack-tenant-id" DefaultOpenStackIpVersion = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultProviderConf ¶
type NoAuthNeutronBulkPortsResp ¶
type NoAuthNeutronBulkPortsResp struct {
Ports []*NoauthNeutronPort `json:"ports"`
}
type NoauthNeutronConf ¶
type NoauthNeutronConf struct { Port string ApiVer string ProviderConf DefaultProviderConf }
type NoauthNeutronPort ¶
type NoauthOpenStack ¶
type NoauthOpenStack struct { NoauthOpenStackConf NeutronConf NoauthNeutronConf }
func NewNoauthOpenStack ¶
func NewNoauthOpenStack(conf NoauthOpenStackConf, noauthNeutronConf NoauthNeutronConf) *NoauthOpenStack
func (*NoauthOpenStack) AttachNetToRouter ¶
func (self *NoauthOpenStack) AttachNetToRouter(routerId, subNetId string) (string, error)
func (*NoauthOpenStack) AttachPortToVM ¶
func (self *NoauthOpenStack) AttachPortToVM(vmId, portId string) (*Interface, error)
func (*NoauthOpenStack) Auth ¶
func (self *NoauthOpenStack) Auth() error
func (*NoauthOpenStack) CreateBulkPorts ¶
func (n *NoauthOpenStack) CreateBulkPorts(req *mgriaas.MgrBulkPortsReq) ([]*Interface, error)
func (*NoauthOpenStack) CreateNetwork ¶
func (self *NoauthOpenStack) CreateNetwork(name string) (*Network, error)
func (*NoauthOpenStack) CreatePort ¶
func (self *NoauthOpenStack) CreatePort(networkId, subnetId, networkPlane, ip, mac, vnicType string) (*Interface, error)
func (*NoauthOpenStack) CreateProviderNetwork ¶
func (self *NoauthOpenStack) CreateProviderNetwork(name, netType, physNet, segId string, vlanTransparent bool) (*Network, error)
func (*NoauthOpenStack) CreateRouter ¶
func (self *NoauthOpenStack) CreateRouter(name, extNetId string) (string, error)
func (*NoauthOpenStack) CreateSubnet ¶
func (self *NoauthOpenStack) CreateSubnet(id, cidr, gw string, allocationPools []subnets.AllocationPool) (*Subnet, error)
func (*NoauthOpenStack) DeleteNetwork ¶
func (self *NoauthOpenStack) DeleteNetwork(id string) error
func (*NoauthOpenStack) DeletePort ¶
func (self *NoauthOpenStack) DeletePort(id string) error
func (*NoauthOpenStack) DeleteRouter ¶
func (self *NoauthOpenStack) DeleteRouter(id string) error
func (*NoauthOpenStack) DeleteSubnet ¶
func (self *NoauthOpenStack) DeleteSubnet(id string) error
func (*NoauthOpenStack) DetachNetFromRouter ¶
func (self *NoauthOpenStack) DetachNetFromRouter(routerId, netId string) (string, error)
func (*NoauthOpenStack) DetachPortFromVM ¶
func (self *NoauthOpenStack) DetachPortFromVM(vmId, portId string) error
func (*NoauthOpenStack) GetAttachReq ¶
func (self *NoauthOpenStack) GetAttachReq() int
func (*NoauthOpenStack) GetNetwork ¶
func (self *NoauthOpenStack) GetNetwork(id string) (*Network, error)
func (*NoauthOpenStack) GetNetworkExtenAttrs ¶
func (self *NoauthOpenStack) GetNetworkExtenAttrs(id string) (*NetworkExtenAttrs, error)
func (*NoauthOpenStack) GetNetworkID ¶
func (self *NoauthOpenStack) GetNetworkID(name string) (string, error)
func (*NoauthOpenStack) GetPort ¶
func (self *NoauthOpenStack) GetPort(id string) (*Interface, error)
func (*NoauthOpenStack) GetRouter ¶
func (self *NoauthOpenStack) GetRouter(id string) (*Router, error)
func (*NoauthOpenStack) GetSubnet ¶
func (self *NoauthOpenStack) GetSubnet(id string) (*Subnet, error)
func (*NoauthOpenStack) GetSubnetID ¶
func (self *NoauthOpenStack) GetSubnetID(networkId string) (string, error)
func (*NoauthOpenStack) GetTenantUUID ¶
func (self *NoauthOpenStack) GetTenantUUID(cfg string) (string, error)
func (*NoauthOpenStack) GetType ¶
func (self *NoauthOpenStack) GetType() string
func (*NoauthOpenStack) ListPorts ¶
func (self *NoauthOpenStack) ListPorts(networkID string) ([]*Interface, error)
func (*NoauthOpenStack) SetAttachReq ¶
func (self *NoauthOpenStack) SetAttachReq(req int)
func (*NoauthOpenStack) UpdateRouter ¶
func (self *NoauthOpenStack) UpdateRouter(id, name, extNetID string) error
type NoauthOpenStackConf ¶
Click to show internal directories.
Click to hide internal directories.