metadata

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 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 Container

type Container struct {
	Image *Image
}

Container contains container specific metadata.

type Git

type Git struct {
	Branch   string
	Ref      string
	Message  string
	SHA      string
	Tag      string
	Status   string
	Describe 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 {
	Container *Container
	Git       *Git
	Version   *Version
	Built     string
	// contains filtered or unexported fields
}

Metadata contains metadata.

func NewMetadata

func NewMetadata(git *git.Git) (m *Metadata, err error)

NewMetadata initializes and returns a Metadata struct.

type Version

type Version struct {
	Original     string
	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