common

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTemplate

func RenderTemplate(path string, values map[string]string) (result string, err error)

func SaveCustomWarConfig

func SaveCustomWarConfig(cwp *CustomWarPackage, path string) (err error)

func SetCustomWarConfigVersion

func SetCustomWarConfigVersion(version string, cwp *CustomWarPackage)

Types

type BuildDockerSetting

type BuildDockerSetting struct {
	Base  string `yaml:"base"`
	Tag   string `yaml:"tag"`
	Build bool   `yaml:"build"`
}

type BuildSettings

type BuildSettings struct {
	Docker BuildDockerSetting `yaml:"docker"`
}

type Bundle

type Bundle struct {
	GroupId     string `yaml:"groupId"`
	ArtifactId  string `yaml:"artifactId"`
	Description string `yaml:"description"`
	Vendor      string `yaml:"vendor"`
}

type CASC

type CASC struct {
	ID     string    `yaml:"id"`
	Type   string    `yaml:"type"`
	Source DirSource `yaml:"source"`
}

type CustomConfig

type CustomConfig struct {
	Formulas []CustomFormula
	LTS      []string
	Weekly   []string
}

type CustomConfigManager

type CustomConfigManager struct {
	CustomConfig *CustomConfig
	ConfigPath   string
}

func (*CustomConfigManager) AddTLS

func (c *CustomConfigManager) AddTLS(lts string) (err error)

func (*CustomConfigManager) AddWeekly

func (c *CustomConfigManager) AddWeekly(weekly string) (err error)

func (*CustomConfigManager) GetAllVersions

func (c *CustomConfigManager) GetAllVersions() (allVers []string)

func (*CustomConfigManager) GetFormulas

func (c *CustomConfigManager) GetFormulas() []CustomFormula

func (*CustomConfigManager) GetLTSList

func (c *CustomConfigManager) GetLTSList() []string

func (*CustomConfigManager) GetWeeklyList

func (c *CustomConfigManager) GetWeeklyList() []string

func (*CustomConfigManager) HasTLS

func (c *CustomConfigManager) HasTLS(lts string) (exists bool, err error)

func (*CustomConfigManager) HasWeekly

func (c *CustomConfigManager) HasWeekly(weekly string) (exists bool, err error)

func (*CustomConfigManager) Read

func (c *CustomConfigManager) Read(path string) (err error)

func (*CustomConfigManager) Save

func (c *CustomConfigManager) Save() (err error)

func (*CustomConfigManager) SetFormulas

func (c *CustomConfigManager) SetFormulas(formulas []CustomFormula)

type CustomFormula

type CustomFormula struct {
	Name string
	MD5  string
}

type CustomWar

type CustomWar struct {
	GroupId    string `yaml:"groupId"`
	ArtifactId string `yaml:"artifactId"`
	Source     Source `yaml:"source"`
}

type CustomWarPackage

type CustomWarPackage struct {
	Bundle        Bundle        `yaml:"bundle"`
	BuildSettings BuildSettings `yaml:"buildSettings"`
	War           CustomWar     `yaml:"war"`
	Plugins       []Plugin      `yaml:"plugins"`
	CASC          []CASC        `yaml:"casc"`
	GroovyHooks   []Hook        `yaml:"groovyHooks"`
}

func ReadCustomWarConfig

func ReadCustomWarConfig(path string) (cwp *CustomWarPackage, err error)

type DirSource added in v0.0.5

type DirSource struct {
	Dir string `yaml:"dir"`
}

type Hook added in v0.0.5

type Hook struct {
	ID     string    `yaml:"id"`
	Type   string    `yaml:"type"`
	Source DirSource `yaml:"source"`
}

type Options

type Options struct {
	ConfigPath string
}

type Plugin

type Plugin struct {
	GroupId    string `yaml:"groupId"`
	ArtifactId string `yaml:"artifactId"`
	Source     Source `yaml:"source"`
}

type Source

type Source struct {
	Version string `yaml:"version"`
}

Jump to

Keyboard shortcuts

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