metadata

package
v0.9.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

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      `json:"version"`
	Name        string      `json:"name"`
	Description string      `json:"description,omitempty"`
	Maintainers Maintainers `json:"maintainers,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

Metadata 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 `json:"name"`
	Email string `json:"email,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