Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudSpecAPI ¶
type CloudSpecAPI struct {
// contains filtered or unexported fields
}
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.
func NewCloudSpecForModel ¶
func NewCloudSpecForModel( modelTag names.ModelTag, getCloudSpec func() (environs.CloudSpec, error), ) CloudSpecAPI
NewCloudSpecForModel returns a new CloudSpecAPI that permits access to only one model.
func (CloudSpecAPI) CloudSpec ¶
func (s CloudSpecAPI) CloudSpec(args params.Entities) (params.CloudSpecResults, error)
CloudSpec returns the model's cloud spec.
func (CloudSpecAPI) GetCloudSpec ¶
func (s CloudSpecAPI) GetCloudSpec(tag names.ModelTag) params.CloudSpecResult
GetCloudSpec constucts the CloudSpec for a validated and authorized model.
Click to show internal directories.
Click to hide internal directories.