juju: github.com/wallyworld/juju/api/subnets Index | Files

package subnets

import "github.com/wallyworld/juju/api/subnets"

Index

Package Files

subnets.go

type API Uses

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

API provides access to the Subnets API facade.

func NewAPI Uses

func NewAPI(caller base.APICallCloser) *API

NewAPI creates a new client-side Subnets facade.

func (*API) AddSubnet Uses

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 Uses

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

ListSubnets fetches all the subnets known by the model.

func (*API) SubnetsByCIDR Uses

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

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

Package subnets imports 5 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.