mirror of
https://github.com/thegeeklab/wp-plugin-go.git
synced 2024-11-22 10:20:39 +00:00
Cleanup
This commit is contained in:
parent
c7b7745e10
commit
578305b3b6
@ -110,52 +110,40 @@ type (
|
|||||||
Stage struct {
|
Stage struct {
|
||||||
// Arch is the platform architecture of the current build stage.
|
// Arch is the platform architecture of the current build stage.
|
||||||
Arch string
|
Arch string
|
||||||
|
|
||||||
// DependsOn is a list of dependencies for the current build stage.
|
// DependsOn is a list of dependencies for the current build stage.
|
||||||
DependsOn []string
|
DependsOn []string
|
||||||
|
|
||||||
// Finished is the unix timestamp for when the pipeline is finished.
|
// Finished is the unix timestamp for when the pipeline is finished.
|
||||||
//
|
//
|
||||||
// A running pipleine cannot have a finish timestamp, therefore, the
|
// A running pipleine cannot have a finish timestamp, therefore, the
|
||||||
// system aways sets this value to the current timestamp.
|
// system aways sets this value to the current timestamp.
|
||||||
Finished time.Time
|
Finished time.Time
|
||||||
|
|
||||||
// Kind is the kind of resource being executed.
|
// Kind is the kind of resource being executed.
|
||||||
//
|
//
|
||||||
// This value is sourced from the `kind` attribute in the yaml
|
// This value is sourced from the `kind` attribute in the yaml
|
||||||
// configuration file
|
// configuration file
|
||||||
Kind string
|
Kind string
|
||||||
|
|
||||||
// Machine provides the name of the host machine on which the build
|
// Machine provides the name of the host machine on which the build
|
||||||
// stage is currently running.
|
// stage is currently running.
|
||||||
Machine string
|
Machine string
|
||||||
|
|
||||||
// Name is the name for the current running build stage.
|
// Name is the name for the current running build stage.
|
||||||
Name string
|
Name string
|
||||||
|
|
||||||
// Number is the stage number for the current running build stage.
|
// Number is the stage number for the current running build stage.
|
||||||
Number int
|
Number int
|
||||||
|
|
||||||
// OS is the target operating system for the current build stage.
|
// OS is the target operating system for the current build stage.
|
||||||
OS string
|
OS string
|
||||||
|
|
||||||
// Started is the unix timestamp for when a build stage was started by
|
// Started is the unix timestamp for when a build stage was started by
|
||||||
// the runner.
|
// the runner.
|
||||||
Started time.Time
|
Started time.Time
|
||||||
|
|
||||||
// Status is the status for the current running build stage.
|
// Status is the status for the current running build stage.
|
||||||
//
|
//
|
||||||
// If all of the stage's steps are passing, the status defaults to
|
// If all of the stage's steps are passing, the status defaults to
|
||||||
// success.
|
// success.
|
||||||
Status string
|
Status string
|
||||||
|
|
||||||
// Type is the type of resource being executed.
|
// Type is the type of resource being executed.
|
||||||
Type string
|
Type string
|
||||||
|
|
||||||
// Variant is the target architecture variant for the current build
|
// Variant is the target architecture variant for the current build
|
||||||
// stage.
|
// stage.
|
||||||
Variant string
|
Variant string
|
||||||
|
|
||||||
// Version is OS version for the current build stage.
|
// Version is OS version for the current build stage.
|
||||||
Version string
|
Version string
|
||||||
}
|
}
|
||||||
|
@ -195,23 +195,23 @@ func BuildFromContext(ctx *cli.Context) plugin.Build {
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// RepoDefaultBranchFlag corresponds to Repo.DefaultBranch.
|
// RepoDefaultBranchFlag corresponds to plugin.Repo.DefaultBranch.
|
||||||
RepoDefaultBranchFlag = "repo.branch"
|
RepoDefaultBranchFlag = "repo.branch"
|
||||||
// RepoFullNameFlag corresponds to Repo.FullName.
|
// RepoFullNameFlag corresponds to plugin.Repo.FullName.
|
||||||
RepoFullNameFlag = "repo.full-name"
|
RepoFullNameFlag = "repo.full-name"
|
||||||
// RepoLinkFlag corresponds to Repo.Link.
|
// RepoLinkFlag corresponds to plugin.Repo.Link.
|
||||||
RepoLinkFlag = "repo.link"
|
RepoLinkFlag = "repo.link"
|
||||||
// RepoNameFlag corresponds to Repo.Name
|
// RepoNameFlag corresponds to plugin.Repo.Name
|
||||||
RepoNameFlag = "repo.name"
|
RepoNameFlag = "repo.name"
|
||||||
// RepoOwnerFlag corresponds to Repo.Owner.
|
// RepoOwnerFlag corresponds to plugin.Repo.Owner.
|
||||||
RepoOwnerFlag = "repo.owner"
|
RepoOwnerFlag = "repo.owner"
|
||||||
// RepoPrivateFlag corresponds to Repo.Private.
|
// RepoPrivateFlag corresponds to plugin.Repo.Private.
|
||||||
RepoPrivateFlag = "repo.private"
|
RepoPrivateFlag = "repo.private"
|
||||||
// RepoRemoteURLFlag corresponds to Repo.RemoteURL.
|
// RepoRemoteURLFlag corresponds to plugin.Repo.RemoteURL.
|
||||||
RepoRemoteURLFlag = "repo.remote-url"
|
RepoRemoteURLFlag = "repo.remote-url"
|
||||||
// RepoSCMFlag corresponds to Repo.SCM.
|
// RepoSCMFlag corresponds to plugin.Repo.SCM.
|
||||||
RepoSCMFlag = "repo.scm"
|
RepoSCMFlag = "repo.scm"
|
||||||
// RepoVisibilityFlag corresponds to Repo.Visbility.
|
// RepoVisibilityFlag corresponds to plugin.Repo.Visbility.
|
||||||
RepoVisibilityFlag = "repo.visibility"
|
RepoVisibilityFlag = "repo.visibility"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -576,21 +576,21 @@ func StepFromContext(ctx *cli.Context) plugin.Step {
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SemVerBuildFlag corresponds to SemVer.Build.
|
// SemVerBuildFlag corresponds to plugin.SemVer.Build.
|
||||||
SemVerBuildFlag = "semver.build"
|
SemVerBuildFlag = "semver.build"
|
||||||
// SemVerErrorFlag corresponds to SemVer.Error.
|
// SemVerErrorFlag corresponds to plugin.SemVer.Error.
|
||||||
SemVerErrorFlag = "semver.error"
|
SemVerErrorFlag = "semver.error"
|
||||||
// SemVerMajorFlag corresponds to SemVer.Major.
|
// SemVerMajorFlag corresponds to plugin.SemVer.Major.
|
||||||
SemVerMajorFlag = "semver.major"
|
SemVerMajorFlag = "semver.major"
|
||||||
// SemVerMinorFlag corresponds to SemVer.Minor.
|
// SemVerMinorFlag corresponds to plugin.SemVer.Minor.
|
||||||
SemVerMinorFlag = "semver.minor"
|
SemVerMinorFlag = "semver.minor"
|
||||||
// SemVerPatchFlag corresponds to SemVer.Patch.
|
// SemVerPatchFlag corresponds to plugin.SemVer.Patch.
|
||||||
SemVerPatchFlag = "semver.patch"
|
SemVerPatchFlag = "semver.patch"
|
||||||
// SemVerPrereleaseFlag corresponds to SemVer.Prerelease
|
// SemVerPrereleaseFlag corresponds to plugin.SemVer.Prerelease
|
||||||
SemVerPrereleaseFlag = "semver.prerelease"
|
SemVerPrereleaseFlag = "semver.prerelease"
|
||||||
// SemVerShortFlag corresponds to SemVer.Short.
|
// SemVerShortFlag corresponds to plugin.SemVer.Short.
|
||||||
SemVerShortFlag = "semver.short"
|
SemVerShortFlag = "semver.short"
|
||||||
// SemVerVersionFlag corresponds to SemVer.Version
|
// SemVerVersionFlag corresponds to plugin.SemVer.Version
|
||||||
SemVerVersionFlag = "semver.version"
|
SemVerVersionFlag = "semver.version"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user