noauth_openstack

package
v0.0.0-...-9649b88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 DefaultProviderConf struct {
	PhyscialNetwork string
	NetworkType     string
}

type Ip

type Ip struct {
	SubnetId  string `json:"subnet_id"`
	IpAddress string `json:"ip_address,omitempty"`
}

type NoAuthNeutronBulkPortsResp

type NoAuthNeutronBulkPortsResp struct {
	Ports []*NoauthNeutronPort `json:"ports"`
}

type NoauthNeutronConf

type NoauthNeutronConf struct {
	Port         string
	ApiVer       string
	ProviderConf DefaultProviderConf
}

type NoauthNeutronPort

type NoauthNeutronPort struct {
	Id         string `json:"id"`
	NetworkId  string `json:"network_id"`
	Name       string `json:"name"`
	Status     string `json:"status"`
	MacAddress string `json:"mac_address"`
	DeviceId   string `json:"device_id"`
	Ips        []*Ip  `json:"fixed_ips"`
}

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

type NoauthOpenStackConf struct {
	IP       string `json:"ip"`
	Tenantid string `json:"tenant_id"`
	URL      string `json:"url"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL