discoverspaces

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API implements the API used by the discoverspaces worker.

func NewAPI

func NewAPI(st *state.State, resources facade.Resources, authorizer facade.Authorizer) (*API, error)

NewAPI creates a new instance of the DiscoverSpaces API.

func NewAPIWithBacking

func NewAPIWithBacking(st networkingcommon.NetworkBacking, resources facade.Resources, authorizer facade.Authorizer) (*API, error)

NewAPIWithBacking creates an API instance from the given network backing (primarily useful from tests).

func (*API) AddSubnets

func (api *API) AddSubnets(args params.AddSubnetsParams) (params.ErrorResults, error)

AddSubnets adds the passed subnet info to the backing store.

func (*API) CreateSpaces

func (api *API) CreateSpaces(args params.CreateSpacesParams) (results params.ErrorResults, err error)

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

func (*API) ListSpaces

func (api *API) ListSpaces() (results params.DiscoverSpacesResults, err error)

ListSpaces lists all the available spaces and their associated subnets.

func (*API) ListSubnets

func (api *API) ListSubnets(args params.SubnetsFilters) (results params.ListSubnetsResults, err error)

ListSubnets lists all the available subnets or only those matching all given optional filters.

func (*API) ModelConfig

func (api *API) ModelConfig() (params.ModelConfigResult, error)

ModelConfig returns the current model's configuration.

Jump to

Keyboard shortcuts

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