Documentation ¶
Index ¶
- func GetCommitHashByRef(ref string) string
- func GetOptionBuildFlag(name string) string
- func IsOptionFlagSupported(target, name, value string) bool
- func IsRefSupported(ref string) bool
- func IsTargetSupported(name, ref string) bool
- func ReadTargetsDef(path string) error
- func ReadTargetsDefFromBytes(data []byte) error
- type BuildFlags
- type OptionFlag
- type OptionFlags
- type Release
- type Target
- type TargetsDef
- func (def *TargetsDef) GetCommitHashByRef(ref string) string
- func (def *TargetsDef) GetOptionBuildFlag(name string) string
- func (def *TargetsDef) GetTargetBuildFlags(target string) *BuildFlags
- func (def *TargetsDef) IsOptionFlagSupported(target, name, value string) bool
- func (def *TargetsDef) IsRefSupported(ref string) bool
- func (def *TargetsDef) IsTargetSupported(name, ref string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommitHashByRef ¶
func GetOptionBuildFlag ¶
func IsOptionFlagSupported ¶
func IsRefSupported ¶
func IsTargetSupported ¶
func ReadTargetsDef ¶
func ReadTargetsDefFromBytes ¶
Types ¶
type BuildFlags ¶
func GetTargetBuildFlags ¶
func GetTargetBuildFlags(target string) *BuildFlags
type OptionFlag ¶
type OptionFlags ¶
type OptionFlags map[string]OptionFlag
func (OptionFlags) HasOptionValue ¶
func (opts OptionFlags) HasOptionValue(name, value string) bool
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
Click to show internal directories.
Click to hide internal directories.