manifest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(manifestBytes []byte, localStemcell osversion.Reference) (*Manifest, error)

func (*Manifest) Bytes

func (m *Manifest) Bytes() ([]byte, error)

func (*Manifest) ReleaseRequirements

func (m *Manifest) ReleaseRequirements() []ReleasePatch

func (*Manifest) UpdateRelease

func (m *Manifest) UpdateRelease(release ReleasePatch) error

type ReleasePatch

type ReleasePatch struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`

	Source   ReleasePatchRef
	Compiled ReleasePatchRef
	Stemcell Stemcell
	// contains filtered or unexported fields
}

func (ReleasePatch) IsCompiled

func (r ReleasePatch) IsCompiled() bool

func (ReleasePatch) Op

func (r ReleasePatch) Op() patch.Op

func (ReleasePatch) Slug

func (r ReleasePatch) Slug() string

type ReleasePatchRef

type ReleasePatchRef struct {
	Sha1 string `yaml:"sha1"`
	URL  string `yaml:"url"`
}

type Stemcell

type Stemcell struct {
	OS      string `yaml:"os"`
	Version string `yaml:"version"`
}

func (Stemcell) Slug

func (s Stemcell) Slug() string

Jump to

Keyboard shortcuts

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