juju: github.com/wallyworld/juju/api/common/cloudspec Index | Files

package cloudspec

import "github.com/wallyworld/juju/api/common/cloudspec"


Package Files


type CloudSpecAPI Uses

type CloudSpecAPI struct {
    // contains filtered or unexported fields

CloudSpecAPI provides common client-side API functions to call into apiserver/common/environscloudspec.CloudSpec.

func NewCloudSpecAPI Uses

func NewCloudSpecAPI(facade base.FacadeCaller, modelTag names.ModelTag) *CloudSpecAPI

NewCloudSpecAPI creates a CloudSpecAPI using the provided FacadeCaller.

func (*CloudSpecAPI) CloudSpec Uses

func (api *CloudSpecAPI) CloudSpec() (environscloudspec.CloudSpec, error)

CloudSpec returns the cloud specification for the model associated with the API facade.

func (*CloudSpecAPI) MakeCloudSpec Uses

func (api *CloudSpecAPI) MakeCloudSpec(pSpec *params.CloudSpec) (environscloudspec.CloudSpec, error)

MakeCloudSpec creates an environscloudspec.CloudSpec from a params.CloudSpec that has been returned from the apiserver.

func (*CloudSpecAPI) WatchCloudSpecChanges Uses

func (api *CloudSpecAPI) WatchCloudSpecChanges() (watcher.NotifyWatcher, error)

WatchCloudSpecChanges returns a NotifyWatcher waiting for the model's cloud to change.

Package cloudspec imports 8 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.