metadata

package
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	Image         *Image
	PreviousStage string
	CurrentStage  string
	NextStage     string
}

Docker contains docker specific metadata.

type Git

type Git struct {
	Branch   string
	Message  string
	SHA      string
	Tag      string
	IsBranch bool
	IsClean  bool
	IsTag    bool
}

Git contains git specific metadata.

type Image

type Image struct {
	Name string
	Tag  string
}

Image contains information used to identity an image.

type Metadata

type Metadata struct {
	Repository string `yaml:"repository"`
	Docker     *Docker
	Git        *Git
	Version    *Version
	Variables  VariablesMap `yaml:"variables"`
	Built      string
}

Metadata contains metadata.

func (*Metadata) UnmarshalYAML

func (m *Metadata) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the yaml.UnmarshalYAML interface.

type VariablesMap

type VariablesMap = map[string]interface{}

VariablesMap is a map for user defined metadata.

type Version

type Version struct {
	Major        int64
	Minor        int64
	Patch        int64
	Prerelease   string
	IsPrerelease bool
}

Version contains version specific metadata.

Jump to

Keyboard shortcuts

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