charms

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharmsAPI

type CharmsAPI struct {
	// contains filtered or unexported fields
}

CharmsAPI implements the charms interface and is the concrete implementation of the CharmsAPI end point.

func NewCharmsAPI

func NewCharmsAPI(st State, authorizer facade.Authorizer) (*CharmsAPI, error)

NewCharmsAPI provides the signature required for facade registration.

func (*CharmsAPI) CharmInfo

func (a *CharmsAPI) CharmInfo(args params.CharmURL) (params.Charm, error)

CharmInfo returns information about the requested charm. NOTE: thumper 2016-06-29, this is not a bulk call and probably should be.

type State

type State interface {
	Model() (*state.Model, error)
	Charm(curl *charm.URL) (*state.Charm, error)
}

Jump to

Keyboard shortcuts

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