cloudspec

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: AGPL-3.0 Imports: 4 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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