charms

package
v0.0.0-...-78dbea0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Charm() (ch Charm, force bool, err error)
}

type ApplicationCharmInfoAPI

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

ApplicationCharmInfoAPI implements the ApplicationCharmInfo endpoint.

func NewApplicationCharmInfoAPI

func NewApplicationCharmInfoAPI(st State, authorizer facade.Authorizer) (*ApplicationCharmInfoAPI, error)

NewApplicationCharmInfoAPI provides the signature required for facade registration.

func (*ApplicationCharmInfoAPI) ApplicationCharmInfo

func (a *ApplicationCharmInfoAPI) ApplicationCharmInfo(args params.Entity) (params.Charm, error)

ApplicationCharmInfo fetches charm information for an application.

type Charm

type Charm interface {
	URL() string
	Revision() int
	Meta() *charm.Meta
	Config() *charm.Config
	Manifest() *charm.Manifest
	Metrics() *charm.Metrics
	Actions() *charm.Actions
	LXDProfile() *state.LXDProfile
}

type CharmInfoAPI

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

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

func NewCharmInfoAPI

func NewCharmInfoAPI(st State, authorizer facade.Authorizer) (*CharmInfoAPI, error)

NewCharmInfoAPI provides the signature required for facade registration.

func (*CharmInfoAPI) CharmInfo

func (a *CharmInfoAPI) 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 Model

type Model interface {
	ModelTag() names.ModelTag
}

type State

type State interface {
	Model() (Model, error)
	Charm(curl string) (Charm, error)
	Application(appName string) (Application, error)
}

type StateShim

type StateShim struct {
	State *state.State
}

func (*StateShim) Application

func (s *StateShim) Application(id string) (Application, error)

func (*StateShim) Charm

func (s *StateShim) Charm(curl string) (Charm, error)

func (*StateShim) Model

func (s *StateShim) Model() (Model, error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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