buildplanner

package
v0.0.0-...-7eaa7e1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStateToolArtifact

func IsStateToolArtifact(mimeType string) bool

func IsSuccessArtifactStatus

func IsSuccessArtifactStatus(status string) bool

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 (b *BuildPlanner) FetchCommit(commitID strfmt.UUID, owner, project string, target *string) (*Commit, error)

func (*BuildPlanner) FetchCommitNoPoll

func (b *BuildPlanner) FetchCommitNoPoll(commitID strfmt.UUID, owner, project string, target *string) (*Commit, error)

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

type Commit struct {
	*response.Commit
	// contains filtered or unexported fields
}

func (*Commit) BuildPlan

func (c *Commit) BuildPlan() *buildplan.BuildPlan

func (*Commit) BuildScript

func (c *Commit) BuildScript() *buildscript.BuildScript

func (*Commit) CommitUUID

func (c *Commit) CommitUUID() strfmt.UUID

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 MergeCommitParams struct {
	Owner     string
	Project   string
	TargetRef string // the commit ID or branch name to merge into
	OtherRef  string // the commit ID or branch name to merge from
	Strategy  types.MergeStrategy
}

type StageCommitParams

type StageCommitParams struct {
	Owner        string
	Project      string
	ParentCommit string
	Description  string
	Script       *buildscript.BuildScript
}

type StageCommitRequirement

type StageCommitRequirement struct {
	Name      string
	Version   []types.VersionRequirement
	Namespace string
	Revision  *int
	Operation types.Operation
}

type VoidCacher

type VoidCacher struct{}

func (VoidCacher) GetCache

func (v VoidCacher) GetCache(key string) (string, error)

func (VoidCacher) SetCache

func (v VoidCacher) SetCache(key, value string, expiry time.Duration) error

Jump to

Keyboard shortcuts

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