juju: github.com/juju/juju/api/spaces Index | Files

package spaces

import "github.com/juju/juju/api/spaces"


Package Files


type API Uses

type API struct {
    // contains filtered or unexported fields

API provides access to the InstancePoller API facade.

func NewAPI Uses

func NewAPI(caller base.APICallCloser) *API

NewAPI creates a new client-side Spaces facade.

func (*API) CreateSpace Uses

func (api *API) CreateSpace(name string, cidrs []string, public bool) error

CreateSpace creates a new Juju network space, associating the specified subnets with it (optional; can be empty).

func (*API) ListSpaces Uses

func (api *API) ListSpaces() ([]params.Space, error)

ListSpaces lists all available spaces and their associated subnets.

func (*API) ReloadSpaces Uses

func (api *API) ReloadSpaces() error

ReloadSpaces reloads spaces from substrate

Package spaces imports 4 packages (graph) and is imported by 32 packages. Updated 2019-10-13. Refresh now. Tools for package owners.