pipeline

package
v2.0.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 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
}

type GitTagDetails

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

type ScmCommitInfo

type ScmCommitInfo struct {
	Sha  string
	Ref  string
	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