charms

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 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 ApplicationCharmInfoClient

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

ApplicationCharmInfoClient allows access to the ApplicationCharmInfo endpoint.

func NewApplicationCharmInfoClient

func NewApplicationCharmInfoClient(facade base.FacadeCaller) *ApplicationCharmInfoClient

NewApplicationCharmInfoClient creates a new client for accessing the ApplicationCharmInfo API.

func (*ApplicationCharmInfoClient) ApplicationCharmInfo

func (c *ApplicationCharmInfoClient) ApplicationCharmInfo(appName string) (*CharmInfo, error)

ApplicationCharmInfo returns information about an application's charm.

type CharmInfo

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

CharmInfo holds information about a charm.

func (*CharmInfo) Charm

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

type CharmInfoClient

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

CharmInfoClient allows access to the charms API endpoint.

func NewCharmInfoClient

func NewCharmInfoClient(facade base.FacadeCaller) *CharmInfoClient

NewCharmInfoClient creates a new client for accessing the charms API.

func (*CharmInfoClient) CharmInfo

func (c *CharmInfoClient) 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