cloudspec

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 8 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 provides common client-side API functions to call into apiserver/common/environscloudspec.CloudSpec.

func NewCloudSpecAPI

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

NewCloudSpecAPI creates a CloudSpecAPI using the provided FacadeCaller.

func (*CloudSpecAPI) CloudSpec

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

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

func (*CloudSpecAPI) MakeCloudSpec

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

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

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

Jump to

Keyboard shortcuts

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