tiles

package
v0.0.0-...-289e7b7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Jobs []MetadataJob `yaml:"job_types"`
}

type MetadataJob

type MetadataJob struct {
	Name           string                `yaml:"name"`
	Templates      []MetadataJobTemplate `yaml:"templates"`
	Manifest       string                `yaml:"manifest"`
	ParsedManifest map[interface{}]interface{}
}

func (MetadataJob) LinkableProperties

func (mj MetadataJob) LinkableProperties(releases []Release) MetadataJobManifestProperties

func (MetadataJob) UnusedManifestProperties

func (mj MetadataJob) UnusedManifestProperties(releases []Release) MetadataJobManifestProperties

type MetadataJobManifestProperties

type MetadataJobManifestProperties []MetadataJobManifestProperty

func (MetadataJobManifestProperties) Len

func (mjmps MetadataJobManifestProperties) Len() int

func (MetadataJobManifestProperties) Less

func (mjmps MetadataJobManifestProperties) Less(i, j int) bool

func (MetadataJobManifestProperties) Swap

func (mjmps MetadataJobManifestProperties) Swap(i, j int)

type MetadataJobManifestProperty

type MetadataJobManifestProperty struct {
	Name    string
	Value   interface{}
	Link    string
	Job     string
	Release string

	ReferencesParsedManifest bool
	MirrorsDefault           bool
}

type MetadataJobTemplate

type MetadataJobTemplate struct {
	Name    string
	Release string
}

type Parser

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

func NewParser

func NewParser(path string, stdout io.Writer) Parser

func (Parser) Parse

func (p Parser) Parse() (Product, error)

type Product

type Product struct {
	Metadata Metadata
	Releases []Release
}

func (Product) UnusedReleaseJobs

func (p Product) UnusedReleaseJobs() ([]Release, error)

func (Product) UnusedReleasePackages

func (p Product) UnusedReleasePackages() []Release

type Release

type Release struct {
	Name             string           `yaml:"name"`
	Jobs             []ReleaseJob     `yaml:"-"`
	CompiledPackages []ReleasePackage `yaml:"compiled_packages"`
	Packages         []ReleasePackage `yaml:"packages"`
}

type ReleaseJob

type ReleaseJob struct {
	Name       string
	Properties []ReleaseJobProperty
	Packages   []string
	Provides   []ReleaseJobProvideLink
}

func (ReleaseJob) AllPackages

func (rj ReleaseJob) AllPackages(release Release) []string

type ReleaseJobProperties

type ReleaseJobProperties []ReleaseJobProperty

func (ReleaseJobProperties) Find

type ReleaseJobProperty

type ReleaseJobProperty struct {
	Name    string
	Default interface{}
	Link    string
	Job     string
	Release string
}
type ReleaseJobProvideLink struct {
	Name       string
	Type       string
	Properties []string
}

type ReleasePackage

type ReleasePackage struct {
	Name         string   `yaml:"name"`
	Dependencies []string `yaml:"dependencies"`
}

func (ReleasePackage) AllPackages

func (rp ReleasePackage) AllPackages(release Release) []string

Jump to

Keyboard shortcuts

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