subnets

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

API provides access to the Subnets API facade.

func NewAPI

func NewAPI(caller base.APICallCloser) *API

NewAPI creates a new client-side Subnets facade.

func (*API) AddSubnet

func (api *API) AddSubnet(cidr string, providerId network.Id, space names.SpaceTag, zones []string) error

AddSubnet adds an existing subnet to the model.

func (*API) ListSubnets

func (api *API) ListSubnets(spaceTag *names.SpaceTag, zone string) ([]params.Subnet, error)

ListSubnets fetches all the subnets known by the model.

func (*API) SubnetsByCIDR

func (api *API) SubnetsByCIDR(cidrs []string) ([]params.SubnetsResult, error)

SubnetsByCIDR returns the collection of subnets matching each CIDR in the input.

Jump to

Keyboard shortcuts

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