dashboard

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

Documentation

Index

Constants

View Source
const (
	// DefaultBaseURL holds the default simplestreams data source URL from
	// where to retrieve Juju Dashboard archives.
	DefaultBaseURL = "https://streams.canonical.com/juju/gui"
	// ReleasedStream and DevelStreams hold stream names to use when fetching
	// Juju Dashboard archives.
	ReleasedStream = "released"
	DevelStream    = "devel"
)

Variables

This section is empty.

Functions

func DashboardArchiveVersion

func DashboardArchiveVersion(r io.Reader) (version.Number, error)

DashboardArchiveVersion retrieves the Dashboard version from the given tar.bz2 archive reader.

func NewDataSource

func NewDataSource(baseURL string) simplestreams.DataSource

DataSource creates and returns a new simplestreams signed data source for fetching Juju Dashboard archives, at the given URL.

Types

type Metadata

type Metadata struct {
	Size   int64  `json:"size"`
	SHA256 string `json:"sha256"`
	Path   string `json:"path"`

	MinJujuVersion   string `json:"min-juju-version"`
	DashboardVersion string `json:"version"`

	Version  version.Number           `json:"-"`
	FullPath string                   `json:"-"`
	Source   simplestreams.DataSource `json:"-"`
}

Metadata is the type used to retrieve Dashboard archive metadata information from simplestream. Tags for this structure are registered in init().

func FetchMetadata

func FetchMetadata(stream string, major, minor int, sources ...simplestreams.DataSource) ([]*Metadata, error)

FetchMetadata fetches and returns Juju Dashboard metadata from simplestreams, sorted by version descending.

Jump to

Keyboard shortcuts

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