utils

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailabilityZone

func AvailabilityZone(st *state.State, instID instance.Id) (string, error)

AvailabilityZone returns the availability zone associated with an instance ID.

func CharmMetadata

func CharmMetadata(st *state.State, serviceID string) (*charm.Meta, error)

CharmMetadata returns the charm metadata for the identified service.

func GetEnviron

func GetEnviron(st *state.State) (environs.Environ, error)

GetEnviron returns the environs.Environ ("provider") associated with the model.

Types

type Charm

type Charm interface {
	Meta() *charm.Meta
}

Charm exposes the methods of state.Charm used here.

type CharmService

type CharmService interface {
	Charm() (Charm, error)
}

CharmService exposes the methods of state.Service used here.

type CharmState

type CharmState interface {
	Service(id string) (CharmService, error)
}

CharmState exposes the methods of state.State used here.

func NewCharmState

func NewCharmState(st *state.State) CharmState

NewCharmState returns a new CharmState for the given state.State.

Jump to

Keyboard shortcuts

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