Documentation ¶
Index ¶
- type API
- func (api *API) AddSubnets(args params.AddSubnetsParams) (params.ErrorResults, error)
- func (api *API) CreateSpaces(args params.CreateSpacesParams) (results params.ErrorResults, err error)
- func (api *API) ListSpaces() (results params.DiscoverSpacesResults, err error)
- func (api *API) ListSubnets(args params.SubnetsFilters) (results params.ListSubnetsResults, err error)
- func (api *API) ModelConfig() (params.ModelConfigResult, error)
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.
Click to show internal directories.
Click to hide internal directories.