juju: github.com/juju/juju/api/charms Index | Files

package charms

import "github.com/juju/juju/api/charms"

charms provides a client for accessing the charms API.


Package Files


type CharmInfo Uses

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.

type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client allows access to the charms API end point.

func NewClient Uses

func NewClient(st base.APICallCloser) *Client

NewClient creates a new client for accessing the charms API.

func (*Client) CharmInfo Uses

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

CharmInfo returns information about the requested charm.

func (*Client) IsMetered Uses

func (c *Client) IsMetered(charmURL string) (bool, error)

IsMetered returns whether or not the charm is metered.

Package charms imports 6 packages (graph) and is imported by 36 packages. Updated 2020-07-27. Refresh now. Tools for package owners.