charm

package
v5.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package charm is is a wrapper for the parts of github.com/juju/charm/v8 used by the charmstore. This version maintains the url parsing bahaviour expected by the charmstore.

Index

Constants

View Source
const (
	ScopeGlobal = charm.ScopeGlobal
)

Copied constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions = charm.Actions

Alias all necessary types

type ApplicationSpec

type ApplicationSpec = charm.ApplicationSpec

type Bundle

type Bundle = charm.Bundle

func ReadBundle

func ReadBundle(path string) (Bundle, error)

type BundleArchive

type BundleArchive = charm.BundleArchive

func ReadBundleArchive

func ReadBundleArchive(path string) (*BundleArchive, error)

func ReadBundleArchiveBytes

func ReadBundleArchiveBytes(data []byte) (*BundleArchive, error)

func ReadBundleArchiveFromReader

func ReadBundleArchiveFromReader(r io.ReaderAt, size int64) (*BundleArchive, error)

type BundleData

type BundleData = charm.BundleData

type Charm

type Charm = charm.Charm

type CharmArchive

type CharmArchive = charm.CharmArchive

func ReadCharmArchiveBytes

func ReadCharmArchiveBytes(data []byte) (*CharmArchive, error)

func ReadCharmArchiveFromReader

func ReadCharmArchiveFromReader(r io.ReaderAt, size int64) (*CharmArchive, error)

type CharmDir

type CharmDir = charm.CharmDir

func ReadCharmDir

func ReadCharmDir(path string) (*CharmDir, error)

type Config

type Config = charm.Config

type MachineSpec

type MachineSpec = charm.MachineSpec

type Meta

type Meta = charm.Meta

func ReadMeta

func ReadMeta(r io.Reader) (*Meta, error)

type Metric

type Metric = charm.Metric

type Metrics

type Metrics = charm.Metrics

type Relation

type Relation = charm.Relation

type URL

type URL = charm.URL

func MustParseURL

func MustParseURL(s string) *URL

MustParseURL parses the given URL, it panics is the URL cannot be parsed.

func ParseURL

func ParseURL(s string) (*URL, error)

ParseURL parses the given string as

type UnitPlacement

type UnitPlacement = charm.UnitPlacement

func ParsePlacement

func ParsePlacement(p string) (*UnitPlacement, error)

type VerificationError

type VerificationError = charm.VerificationError

Jump to

Keyboard shortcuts

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