metadata

package
v0.9.1-beta2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMetadata

type AppMetadata struct {
	Version     string
	Name        string
	Description string      `json:",omitempty"`
	Maintainers Maintainers `json:",omitempty"`
}

AppMetadata is the format of the data found inside the metadata.yml file

func FromBundle added in v0.8.0

func FromBundle(bndl *bundle.Bundle) AppMetadata

FromBundle extracts the docker-app metadata from the bundle

func Load added in v0.5.0

func Load(data []byte) (AppMetadata, error)

Load validates the given data and loads it into a metadata struct

type Maintainer

type Maintainer struct {
	Name  string
	Email string `json:",omitempty"`
}

Maintainer represents one of the apps's maintainers

func (Maintainer) String

func (m Maintainer) String() string

String gives a string representation of a maintainer

type Maintainers

type Maintainers []Maintainer

Maintainers is a list of maintainers

func (Maintainers) String

func (ms Maintainers) String() string

String gives a string representation of a list of maintainers

Jump to

Keyboard shortcuts

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