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

package spaces

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

Index

Package Files

spaces.go

type API Uses

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

API provides access to the Spaces 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) MoveSubnets Uses

func (api *API) MoveSubnets(space names.SpaceTag, subnets []names.SubnetTag, force bool) (params.MoveSubnetsResult, error)

MoveSubnets ensures that the input subnets are in the input space.

func (*API) ReloadSpaces Uses

func (api *API) ReloadSpaces() error

ReloadSpaces reloads spaces from substrate.

func (*API) RemoveSpace Uses

func (api *API) RemoveSpace(name string, force bool, dryRun bool) (params.RemoveSpaceResult, error)

RemoveSpace removes a space.

func (*API) RenameSpace Uses

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

RenameSpace attempts to rename a space from the old name to a new name.

func (*API) ShowSpace Uses

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

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

Package spaces imports 4 packages (graph) and is imported by 33 packages. Updated 2020-05-13. Refresh now. Tools for package owners.