Documentation
¶
Index ¶
- Variables
- type API
- func (api *API) CreateSpace(ctx context.Context, name string, cidrs []string, public bool) error
- func (api *API) ListSpaces(ctx context.Context) ([]params.Space, error)
- func (api *API) MoveSubnets(ctx context.Context, space names.SpaceTag, subnets []names.SubnetTag, ...) (params.MoveSubnetsResult, error)
- func (api *API) ReloadSpaces(ctx context.Context) error
- func (api *API) RemoveSpace(ctx context.Context, name string, force bool, dryRun bool) (params.RemoveSpaceResult, error)
- func (api *API) RenameSpace(ctx context.Context, oldName string, newName string) error
- func (api *API) ShowSpace(ctx context.Context, name string) (params.ShowSpaceResult, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { base.ClientFacade // contains filtered or unexported fields }
API provides access to the Spaces API facade.
func NewAPI ¶
func NewAPI(caller base.APICallCloser, options ...Option) *API
NewAPI creates a new client-side Spaces facade.
func (*API) CreateSpace ¶
CreateSpace creates a new Juju network space, associating the specified subnets with it (optional; can be empty).
func (*API) ListSpaces ¶
ListSpaces lists all available spaces and their associated subnets.
func (*API) MoveSubnets ¶
func (api *API) MoveSubnets(ctx context.Context, 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 ¶
ReloadSpaces reloads spaces from substrate.
func (*API) RemoveSpace ¶
func (api *API) RemoveSpace(ctx context.Context, name string, force bool, dryRun bool) (params.RemoveSpaceResult, error)
RemoveSpace removes a space.
func (*API) RenameSpace ¶
RenameSpace attempts to rename a space from the old name to a new name.
Click to show internal directories.
Click to hide internal directories.