Documentation
¶
Overview ¶
Package core handles asset information for file extraction management
Package core handles templating value ¶
Package core maintains configuration definitions
Index ¶
- Variables
- type AppSet
- type Application
- type CommandEnv
- type Connections
- type Extraction
- type Filtered
- type FlagSet
- type GitHubBranchMode
- type GitHubMode
- type GitHubReleaseMode
- type GitHubSettings
- type GitMode
- type Pinned
- type Resolved
- type Resource
- type RunMode
- type SetVariables
- type SourceType
- type StaticMode
- type Step
- type Token
- type Values
- type Variables
- type Version
- type WebMode
- type WebURL
Constants ¶
This section is empty.
Variables ¶
var ( // BaseTemplate are common templating needs BaseTemplate = baseValues{ runtime.GOARCH, runtime.GOOS, } )
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Priority int Flags FlagSet GitHub *GitHubMode Git *GitMode Web *WebMode Exec *RunMode Static *StaticMode Extract Extraction Variables Variables ClearEnv bool Setup []Step Platforms []struct { Disable bool Value Resolved Target string } }
Application defines how an application is downloaded, unpacked, and deployed
func (Application) CommandEnv ¶ added in v0.5.0
func (a Application) CommandEnv() CommandEnv
CommandEnv creates a command environment from an application
func (Application) Enabled ¶ added in v0.5.3
func (a Application) Enabled() bool
Enabled indicates if an application is enabled for use
type CommandEnv ¶ added in v0.5.0
CommandEnv wraps build command environment settings
type Connections ¶ added in v0.3.3
type Connections struct { GitHub GitHubSettings Timeouts struct { Get uint All uint Command uint } }
Connections are various endpoint settings
type Extraction ¶ added in v0.3.3
Extraction handles asset extraction
type FlagSet ¶ added in v0.6.0
type FlagSet []string
FlagSet is a simple string array to control application rules
func (FlagSet) Pin ¶ added in v0.6.0
Pin indicates if the flag means something should be pinned (not updated/disabled but not pruned)
type GitHubBranchMode ¶ added in v0.3.3
type GitHubBranchMode struct {
Name string
}
GitHubBranchMode will enable a repository+branch to pull a tarball
type GitHubMode ¶
type GitHubMode struct { Project string Release *GitHubReleaseMode Branch *GitHubBranchMode }
GitHubMode indicates processing of a github project for upstreams
type GitHubReleaseMode ¶ added in v0.3.3
type GitHubReleaseMode struct {
Asset string
}
GitHubReleaseMode are github modes operating on releases
type GitHubSettings ¶ added in v0.3.3
GitHubSettings are overall github settings
func (GitHubSettings) Env ¶ added in v0.3.3
func (g GitHubSettings) Env() []string
Env will get the possible environment variables
func (GitHubSettings) Value ¶ added in v0.3.3
func (g GitHubSettings) Value() (string, []string)
Value will get the configured token value
type Resolved ¶ added in v0.3.3
type Resolved string
Resolved will handle env-based strings for resolution of env vars
type Resource ¶ added in v0.3.3
type Resource struct { URL string File string Tag string Paths struct { Archive string Unpack string // contains filtered or unexported fields } // contains filtered or unexported fields }
Resource handles download information and extract for asset managing
func (*Resource) SetAppData ¶ added in v0.3.3
func (asset *Resource) SetAppData(name, workdir string, settings Extraction) error
SetAppData will set the asset's data for the overall application
type SetVariables ¶ added in v0.4.0
type SetVariables map[string]struct { // contains filtered or unexported fields }
SetVariables are the variables that are set on Variables.Set and should be "unset"
func (SetVariables) Unset ¶ added in v0.4.0
func (v SetVariables) Unset()
Unset will clear/reset variables to prior state
type SourceType ¶ added in v0.4.0
type SourceType interface {
Is()
}
SourceType indicates if an application field contains a source
type StaticMode ¶ added in v0.5.5
StaticMode allows for downloading a static asset
type Step ¶ added in v0.3.3
Step is a build process step
func (Step) CommandEnv ¶ added in v0.5.0
func (s Step) CommandEnv() CommandEnv
CommandEnv creates a command environment from a step
type Values ¶ added in v0.3.3
Values is the environment variables/values (for templating)
type Variables ¶ added in v0.3.3
Variables define os environment variables to set
func (Variables) Set ¶ added in v0.3.3
func (v Variables) Set() SetVariables
Set will set os environment variables
type Version ¶ added in v0.7.0
type Version string
Version is a tag that could be a semantic version
type WebURL ¶ added in v0.6.1
type WebURL string
WebURL can be templated with settings from the host
func (WebURL) CanTemplate ¶ added in v0.6.1
CanTemplate indicates that this type can be templated (as it can)