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

package spaces

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


Package Files


func ShowSpaceFromResult Uses

func ShowSpaceFromResult(result params.ShowSpaceResult) network.ShowSpace

ShowSpaceFromResult converts params.ShowSpaceResult to network.ShowSpace

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

func (*API) RenameSpace Uses

func (api *API) RenameSpace(oldName string, newName string) error

func (*API) ShowSpace Uses

func (api *API) ShowSpace(name string) (network.ShowSpace, error)

ShowSpace shows details about a space. Containing subnets, applications and machines count associated with it.

Package spaces imports 5 packages (graph) and is imported by 32 packages. Updated 2020-02-20. Refresh now. Tools for package owners.