versions

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Library for parsing versions.yaml file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(path string) []byte

Types

type Config

type Config map[string]string

Config represents setting for a program call. Arguments can be provided in file, as a key-value map, or as a command-line parameters.

func LoadConfig

func LoadConfig(path, config string) Config

func (Config) BoolOption

func (c Config) BoolOption(name string, defaultVal bool, helper string) *bool

func (Config) IntOption

func (c Config) IntOption(name string, defaultVal int, helper string) *int

func (Config) Parse

func (c Config) Parse()

func (Config) StringOption

func (c Config) StringOption(name, defaultVal, helper string) *string

type Package

type Package struct {
	Version string
	Minor   string
	Major   string
	Gpg     string
	Sha1    string
	Sha256  string
	Sha512  string
	Md5     string
}

type Spec

type Spec struct {
	Versions []Version
}

func LoadVersions

func LoadVersions(path string) Spec

type Version

type Version struct {
	Dir                  string
	TemplateSubDir       string `yaml:"templateSubDir"`
	Repo                 string
	Tags                 []string
	From                 string
	TemplateArgs         map[string]string `yaml:"templateArgs"`
	Packages             map[string]Package
	ExcludeTests         []string `yaml:"excludeTests"`
	Builder              bool
	BuilderImage         string   `yaml:"builderImage"`
	BuilderArgs          []string `yaml:"builderArgs"`
	ImageNameFromBuilder string   `yaml:"imageNameFromBuilder"`
}

Jump to

Keyboard shortcuts

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