Documentation ¶
Index ¶
- func IsStateToolArtifact(mimeType string) bool
- func IsSuccessArtifactStatus(status string) bool
- func VersionStringToRequirements(version string) ([]types.VersionRequirement, error)
- type BuildPlanner
- func (bp *BuildPlanner) BuildTarget(owner, project, commitID, target string) error
- func (b *BuildPlanner) CreateProject(params *CreateProjectParams) (strfmt.UUID, error)
- func (b *BuildPlanner) FetchCommit(commitID strfmt.UUID, owner, project string, target *string) (*Commit, error)
- func (b *BuildPlanner) FetchCommitNoPoll(commitID strfmt.UUID, owner, project string, target *string) (*Commit, error)
- func (b *BuildPlanner) GetBuildScript(commitID string) (*buildscript.BuildScript, error)
- func (b *BuildPlanner) MergeCommit(params *MergeCommitParams) (strfmt.UUID, error)
- func (b *BuildPlanner) Publish(vars request.PublishVariables, filepath string) (*graphModel.PublishResult, error)
- func (b *BuildPlanner) RevertCommit(organization, project, parentCommitID, commitID string) (strfmt.UUID, error)
- func (b *BuildPlanner) StageCommit(params StageCommitParams) (*Commit, error)
- func (b *BuildPlanner) WaitForBuild(commitID strfmt.UUID, owner, project string, target *string) error
- type Commit
- type CreateProjectParams
- type ErrFailedArtifacts
- type MergeCommitParams
- type StageCommitParams
- type StageCommitRequirement
- type VoidCacher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStateToolArtifact ¶
func IsSuccessArtifactStatus ¶
func VersionStringToRequirements ¶
func VersionStringToRequirements(version string) ([]types.VersionRequirement, error)
Types ¶
type BuildPlanner ¶
type BuildPlanner struct {
// contains filtered or unexported fields
}
func NewBuildPlannerModel ¶
func NewBuildPlannerModel(auth *authentication.Auth, cache cacher) *BuildPlanner
func (*BuildPlanner) BuildTarget ¶
func (bp *BuildPlanner) BuildTarget(owner, project, commitID, target string) error
func (*BuildPlanner) CreateProject ¶
func (b *BuildPlanner) CreateProject(params *CreateProjectParams) (strfmt.UUID, error)
func (*BuildPlanner) FetchCommit ¶
func (*BuildPlanner) FetchCommitNoPoll ¶
func (*BuildPlanner) GetBuildScript ¶
func (b *BuildPlanner) GetBuildScript(commitID string) (*buildscript.BuildScript, error)
func (*BuildPlanner) MergeCommit ¶
func (b *BuildPlanner) MergeCommit(params *MergeCommitParams) (strfmt.UUID, error)
func (*BuildPlanner) Publish ¶
func (b *BuildPlanner) Publish(vars request.PublishVariables, filepath string) (*graphModel.PublishResult, error)
func (*BuildPlanner) RevertCommit ¶
func (b *BuildPlanner) RevertCommit(organization, project, parentCommitID, commitID string) (strfmt.UUID, error)
func (*BuildPlanner) StageCommit ¶
func (b *BuildPlanner) StageCommit(params StageCommitParams) (*Commit, error)
func (*BuildPlanner) WaitForBuild ¶
func (b *BuildPlanner) WaitForBuild(commitID strfmt.UUID, owner, project string, target *string) error
WaitForBuild polls the build until it has passed the completed stage (ie. it's either successful or failed).
type Commit ¶
func (*Commit) BuildScript ¶
func (c *Commit) BuildScript() *buildscript.BuildScript
func (*Commit) CommitUUID ¶
type CreateProjectParams ¶
type CreateProjectParams struct { Owner string Project string PlatformID strfmt.UUID Language string Version string Private bool Description string Script *buildscript.BuildScript }
CreateProjectParams contains information for the project to create. When creating a project from scratch, the PlatformID, Language, Version, and Timestamp fields are used to create a buildexpression to use. When creating a project based off of another one, the Expr field is used (PlatformID, Language, Version, and Timestamp are ignored).
type ErrFailedArtifacts ¶
type ErrFailedArtifacts struct {
Artifacts map[strfmt.UUID]*response.ArtifactResponse
}
func (ErrFailedArtifacts) Error ¶
func (e ErrFailedArtifacts) Error() string
type MergeCommitParams ¶
type StageCommitParams ¶
type StageCommitParams struct { Owner string Project string ParentCommit string Description string Script *buildscript.BuildScript }
type StageCommitRequirement ¶
type VoidCacher ¶
type VoidCacher struct{}
Click to show internal directories.
Click to hide internal directories.