gophercloud: Index | Files

package networks

import ""


Package Files


func Create Uses

func Create(c *gophercloud.ServiceClient, opts os.CreateOptsBuilder) os.CreateResult

Create accepts a CreateOpts struct and creates a new network using the values provided. This operation does not actually require a request body, i.e. the CreateOpts struct argument can be empty.

The tenant ID that is contained in the URI is the tenant that creates the network. An admin user, however, has the option of specifying another tenant ID in the CreateOpts struct.

func Delete Uses

func Delete(c *gophercloud.ServiceClient, networkID string) os.DeleteResult

Delete accepts a unique ID and deletes the network associated with it.

func Get Uses

func Get(c *gophercloud.ServiceClient, networkID string) os.GetResult

Get retrieves a specific network based on its unique ID.

func List Uses

func List(c *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager

List returns a Pager which allows you to iterate over a collection of networks. It accepts a ListOpts struct, which allows you to filter and sort the returned collection for greater efficiency.

func Update Uses

func Update(c *gophercloud.ServiceClient, networkID string, opts os.UpdateOptsBuilder) os.UpdateResult

Update accepts a UpdateOpts struct and updates an existing network using the values provided. For more information, see the Create function.

Package networks imports 3 packages (graph). Updated 2019-12-04. Refresh now. Tools for package owners.