v2/

directory
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0

Directories

Path Synopsis
Package apiversions provides information and interaction with the different API versions for the OpenStack Neutron service.
Package apiversions provides information and interaction with the different API versions for the OpenStack Neutron service.
testing
apiversions unit tests
apiversions unit tests
elb
elbaas
Package lbaas_v2 provides information and interaction with the Load Balancer as a Service v2 extension for the OpenStack Networking service.
Package lbaas_v2 provides information and interaction with the Load Balancer as a Service v2 extension for the OpenStack Networking service.
external
Package external provides information and interaction with the external extension for the OpenStack Networking service.
Package external provides information and interaction with the external extension for the OpenStack Networking service.
external/testing
external unit tests
external unit tests
extradhcpopts
Package extradhcpopts allow to work with extra DHCP functionality of Neutron ports.
Package extradhcpopts allow to work with extra DHCP functionality of Neutron ports.
fwaas
Package fwaas provides information and interaction with the Firewall as a Service extension for the OpenStack Networking service.
Package fwaas provides information and interaction with the Firewall as a Service extension for the OpenStack Networking service.
fwaas/firewalls
Package firewalls allows management and retrieval of firewalls from the OpenStack Networking Service.
Package firewalls allows management and retrieval of firewalls from the OpenStack Networking Service.
fwaas/firewalls/testing
firewalls unit tests
firewalls unit tests
fwaas/policies
Package policies allows management and retrieval of Firewall Policies in the OpenStack Networking Service.
Package policies allows management and retrieval of Firewall Policies in the OpenStack Networking Service.
fwaas/policies/testing
policies unit tests
policies unit tests
fwaas/routerinsertion
Package routerinsertion implements the fwaasrouterinsertion Firewall extension.
Package routerinsertion implements the fwaasrouterinsertion Firewall extension.
fwaas/routerinsertion/testing
routerinsertion unit tests
routerinsertion unit tests
fwaas/rules
Package rules enables management and retrieval of Firewall Rules in the OpenStack Networking Service.
Package rules enables management and retrieval of Firewall Rules in the OpenStack Networking Service.
fwaas/rules/testing
rules unit tests
rules unit tests
fwaas_v2
Package fwaas provides information and interaction with the Firewall as a Service extension for the OpenStack Networking service.
Package fwaas provides information and interaction with the Firewall as a Service extension for the OpenStack Networking service.
fwaas_v2/routerinsertion
Package routerinsertion implements the fwaasrouterinsertion FWaaS extension.
Package routerinsertion implements the fwaasrouterinsertion FWaaS extension.
layer3
Package layer3 provides access to the Layer-3 networking extension for the OpenStack Neutron service.
Package layer3 provides access to the Layer-3 networking extension for the OpenStack Neutron service.
layer3/floatingips
package floatingips enables management and retrieval of Floating IPs from the OpenStack Networking service.
package floatingips enables management and retrieval of Floating IPs from the OpenStack Networking service.
layer3/floatingips/testing
floatingips unit tests
floatingips unit tests
layer3/routers
Package routers enables management and retrieval of Routers from the OpenStack Networking service.
Package routers enables management and retrieval of Routers from the OpenStack Networking service.
layer3/routers/testing
routers unit tests
routers unit tests
lbaas
Package lbaas provides information and interaction with the Load Balancer as a Service extension for the OpenStack Networking service.
Package lbaas provides information and interaction with the Load Balancer as a Service extension for the OpenStack Networking service.
lbaas/members
Package members provides information and interaction with Members of the Load Balancer as a Service extension for the OpenStack Networking service.
Package members provides information and interaction with Members of the Load Balancer as a Service extension for the OpenStack Networking service.
lbaas/members/testing
members unit tests
members unit tests
lbaas/monitors
Package monitors provides information and interaction with the Monitors of the Load Balancer as a Service extension for the OpenStack Networking Service.
Package monitors provides information and interaction with the Monitors of the Load Balancer as a Service extension for the OpenStack Networking Service.
lbaas/monitors/testing
monitors unit tests
monitors unit tests
lbaas/pools
Package pools provides information and interaction with the Pools of the Load Balancing as a Service extension for the OpenStack Networking service.
Package pools provides information and interaction with the Pools of the Load Balancing as a Service extension for the OpenStack Networking service.
lbaas/pools/testing
pools unit tests
pools unit tests
lbaas/vips
Package vips provides information and interaction with the Virtual IPs of the Load Balancing as a Service extension for the OpenStack Networking service.
Package vips provides information and interaction with the Virtual IPs of the Load Balancing as a Service extension for the OpenStack Networking service.
lbaas/vips/testing
vips unit tests
vips unit tests
lbaas_v2
Package lbaas_v2 provides information and interaction with the Load Balancer as a Service v2 extension for the OpenStack Networking service.
Package lbaas_v2 provides information and interaction with the Load Balancer as a Service v2 extension for the OpenStack Networking service.
lbaas_v2/l7policies
Package l7policies provides information and interaction with L7Policies and Rules of the LBaaS v2 extension for the OpenStack Networking service.
Package l7policies provides information and interaction with L7Policies and Rules of the LBaaS v2 extension for the OpenStack Networking service.
lbaas_v2/l7policies/testing
l7policies unit tests
l7policies unit tests
lbaas_v2/listeners
Package listeners provides information and interaction with Listeners of the LBaaS v2 extension for the OpenStack Networking service.
Package listeners provides information and interaction with Listeners of the LBaaS v2 extension for the OpenStack Networking service.
lbaas_v2/listeners/testing
listeners unit tests
listeners unit tests
lbaas_v2/loadbalancers
Package loadbalancers provides information and interaction with Load Balancers of the LBaaS v2 extension for the OpenStack Networking service.
Package loadbalancers provides information and interaction with Load Balancers of the LBaaS v2 extension for the OpenStack Networking service.
lbaas_v2/loadbalancers/testing
loadbalancers unit tests
loadbalancers unit tests
lbaas_v2/monitors
Package monitors provides information and interaction with Monitors of the LBaaS v2 extension for the OpenStack Networking service.
Package monitors provides information and interaction with Monitors of the LBaaS v2 extension for the OpenStack Networking service.
lbaas_v2/monitors/testing
monitors unit tests
monitors unit tests
lbaas_v2/pools
Package pools provides information and interaction with Pools and Members of the LBaaS v2 extension for the OpenStack Networking service.
Package pools provides information and interaction with Pools and Members of the LBaaS v2 extension for the OpenStack Networking service.
lbaas_v2/pools/testing
pools unit tests
pools unit tests
networkipavailabilities
Package networkipavailabilities provides the ability to retrieve and manage networkipavailabilities through the Neutron API.
Package networkipavailabilities provides the ability to retrieve and manage networkipavailabilities through the Neutron API.
networkipavailabilities/testing
networkipavailabilities unit tests
networkipavailabilities unit tests
portsbinding
Package portsbinding provides information and interaction with the port binding extension for the OpenStack Networking service.
Package portsbinding provides information and interaction with the port binding extension for the OpenStack Networking service.
portsbinding/testing
portsbindings unit tests
portsbindings unit tests
portsecurity
Package portsecurity provides information and interaction with the port security extension for the OpenStack Networking service.
Package portsecurity provides information and interaction with the port security extension for the OpenStack Networking service.
provider
Package provider gives access to the provider Neutron plugin, allowing network extended attributes.
Package provider gives access to the provider Neutron plugin, allowing network extended attributes.
provider/testing
provider unit tests
provider unit tests
qos/ruletypes
Package ruletypes contains functionality for working with Neutron 'quality of service' rule-type resources.
Package ruletypes contains functionality for working with Neutron 'quality of service' rule-type resources.
qos/ruletypes/testing
qos unit tests
qos unit tests
rbacpolicies
Package rbacpolicies contains functionality for working with Neutron RBAC Policies.
Package rbacpolicies contains functionality for working with Neutron RBAC Policies.
rbacpolicies/testing
Package testing includes rbac unit tests
Package testing includes rbac unit tests
security
Package security contains functionality to work with security group and security group rules Neutron resources.
Package security contains functionality to work with security group and security group rules Neutron resources.
security/groups
Package groups provides information and interaction with Security Groups for the OpenStack Networking service.
Package groups provides information and interaction with Security Groups for the OpenStack Networking service.
security/groups/testing
groups unit tests
groups unit tests
security/rules
Package rules provides information and interaction with Security Group Rules for the OpenStack Networking service.
Package rules provides information and interaction with Security Group Rules for the OpenStack Networking service.
security/rules/testing
rules unit tests
rules unit tests
subnetpools
Package subnetpools provides the ability to retrieve and manage subnetpools through the Neutron API.
Package subnetpools provides the ability to retrieve and manage subnetpools through the Neutron API.
subnetpools/testing
subnetpools unit tests
subnetpools unit tests
testing
extensions unit tests
extensions unit tests
vpnaas/endpointgroups
Package endpointgroups allows management of endpoint groups in the Openstack Network Service Example to create an Endpoint Group createOpts := endpointgroups.CreateOpts{ Name: groupName, Type: endpointgroups.TypeCIDR, Endpoints: []string{ "10.2.0.0/24", "10.3.0.0/24", }, } group, err := endpointgroups.Create(client, createOpts).Extract() if err != nil { return group, err } Example to retrieve an Endpoint Group group, err := endpointgroups.Get(client, "6ecd9cf3-ca64-46c7-863f-f2eb1b9e838a").Extract() if err != nil { panic(err) } Example to Delete an Endpoint Group err := endpointgroups.Delete(client, "5291b189-fd84-46e5-84bd-78f40c05d69c").ExtractErr() if err != nil { panic(err) } Example to List Endpoint groups allPages, err := endpointgroups.List(client, nil).AllPages() if err != nil { panic(err) } allGroups, err := endpointgroups.ExtractEndpointGroups(allPages) if err != nil { panic(err) } Example to Update an endpoint group name := "updatedname" description := "updated description" updateOpts := endpointgroups.UpdateOpts{ Name: &name, Description: &description, } updatedPolicy, err := endpointgroups.Update(client, "5c561d9d-eaea-45f6-ae3e-08d1a7080828", updateOpts).Extract() if err != nil { panic(err) }
Package endpointgroups allows management of endpoint groups in the Openstack Network Service Example to create an Endpoint Group createOpts := endpointgroups.CreateOpts{ Name: groupName, Type: endpointgroups.TypeCIDR, Endpoints: []string{ "10.2.0.0/24", "10.3.0.0/24", }, } group, err := endpointgroups.Create(client, createOpts).Extract() if err != nil { return group, err } Example to retrieve an Endpoint Group group, err := endpointgroups.Get(client, "6ecd9cf3-ca64-46c7-863f-f2eb1b9e838a").Extract() if err != nil { panic(err) } Example to Delete an Endpoint Group err := endpointgroups.Delete(client, "5291b189-fd84-46e5-84bd-78f40c05d69c").ExtractErr() if err != nil { panic(err) } Example to List Endpoint groups allPages, err := endpointgroups.List(client, nil).AllPages() if err != nil { panic(err) } allGroups, err := endpointgroups.ExtractEndpointGroups(allPages) if err != nil { panic(err) } Example to Update an endpoint group name := "updatedname" description := "updated description" updateOpts := endpointgroups.UpdateOpts{ Name: &name, Description: &description, } updatedPolicy, err := endpointgroups.Update(client, "5c561d9d-eaea-45f6-ae3e-08d1a7080828", updateOpts).Extract() if err != nil { panic(err) }
vpnaas/ikepolicies
Package ikepolicies allows management and retrieval of IKE policies in the OpenStack Networking Service.
Package ikepolicies allows management and retrieval of IKE policies in the OpenStack Networking Service.
vpnaas/ipsecpolicies
Package ipsecpolicies allows management and retrieval of IPSec Policies in the OpenStack Networking Service.
Package ipsecpolicies allows management and retrieval of IPSec Policies in the OpenStack Networking Service.
vpnaas/services
Package services allows management and retrieval of VPN services in the OpenStack Networking Service.
Package services allows management and retrieval of VPN services in the OpenStack Networking Service.
vpnaas/siteconnections
Package siteconnections allows management and retrieval of IPSec site connections in the OpenStack Networking Service.
Package siteconnections allows management and retrieval of IPSec site connections in the OpenStack Networking Service.
Package networks contains functionality for working with Neutron network resources.
Package networks contains functionality for working with Neutron network resources.
testing
networks unit tests
networks unit tests
Package peerings enables management and retrieval of vpc peering connections Example to List a Vpc Peering Connections listOpts:=peerings.ListOpts{} peering,err :=peerings.List(client,sub).AllPages() peerings,err:=peerings.ExtractPeerings(peering) if err != nil{ fmt.Println(err) } Example to Get a Vpc Peering Connection peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" peering,err :=peerings.Get(client,peeringID).Extract() if err != nil{ fmt.Println(err) } Example to Accept a Vpc Peering Connection Request // Note:- The TenantId should be of accepter peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" peering,err:=peerings.Accept(client,peeringID).ExtractResult() if err != nil{ fmt.Println(err) } Example to Reject a Vpc Peering Connection Request // Note:- The TenantId should be of accepter peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" peering,err:=peerings.Reject(client,peeringID).ExtractResult() if err != nil{ fmt.Println(err) } Example to Create a Vpc Peering Connection RequestVpcInfo:=peerings.VpcInfo{VpcId:"3127e30b-5f8e-42d1-a3cc-fdadf412c5bf"} AcceptVpcInfo:=peerings.VpcInfo{"c6efbdb7-dca4-4178-b3ec-692f125c1e25","17fbda95add24720a4038ba4b1c705ed"} opt:=peerings.CreateOpts{"C2C_test",RequestVpcInfo,AcceptVpcInfo} peering,err:=peerings.Create(client,opt).Extract() if err != nil{ fmt.Println(err) } Example to Update a VpcPeeringConnection peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" updateOpts:=peerings.UpdateOpts{"C2C_tes1"} peering,err:=peerings.Update(client,peeringID,updateOpts).Extract() if err != nil{ fmt.Println(err) } Example to Delete a VpcPeeringConnection peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" err := peerings.Delete(client,"6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3") if err != nil { panic(err) }
Package peerings enables management and retrieval of vpc peering connections Example to List a Vpc Peering Connections listOpts:=peerings.ListOpts{} peering,err :=peerings.List(client,sub).AllPages() peerings,err:=peerings.ExtractPeerings(peering) if err != nil{ fmt.Println(err) } Example to Get a Vpc Peering Connection peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" peering,err :=peerings.Get(client,peeringID).Extract() if err != nil{ fmt.Println(err) } Example to Accept a Vpc Peering Connection Request // Note:- The TenantId should be of accepter peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" peering,err:=peerings.Accept(client,peeringID).ExtractResult() if err != nil{ fmt.Println(err) } Example to Reject a Vpc Peering Connection Request // Note:- The TenantId should be of accepter peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" peering,err:=peerings.Reject(client,peeringID).ExtractResult() if err != nil{ fmt.Println(err) } Example to Create a Vpc Peering Connection RequestVpcInfo:=peerings.VpcInfo{VpcId:"3127e30b-5f8e-42d1-a3cc-fdadf412c5bf"} AcceptVpcInfo:=peerings.VpcInfo{"c6efbdb7-dca4-4178-b3ec-692f125c1e25","17fbda95add24720a4038ba4b1c705ed"} opt:=peerings.CreateOpts{"C2C_test",RequestVpcInfo,AcceptVpcInfo} peering,err:=peerings.Create(client,opt).Extract() if err != nil{ fmt.Println(err) } Example to Update a VpcPeeringConnection peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" updateOpts:=peerings.UpdateOpts{"C2C_tes1"} peering,err:=peerings.Update(client,peeringID,updateOpts).Extract() if err != nil{ fmt.Println(err) } Example to Delete a VpcPeeringConnection peeringID := "6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3" err := peerings.Delete(client,"6bbacb0f-9f94-4fe8-a6b6-1818bdccb2a3") if err != nil { panic(err) }
testing
peerings unit tests
peerings unit tests
Package ports contains functionality for working with Neutron port resources.
Package ports contains functionality for working with Neutron port resources.
testing
ports unit tests
ports unit tests
Package routes enables management and retrieval of Routes Route service.
Package routes enables management and retrieval of Routes Route service.
Package subnets contains functionality for working with Neutron subnet resources.
Package subnets contains functionality for working with Neutron subnet resources.
testing
subnets unit tests
subnets unit tests

Jump to

Keyboard shortcuts

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