intent

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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 NewPromoteEnvironment(fromEnvironment string) Intent

func NewReleaseArtifact

func NewReleaseArtifact() Intent

func NewReleaseBranch

func NewReleaseBranch(branch string) Intent

func NewRollback

func NewRollback(previousArtifactID string) Intent

func (*Intent) AsArtifactWithIntent

func (intent *Intent) AsArtifactWithIntent(artifactID string) string

func (*Intent) Empty

func (intent *Intent) Empty() bool

func (*Intent) Valid

func (intent *Intent) Valid() bool

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"`
}

Jump to

Keyboard shortcuts

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