Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeReleaseArtifact = "ReleaseArtifact" TypeReleaseBranch = "ReleaseBranch" TypePromote = "Promote" TypeRollback = "Rollback" TypeAutoRelease = "AutoRelease" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Intent ¶
type Intent struct { Type string `json:"type,omitempty"` ReleaseBranch ReleaseBranchIntent `json:"releaseBranch,omitempty"` Promote PromoteIntent `json:"promote,omitempty"` Rollback RollbackIntent `json:"rollback,omitempty"` }
func NewAutoRelease ¶
func NewAutoRelease() Intent
func NewPromoteEnvironment ¶
func NewReleaseArtifact ¶
func NewReleaseArtifact() Intent
func NewReleaseBranch ¶
func NewRollback ¶
func (*Intent) AsArtifactWithIntent ¶
type PromoteIntent ¶
type PromoteIntent struct {
FromEnvironment string `json:"fromEnvironment,omitempty"`
}
type ReleaseBranchIntent ¶
type ReleaseBranchIntent struct {
Branch string `json:"branch,omitempty"`
}
type RollbackIntent ¶ added in v0.9.0
type RollbackIntent struct {
PreviousArtifactID string `json:"previousArtifactId,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.