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: 8 Imported by: 0

Documentation

Overview

Package charms provides a client for accessing the charms API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharmInfo

type CharmInfo struct {
	Revision   int
	URL        string
	Config     *charm.Config
	Meta       *charm.Meta
	Actions    *charm.Actions
	Metrics    *charm.Metrics
	LXDProfile *charm.LXDProfile
}

CharmInfo holds information about a charm.

func (*CharmInfo) Charm

func (info *CharmInfo) Charm() charm.Charm

type CharmsClient

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

CharmsClient allows access to the charms API end point.

func NewCharmsClient

func NewCharmsClient(facade base.FacadeCaller) *CharmsClient

NewCharmsClient creates a new client for accessing the charms API.

func (*CharmsClient) CharmInfo

func (c *CharmsClient) CharmInfo(charmURL string) (*CharmInfo, error)

CharmInfo returns information about the requested charm.

Jump to

Keyboard shortcuts

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