subnets

package
v0.0.0-...-56cb166 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

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, options ...Option) *API

NewAPI creates a new client-side Subnets facade.

func (*API) ListSubnets

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

ListSubnets fetches all the subnets known by the model.

func (*API) SubnetsByCIDR

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

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

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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