targets

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommitHashByRef

func GetCommitHashByRef(ref string) string

func GetOptionBuildFlag

func GetOptionBuildFlag(name string) string

func IsOptionFlagSupported

func IsOptionFlagSupported(target, name, value string) bool

func IsRefSupported

func IsRefSupported(ref string) bool

func IsTargetSupported

func IsTargetSupported(name, ref string) bool

func ReadTargetsDef

func ReadTargetsDef(path string) error

func ReadTargetsDefFromBytes

func ReadTargetsDefFromBytes(data []byte) error

Types

type BuildFlags

type BuildFlags map[string]string

func GetTargetBuildFlags

func GetTargetBuildFlags(target string) *BuildFlags

type OptionFlag

type OptionFlag struct {
	BuildFlag string   `json:"build_flag"`
	Values    []string `json:"values"`
}

type OptionFlags

type OptionFlags map[string]OptionFlag

func (OptionFlags) HasOptionValue

func (opts OptionFlags) HasOptionValue(name, value string) bool

type Release

type Release struct {
	SHA            string   `json:"sha"`
	ExcludeTargets []string `json:"exclude_targets"`
}

type Target

type Target struct {
	Description string     `json:"desription"`
	Tags        []string   `json:"tags"`
	BuildFlags  BuildFlags `json:"build_flags"`
}

type TargetsDef

type TargetsDef struct {
	Releases    map[string]Release     `json:"releases"`
	OptionFlags OptionFlags            `json:"flags"`
	Tags        map[string]OptionFlags `json:"tags"`
	Targets     map[string]Target      `json:"targets"`
}

func (*TargetsDef) GetCommitHashByRef

func (def *TargetsDef) GetCommitHashByRef(ref string) string

func (*TargetsDef) GetOptionBuildFlag

func (def *TargetsDef) GetOptionBuildFlag(name string) string

func (*TargetsDef) GetTargetBuildFlags

func (def *TargetsDef) GetTargetBuildFlags(target string) *BuildFlags

func (*TargetsDef) IsOptionFlagSupported

func (def *TargetsDef) IsOptionFlagSupported(target, name, value string) bool

func (*TargetsDef) IsRefSupported

func (def *TargetsDef) IsRefSupported(ref string) bool

func (*TargetsDef) IsTargetSupported

func (def *TargetsDef) IsTargetSupported(name, ref string) bool

Jump to

Keyboard shortcuts

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