juju: github.com/wallyworld/juju/cmd/juju/charmhub Index | Files | Directories

package charmhub

import "github.com/wallyworld/juju/cmd/juju/charmhub"

Index

Package Files

data.go find.go findwriter.go info.go infowriter.go interface.go

func NewFindCommand Uses

func NewFindCommand() cmd.Command

NewFindCommand wraps findCommand with sane model settings.

func NewInfoCommand Uses

func NewInfoCommand() cmd.Command

NewInfoCommand wraps infoCommand with sane model settings.

type Bundle Uses

type Bundle struct {
    Charms []BundleCharm `json:"charms,omitempty" yaml:"charms,omitempty"`
}

type BundleCharm Uses

type BundleCharm struct {
    Name     string `json:"name" yaml:"name"`
    Revision int    `json:"revision" yaml:"revision"`
}

type Channel Uses

type Channel struct {
    ReleasedAt string `json:"released-at" yaml:"released-at"`
    Track      string `json:"track" yaml:"track"`
    Risk       string `json:"risk" yaml:"risk"`
    Revision   int    `json:"revision" yaml:"revision"`
    Size       int    `json:"size" yaml:"size"`
    Version    string `json:"version" yaml:"version"`
}

type Charm Uses

type Charm struct {
    Config      *charm.Config                `json:"config,omitempty" yaml:"config,omitempty"`
    Relations   map[string]map[string]string `json:"relations,omitempty" yaml:"relations,omitempty"`
    Subordinate bool                         `json:"subordinate,omitempty" yaml:"subordinate,omitempty"`
    UsedBy      []string                     `json:"used-by,omitempty" yaml:"used-by,omitempty"` // bundles which use the charm
}

Charm matches a params.CharmHubCharm

type FindCommandAPI Uses

type FindCommandAPI interface {
    Find(string) ([]charmhub.FindResponse, error)
    Close() error
}

FindCommandAPI describes API methods required to execute the find command.

type FindResponse Uses

type FindResponse struct {
    Type      string   `json:"type" yaml:"type"`
    ID        string   `json:"id" yaml:"id"`
    Name      string   `json:"name" yaml:"name"`
    Publisher string   `json:"publisher" yaml:"publisher"`
    Summary   string   `json:"summary" yaml:"summary"`
    Version   string   `json:"version" yaml:"version"`
    Series    []string `json:"series,omitempty" yaml:"series,omitempty"`
    StoreURL  string   `json:"store-url" yaml:"store-url"`
}

type InfoCommandAPI Uses

type InfoCommandAPI interface {
    Info(string) (charmhub.InfoResponse, error)
    Close() error
}

InfoCommandAPI describes API methods required to execute the info command.

type InfoResponse Uses

type InfoResponse struct {
    Type        string             `json:"type" yaml:"type"`
    ID          string             `json:"id" yaml:"id"`
    Name        string             `json:"name" yaml:"name"`
    Description string             `json:"description" yaml:"description"`
    Publisher   string             `json:"publisher" yaml:"publisher"`
    Summary     string             `json:"summary" yaml:"summary"`
    Series      []string           `json:"series,omitempty" yaml:"series,omitempty"`
    StoreURL    string             `json:"store-url" yaml:"store-url"`
    Tags        []string           `json:"tags,omitempty" yaml:"tags,omitempty"`
    Charm       *Charm             `json:"charm,omitempty" yaml:"charm,omitempty"`
    Bundle      *Bundle            `json:"bundle,omitempty" yaml:"bundle,omitempty"`
    Channels    map[string]Channel `json:"channel-map" yaml:"channel-map"`
    Tracks      []string           `json:"tracks,omitempty" yaml:"tracks,omitempty"`
}

type Log Uses

type Log = func(format string, params ...interface{})

Log describes a log format function to output to.

type Printer Uses

type Printer interface {
    Print() error
}

Printer defines an interface for printing out values.

Directories

PathSynopsis
mocksPackage mocks is a generated GoMock package.

Package charmhub imports 16 packages (graph). Updated 2020-08-15. Refresh now. Tools for package owners.