Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCloudSpecGetter ¶
MakeCloudSpecGetter returns a function which returns a CloudSpec for a given model, using the given Pool.
func MakeCloudSpecGetterForModel ¶
MakeCloudSpecGetterForModel returns a function which returns a CloudSpec for a single model. Attempts to request a CloudSpec for any other model other than the one associated with the given state.State results in an error.
Types ¶
type CloudSpecAPI ¶
type CloudSpecAPI interface { // CloudSpec returns the model's cloud spec. CloudSpec(args params.Entities) (params.CloudSpecResults, error) // GetCloudSpec constructs the CloudSpec for a validated and authorized model. GetCloudSpec(tag names.ModelTag) params.CloudSpecResult }
CloudSpecAPI implements common methods for use by various facades for querying the cloud spec of models.
func NewCloudSpec ¶
func NewCloudSpec( getCloudSpec func(names.ModelTag) (environs.CloudSpec, error), getAuthFunc common.GetAuthFunc, ) CloudSpecAPI
NewCloudSpec returns a new CloudSpecAPI.
Click to show internal directories.
Click to hide internal directories.