pipeline

package
v3.0.15+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	IsPullRequest  bool
	GitBaseInfo    *ScmCommitInfo
	GitHeadInfo    *ScmCommitInfo
	GitParentPath  string
	GitLocalPath   string
	GitLocalBranch string
	GitRemote      string
	GitNearestTag  *GitTagDetails

	ReleaseVersion string
	ReleaseCommit  string
	ReleaseAssets  []ScmReleaseAsset

	//Engine specific pipeline data
	GolangGoPath string
}

type GitTagDetails

type GitTagDetails struct {
	TagShortName string
	CommitSha    string
	CommitDate   time.Time
}

type ScmCommitInfo

type ScmCommitInfo struct {
	Sha  string //Commit Sha
	Ref  string //Commit Branch
	Repo *ScmRepoInfo
}

func (*ScmCommitInfo) Validate

func (i *ScmCommitInfo) Validate() error

TODO: validation almost needs to be source specific (or inherit from this base function), because source methods may require additional attributes, while these base payload keys are required for general step functions.

type ScmReleaseAsset

type ScmReleaseAsset struct {
	LocalPath    string `mapstructure:"local_path"`
	ArtifactName string `mapstructure:"artifact_name"`
	ContentType  string `mapstructure:"content_type"`
}

type ScmRepoInfo

type ScmRepoInfo struct {
	CloneUrl string
	Name     string
	FullName string
}

Jump to

Keyboard shortcuts

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