manifest

package
v0.0.0-...-b7acd14 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeatureUpdatePipeline       = "update-pipeline"
	FeatureUpdatePipelineAndTag = "update-pipeline-and-tag"
	FeatureGithubStatuses       = "github-statuses"
)

Variables

View Source
var InvalidSecretActionsError = func(secret, fieldName string) error {
	return fmt.Errorf("'%s' at '%s' is not a valid key, must be in format of ((mapName.keyName)), ((path/to/mapName.keyName)) or ((/springernature/data/path/to/mapName keyName))", secret, fieldName)
}
View Source
var InvalidSecretConcourseError = func(secret, fieldName string) error {
	return fmt.Errorf("'%s' at '%s' is not a valid key, must be in format of ((mapName.keyName)) or ((path/to/mapName.keyName))", secret, fieldName)
}
View Source
var UnsupportedSecretError = func(fieldName string) error {
	return fmt.Errorf("'%s' is not allowed to contain a secret", fieldName)
}

Functions

func Render

func Render(manifest Manifest) (y []byte, err error)

func TaskNamesFromTask

func TaskNamesFromTask(t Task) (taskNames []string)

Types

type ArtifactConfig

type ArtifactConfig struct {
	Bucket  string `json:"bucket" yaml:"bucket,omitempty" secretAllowed:"true"`
	JSONKey string `json:"json_key" yaml:"json_key,omitempty" secretAllowed:"true"`
}

type ComposeFiles

type ComposeFiles []string

func (ComposeFiles) MarshalYAML

func (c ComposeFiles) MarshalYAML() (interface{}, error)

func (*ComposeFiles) UnmarshalJSON

func (c *ComposeFiles) UnmarshalJSON(b []byte) error

type ConsumerIntegrationTest

type ConsumerIntegrationTest struct {
	Type                 string
	Name                 string        `yaml:"name,omitempty"`
	Consumer             string        `yaml:"consumer,omitempty"`
	ConsumerHost         string        `json:"consumer_host" yaml:"consumer_host,omitempty"`
	GitCloneOptions      string        `json:"git_clone_options,omitempty" yaml:"git_clone_options,omitempty"`
	ProviderHost         string        `json:"provider_host" yaml:"provider_host,omitempty"`
	ProviderName         string        `json:"provider_name" yaml:"provider_name,omitempty"`
	Script               string        `yaml:"script,omitempty"`
	DockerComposeFile    string        `json:"docker_compose_file" yaml:"docker_compose_file,omitempty"`
	DockerComposeService string        `json:"docker_compose_service" yaml:"docker_compose_service,omitempty"`
	Vars                 Vars          `yaml:"vars,omitempty" secretAllowed:"true"`
	Retries              int           `yaml:"retries,omitempty"`
	NotifyOnSuccess      bool          `json:"notify_on_success,omitempty" yaml:"notify_on_success,omitempty"`
	Notifications        Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	Timeout              string        `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	BuildHistory         int           `json:"build_history,omitempty" yaml:"build_history,omitempty"`
	UseCovenant          bool          `json:"use_covenant,omitempty" yaml:"use_covenant,omitempty"`
}

func (ConsumerIntegrationTest) GetAttempts

func (r ConsumerIntegrationTest) GetAttempts() int

func (ConsumerIntegrationTest) GetBuildHistory

func (r ConsumerIntegrationTest) GetBuildHistory() int

func (ConsumerIntegrationTest) GetName

func (r ConsumerIntegrationTest) GetName() string

func (ConsumerIntegrationTest) GetNotifications

func (r ConsumerIntegrationTest) GetNotifications() Notifications

func (ConsumerIntegrationTest) GetSecrets

func (r ConsumerIntegrationTest) GetSecrets() map[string]string

func (ConsumerIntegrationTest) GetTimeout

func (r ConsumerIntegrationTest) GetTimeout() string

func (ConsumerIntegrationTest) IsManualTrigger

func (r ConsumerIntegrationTest) IsManualTrigger() bool

func (ConsumerIntegrationTest) MarshalYAML

func (r ConsumerIntegrationTest) MarshalYAML() (interface{}, error)

func (ConsumerIntegrationTest) NotifiesOnSuccess

func (r ConsumerIntegrationTest) NotifiesOnSuccess() bool

func (ConsumerIntegrationTest) ReadsFromArtifacts

func (r ConsumerIntegrationTest) ReadsFromArtifacts() bool

func (ConsumerIntegrationTest) SavesArtifacts

func (r ConsumerIntegrationTest) SavesArtifacts() bool

func (ConsumerIntegrationTest) SavesArtifactsOnFailure

func (r ConsumerIntegrationTest) SavesArtifactsOnFailure() bool

func (ConsumerIntegrationTest) SetBuildHistory

func (r ConsumerIntegrationTest) SetBuildHistory(buildHistory int) Task

func (ConsumerIntegrationTest) SetName

func (r ConsumerIntegrationTest) SetName(name string) Task

func (ConsumerIntegrationTest) SetNotifications

func (r ConsumerIntegrationTest) SetNotifications(notifications Notifications) Task

func (ConsumerIntegrationTest) SetNotifyOnSuccess

func (r ConsumerIntegrationTest) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (ConsumerIntegrationTest) SetTimeout

func (r ConsumerIntegrationTest) SetTimeout(timeout string) Task

type DeployCF

type DeployCF struct {
	Type            string
	Name            string        `yaml:"name,omitempty"`
	ManualTrigger   bool          `json:"manual_trigger" yaml:"manual_trigger,omitempty"`
	API             string        `yaml:"api,omitempty" secretAllowed:"true"`
	Space           string        `yaml:"space,omitempty" secretAllowed:"true"`
	Org             string        `yaml:"org,omitempty" secretAllowed:"true"`
	Username        string        `yaml:"username,omitempty" secretAllowed:"true"`
	Password        string        `yaml:"password,omitempty" secretAllowed:"true"`
	Manifest        string        `yaml:"manifest,omitempty"`
	TestDomain      string        `json:"test_domain" yaml:"test_domain,omitempty" secretAllowed:"true"`
	Vars            Vars          `yaml:"vars,omitempty" secretAllowed:"true"`
	DeployArtifact  string        `json:"deploy_artifact" yaml:"deploy_artifact,omitempty"`
	PrePromote      TaskList      `json:"pre_promote" yaml:"pre_promote,omitempty"`
	Timeout         string        `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	Retries         int           `yaml:"retries,omitempty"`
	NotifyOnSuccess bool          `json:"notify_on_success,omitempty" yaml:"notify_on_success,omitempty"`
	Notifications   Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	PreStart        []string      `json:"pre_start,omitempty" yaml:"pre_start,omitempty"`
	Rolling         bool          `yaml:"rolling,omitempty"`
	IsDockerPush    bool          `json:"-" yaml:"-"`
	CliVersion      string        `json:"cli_version,omitempty" yaml:"cli_version,omitempty"`
	DockerTag       string        `json:"docker_tag,omitempty" yaml:"docker_tag,omitempty"`
	BuildHistory    int           `json:"build_history,omitempty" yaml:"build_history,omitempty"`
	SSORoute        string        `json:"sso_route,omitempty" yaml:"sso_route,omitempty"`

	CfApplication manifestparser.Application `json:"-" yaml:"-"`
}

func (DeployCF) GetAttempts

func (r DeployCF) GetAttempts() int

func (DeployCF) GetBuildHistory

func (r DeployCF) GetBuildHistory() int

func (DeployCF) GetName

func (r DeployCF) GetName() string

func (DeployCF) GetNotifications

func (r DeployCF) GetNotifications() Notifications

func (DeployCF) GetSecrets

func (r DeployCF) GetSecrets() map[string]string

func (DeployCF) GetTimeout

func (r DeployCF) GetTimeout() string

func (DeployCF) IsManualTrigger

func (r DeployCF) IsManualTrigger() bool

func (DeployCF) MarshalYAML

func (r DeployCF) MarshalYAML() (interface{}, error)

func (DeployCF) NotifiesOnSuccess

func (r DeployCF) NotifiesOnSuccess() bool

func (DeployCF) ReadsFromArtifacts

func (r DeployCF) ReadsFromArtifacts() bool

func (DeployCF) SavesArtifacts

func (r DeployCF) SavesArtifacts() bool

func (DeployCF) SavesArtifactsOnFailure

func (r DeployCF) SavesArtifactsOnFailure() bool

func (DeployCF) SetBuildHistory

func (r DeployCF) SetBuildHistory(buildHistory int) Task

func (DeployCF) SetName

func (r DeployCF) SetName(name string) Task

func (DeployCF) SetNotifications

func (r DeployCF) SetNotifications(notifications Notifications) Task

func (DeployCF) SetNotifyOnSuccess

func (r DeployCF) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (DeployCF) SetTimeout

func (r DeployCF) SetTimeout(timeout string) Task

type DeployKatee

type DeployKatee struct {
	Type                   string
	Name                   string        `yaml:"name,omitempty"`
	ManualTrigger          bool          `json:"manual_trigger" yaml:"manual_trigger,omitempty"`
	Timeout                string        `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	Vars                   Vars          `yaml:"vars,omitempty" secretAllowed:"true"`
	VelaManifest           string        `json:"vela_manifest,omitempty" yaml:"vela_manifest,omitempty"`
	Retries                int           `yaml:"retries,omitempty"`
	NotifyOnSuccess        bool          `json:"notify_on_success,omitempty" yaml:"notify_on_success,omitempty"`
	Notifications          Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	Tag                    string        `json:"tag,omitempty" yaml:"tag,omitempty"`
	BuildHistory           int           `json:"build_history,omitempty" yaml:"build_history,omitempty"`
	Environment            string        `json:"environment,omitempty" yaml:"environment,omitempty"`
	Namespace              string        `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	DeploymentCheckTimeout int           `json:"deployment_check_timeout,omitempty" yaml:"deployment_check_timeout,omitempty"`
}

func (DeployKatee) GetAttempts

func (d DeployKatee) GetAttempts() int

func (DeployKatee) GetBuildHistory

func (d DeployKatee) GetBuildHistory() int

func (DeployKatee) GetName

func (r DeployKatee) GetName() string

func (DeployKatee) GetNotifications

func (d DeployKatee) GetNotifications() Notifications

func (DeployKatee) GetSecrets

func (d DeployKatee) GetSecrets() map[string]string

func (DeployKatee) GetTimeout

func (d DeployKatee) GetTimeout() string

func (DeployKatee) IsManualTrigger

func (d DeployKatee) IsManualTrigger() bool

func (DeployKatee) MarshalYAML

func (d DeployKatee) MarshalYAML() (interface{}, error)

func (DeployKatee) NotifiesOnSuccess

func (d DeployKatee) NotifiesOnSuccess() bool

func (DeployKatee) ReadsFromArtifacts

func (d DeployKatee) ReadsFromArtifacts() bool

func (DeployKatee) SavesArtifacts

func (d DeployKatee) SavesArtifacts() bool

func (DeployKatee) SavesArtifactsOnFailure

func (d DeployKatee) SavesArtifactsOnFailure() bool

func (DeployKatee) SetBuildHistory

func (d DeployKatee) SetBuildHistory(buildHistory int) Task

func (DeployKatee) SetName

func (r DeployKatee) SetName(name string) Task

func (DeployKatee) SetNotifications

func (d DeployKatee) SetNotifications(notifications Notifications) Task

func (DeployKatee) SetNotifyOnSuccess

func (r DeployKatee) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (DeployKatee) SetTimeout

func (d DeployKatee) SetTimeout(timeout string) Task

type DeployMLModules

type DeployMLModules struct {
	Type             string
	Name             string        `yaml:"name,omitempty"`
	MLModulesVersion string        `json:"ml_modules_version" yaml:"ml_modules_version,omitempty"`
	AppName          string        `json:"app_name" yaml:"app_name,omitempty"`
	AppVersion       string        `json:"app_version" yaml:"app_version,omitempty"`
	Targets          []string      `yaml:"targets,omitempty" secretAllowed:"true"`
	ManualTrigger    bool          `json:"manual_trigger" yaml:"manual_trigger,omitempty"`
	Retries          int           `yaml:"retries,omitempty"`
	NotifyOnSuccess  bool          `json:"notify_on_success,omitempty" yaml:"notify_on_success,omitempty"`
	Notifications    Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	Timeout          string        `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	UseBuildVersion  bool          `json:"use_build_version,omitempty" yaml:"use_build_version,omitempty"`
	Username         string        `json:"username" yaml:"username,omitempty" secretAllowed:"true"`
	Password         string        `json:"password" yaml:"password,omitempty" secretAllowed:"true"`
	BuildHistory     int           `json:"build_history,omitempty" yaml:"build_history,omitempty"`
}

func (DeployMLModules) GetAttempts

func (r DeployMLModules) GetAttempts() int

func (DeployMLModules) GetBuildHistory

func (r DeployMLModules) GetBuildHistory() int

func (DeployMLModules) GetName

func (r DeployMLModules) GetName() string

func (DeployMLModules) GetNotifications

func (r DeployMLModules) GetNotifications() Notifications

func (DeployMLModules) GetSecrets

func (r DeployMLModules) GetSecrets() map[string]string

func (DeployMLModules) GetTimeout

func (r DeployMLModules) GetTimeout() string

func (DeployMLModules) IsManualTrigger

func (r DeployMLModules) IsManualTrigger() bool

func (DeployMLModules) MarshalYAML

func (r DeployMLModules) MarshalYAML() (interface{}, error)

func (DeployMLModules) NotifiesOnSuccess

func (r DeployMLModules) NotifiesOnSuccess() bool

func (DeployMLModules) ReadsFromArtifacts

func (r DeployMLModules) ReadsFromArtifacts() bool

func (DeployMLModules) SavesArtifacts

func (r DeployMLModules) SavesArtifacts() bool

func (DeployMLModules) SavesArtifactsOnFailure

func (r DeployMLModules) SavesArtifactsOnFailure() bool

func (DeployMLModules) SetBuildHistory

func (r DeployMLModules) SetBuildHistory(buildHistory int) Task

func (DeployMLModules) SetName

func (r DeployMLModules) SetName(name string) Task

func (DeployMLModules) SetNotifications

func (r DeployMLModules) SetNotifications(notifications Notifications) Task

func (DeployMLModules) SetNotifyOnSuccess

func (r DeployMLModules) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (DeployMLModules) SetTimeout

func (r DeployMLModules) SetTimeout(timeout string) Task

type DeployMLZip

type DeployMLZip struct {
	Type            string
	Name            string        `yaml:"name,omitempty"`
	DeployZip       string        `json:"deploy_zip" yaml:"deploy_zip,omitempty"`
	AppName         string        `json:"app_name" yaml:"app_name,omitempty"`
	AppVersion      string        `json:"app_version" yaml:"app_version,omitempty"`
	Targets         []string      `yaml:"targets,omitempty" secretAllowed:"true" `
	ManualTrigger   bool          `json:"manual_trigger" yaml:"manual_trigger,omitempty"`
	Retries         int           `yaml:"retries,omitempty"`
	NotifyOnSuccess bool          `json:"notify_on_success,omitempty" yaml:"notify_on_success,omitempty"`
	Notifications   Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	Timeout         string        `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	UseBuildVersion bool          `json:"use_build_version,omitempty" yaml:"use_build_version,omitempty"`
	Username        string        `json:"username" yaml:"username,omitempty" secretAllowed:"true"`
	Password        string        `json:"password" yaml:"password,omitempty" secretAllowed:"true"`
	BuildHistory    int           `json:"build_history,omitempty" yaml:"build_history,omitempty"`
}

func (DeployMLZip) GetAttempts

func (r DeployMLZip) GetAttempts() int

func (DeployMLZip) GetBuildHistory

func (r DeployMLZip) GetBuildHistory() int

func (DeployMLZip) GetName

func (r DeployMLZip) GetName() string

func (DeployMLZip) GetNotifications

func (r DeployMLZip) GetNotifications() Notifications

func (DeployMLZip) GetSecrets

func (r DeployMLZip) GetSecrets() map[string]string

func (DeployMLZip) GetTimeout

func (r DeployMLZip) GetTimeout() string

func (DeployMLZip) IsManualTrigger

func (r DeployMLZip) IsManualTrigger() bool

func (DeployMLZip) MarshalYAML

func (r DeployMLZip) MarshalYAML() (interface{}, error)

func (DeployMLZip) NotifiesOnSuccess

func (r DeployMLZip) NotifiesOnSuccess() bool

func (DeployMLZip) ReadsFromArtifacts

func (r DeployMLZip) ReadsFromArtifacts() bool

func (DeployMLZip) SavesArtifacts

func (r DeployMLZip) SavesArtifacts() bool

func (DeployMLZip) SavesArtifactsOnFailure

func (r DeployMLZip) SavesArtifactsOnFailure() bool

func (DeployMLZip) SetBuildHistory

func (r DeployMLZip) SetBuildHistory(buildHistory int) Task

func (DeployMLZip) SetName

func (r DeployMLZip) SetName(name string) Task

func (DeployMLZip) SetNotifications

func (r DeployMLZip) SetNotifications(notifications Notifications) Task

func (DeployMLZip) SetNotifyOnSuccess

func (r DeployMLZip) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (DeployMLZip) SetTimeout

func (r DeployMLZip) SetTimeout(timeout string) Task

type Docker

type Docker struct {
	Image    string
	Username string `yaml:"username,omitempty" secretAllowed:"true"`
	Password string `yaml:"password,omitempty" secretAllowed:"true"`
}

type DockerCompose

type DockerCompose struct {
	Type                   string
	Name                   string        `yaml:"name,omitempty"`
	Command                string        `yaml:"command,omitempty"`
	ManualTrigger          bool          `json:"manual_trigger" yaml:"manual_trigger,omitempty"`
	Vars                   Vars          `yaml:"vars,omitempty" secretAllowed:"true"`
	Service                string        `yaml:"service,omitempty"`
	ComposeFiles           ComposeFiles  `json:"compose_file" yaml:"compose_file,omitempty"`
	SaveArtifacts          []string      `json:"save_artifacts" yaml:"save_artifacts,omitempty"`
	RestoreArtifacts       bool          `json:"restore_artifacts" yaml:"restore_artifacts,omitempty"`
	SaveArtifactsOnFailure []string      `json:"save_artifacts_on_failure" yaml:"save_artifacts_on_failure,omitempty"`
	Retries                int           `yaml:"retries,omitempty"`
	NotifyOnSuccess        bool          `json:"notify_on_success,omitempty" yaml:"notify_on_success,omitempty"`
	Notifications          Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	Timeout                string        `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	BuildHistory           int           `json:"build_history,omitempty" yaml:"build_history,omitempty"`
}

func (DockerCompose) GetAttempts

func (r DockerCompose) GetAttempts() int

func (DockerCompose) GetBuildHistory

func (r DockerCompose) GetBuildHistory() int

func (DockerCompose) GetName

func (r DockerCompose) GetName() string

func (DockerCompose) GetNotifications

func (r DockerCompose) GetNotifications() Notifications

func (DockerCompose) GetSecrets

func (r DockerCompose) GetSecrets() map[string]string

func (DockerCompose) GetTimeout

func (r DockerCompose) GetTimeout() string

func (DockerCompose) IsManualTrigger

func (r DockerCompose) IsManualTrigger() bool

func (DockerCompose) MarshalYAML

func (r DockerCompose) MarshalYAML() (interface{}, error)

func (DockerCompose) NotifiesOnSuccess

func (r DockerCompose) NotifiesOnSuccess() bool

func (DockerCompose) ReadsFromArtifacts

func (r DockerCompose) ReadsFromArtifacts() bool

func (DockerCompose) SavesArtifacts

func (r DockerCompose) SavesArtifacts() bool

func (DockerCompose) SavesArtifactsOnFailure

func (r DockerCompose) SavesArtifactsOnFailure() bool

func (DockerCompose) SetBuildHistory

func (r DockerCompose) SetBuildHistory(buildHistory int) Task

func (DockerCompose) SetName

func (r DockerCompose) SetName(name string) Task

func (DockerCompose) SetNotifications

func (r DockerCompose) SetNotifications(notifications Notifications) Task

func (DockerCompose) SetNotifyOnSuccess

func (r DockerCompose) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (DockerCompose) SetTimeout

func (r DockerCompose) SetTimeout(timeout string) Task

type DockerPush

type DockerPush struct {
	Type                  string
	Name                  string        `yaml:"name,omitempty"`
	ManualTrigger         bool          `json:"manual_trigger" yaml:"manual_trigger,omitempty"`
	Username              string        `yaml:"username,omitempty" secretAllowed:"true"`
	Password              string        `yaml:"password,omitempty" secretAllowed:"true"`
	Image                 string        `yaml:"image,omitempty"`
	IgnoreVulnerabilities bool          `json:"ignore_vulnerabilities,omitempty" yaml:"ignore_vulnerabilities,omitempty"`
	ScanTimeout           int           `json:"scan_timeout,omitempty" yaml:"scan_timeout,omitempty"`
	Vars                  Vars          `yaml:"vars,omitempty" secretAllowed:"true"`
	Secrets               Vars          `yaml:"secrets,omitempty" secretAllowed:"true"`
	RestoreArtifacts      bool          `json:"restore_artifacts" yaml:"restore_artifacts,omitempty"`
	Retries               int           `yaml:"retries,omitempty"`
	NotifyOnSuccess       bool          `json:"notify_on_success,omitempty" yaml:"notify_on_success,omitempty"`
	Notifications         Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	Timeout               string        `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	DockerfilePath        string        `json:"dockerfile_path,omitempty" yaml:"dockerfile_path,omitempty"`
	BuildPath             string        `json:"build_path,omitempty" yaml:"build_path,omitempty"`
	Tag                   string        `json:"tag,omitempty" yaml:"tag,omitempty"`
	BuildHistory          int           `json:"build_history,omitempty" yaml:"build_history,omitempty"`
	Platforms             []string      `json:"platforms,omitempty" yaml:"platforms,omitempty"`
	UseCache              bool          `json:"use_cache,omitempty" yaml:"use_cache,omitempty"`
}

func (DockerPush) GetAttempts

func (r DockerPush) GetAttempts() int

func (DockerPush) GetBuildHistory

func (r DockerPush) GetBuildHistory() int

func (DockerPush) GetName

func (r DockerPush) GetName() string

func (DockerPush) GetNotifications

func (r DockerPush) GetNotifications() Notifications

func (DockerPush) GetSecrets

func (r DockerPush) GetSecrets() map[string]string

func (DockerPush) GetTimeout

func (r DockerPush) GetTimeout() string

func (DockerPush) IsManualTrigger

func (r DockerPush) IsManualTrigger() bool

func (DockerPush) MarshalYAML

func (r DockerPush) MarshalYAML() (interface{}, error)

func (DockerPush) NotifiesOnSuccess

func (r DockerPush) NotifiesOnSuccess() bool

func (DockerPush) ReadsFromArtifacts

func (r DockerPush) ReadsFromArtifacts() bool

func (DockerPush) SavesArtifacts

func (r DockerPush) SavesArtifacts() bool

func (DockerPush) SavesArtifactsOnFailure

func (r DockerPush) SavesArtifactsOnFailure() bool

func (DockerPush) SetBuildHistory

func (r DockerPush) SetBuildHistory(buildHistory int) Task

func (DockerPush) SetName

func (r DockerPush) SetName(name string) Task

func (DockerPush) SetNotifications

func (r DockerPush) SetNotifications(notifications Notifications) Task

func (DockerPush) SetNotifyOnSuccess

func (r DockerPush) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (DockerPush) SetTimeout

func (r DockerPush) SetTimeout(timeout string) Task

type DockerTrigger

type DockerTrigger struct {
	Type     string
	Image    string `json:"image,omitempty" yaml:"image,omitempty"`
	Username string `json:"username,omitempty" yaml:"username,omitempty" secretAllowed:"true"`
	Password string `json:"password,omitempty" yaml:"password,omitempty" secretAllowed:"true"`
}

func (DockerTrigger) GetTriggerAttempts

func (d DockerTrigger) GetTriggerAttempts() int

func (DockerTrigger) GetTriggerName

func (d DockerTrigger) GetTriggerName() string

func (DockerTrigger) MarshalYAML

func (d DockerTrigger) MarshalYAML() (interface{}, error)

type FeatureToggles

type FeatureToggles []string

func (FeatureToggles) GithubStatuses

func (f FeatureToggles) GithubStatuses() bool

func (FeatureToggles) TagGitRepo

func (f FeatureToggles) TagGitRepo() bool

func (FeatureToggles) UpdatePipeline

func (f FeatureToggles) UpdatePipeline() bool

type GitTrigger

type GitTrigger struct {
	Type           string
	URI            string   `json:"uri,omitempty" yaml:"uri,omitempty"`
	BasePath       string   `json:"-" yaml:"-"` //don't auto unmarshal
	PrivateKey     string   `json:"private_key,omitempty" yaml:"private_key,omitempty" secretAllowed:"true"`
	WatchedPaths   []string `json:"watched_paths,omitempty" yaml:"watched_paths,omitempty"`
	IgnoredPaths   []string `json:"ignored_paths,omitempty" yaml:"ignored_paths,omitempty"`
	GitCryptKey    string   `json:"git_crypt_key,omitempty" yaml:"git_crypt_key,omitempty" secretAllowed:"true"`
	Branch         string   `json:"branch,omitempty" yaml:"branch,omitempty"`
	Shallow        bool     `json:"shallow,omitempty" yaml:"shallow,omitempty"`
	ShallowDefined bool     `json:"-" yaml:"-"` //don't auto unmarshal
	ManualTrigger  bool     `json:"manual_trigger" yaml:"manual_trigger,omitempty"`
}

func (GitTrigger) GetRepoName

func (git GitTrigger) GetRepoName() string

func (GitTrigger) GetTriggerAttempts

func (git GitTrigger) GetTriggerAttempts() int

func (GitTrigger) GetTriggerName

func (GitTrigger) GetTriggerName() string

func (GitTrigger) IsPublic

func (git GitTrigger) IsPublic() bool

func (GitTrigger) MarshalYAML

func (git GitTrigger) MarshalYAML() (interface{}, error)

type Manifest

type Manifest struct {
	Team                string         `yaml:"team,omitempty"`
	Pipeline            string         `yaml:"pipeline,omitempty"`
	SlackChannel        string         `json:"slack_channel,omitempty" yaml:"slack_channel,omitempty"`
	TeamsWebhook        string         `json:"teams_webhook,omitempty" yaml:"teams_webhook,omitempty" secretAllowed:"true"`
	SlackSuccessMessage string         `json:"slack_success_message,omitempty" yaml:"slack_success_message,omitempty"`
	SlackFailureMessage string         `json:"slack_failure_message,omitempty" yaml:"slack_failure_message,omitempty"`
	ArtifactConfig      ArtifactConfig `json:"artifact_config,omitempty" yaml:"artifact_config,omitempty"`
	FeatureToggles      FeatureToggles `json:"feature_toggles,omitempty" yaml:"feature_toggles,omitempty"`
	Triggers            TriggerList    `json:"triggers,omitempty" yaml:"triggers,omitempty"`
	Tasks               TaskList       `yaml:"tasks,omitempty"`
	Platform            Platform       `json:"platform,omitempty" yaml:"platform,omitempty"`
	Notifications       Notifications  `json:"notifications,omitempty" yaml:"notifications,omitempty"`
}

func Parse

func Parse(manifestYaml string) (Manifest, []error)

func (Manifest) PipelineName

func (m Manifest) PipelineName() (pipelineName string)

type NotificationChannel

type NotificationChannel struct {
	Slack   string `json:"slack,omitempty" yaml:"slack,omitempty"`
	Teams   string `json:"teams,omitempty" yaml:"teams,omitempty"`
	Message string `json:"message,omitempty" yaml:"message,omitempty"`
}

type NotificationChannels

type NotificationChannels []NotificationChannel

func (NotificationChannels) Slack

func (nc NotificationChannels) Slack() (ncs NotificationChannels)

func (NotificationChannels) Teams

func (nc NotificationChannels) Teams() (ncs NotificationChannels)

type Notifications

type Notifications struct {
	OnSuccess        []string             `json:"on_success,omitempty" yaml:"on_success,omitempty"`
	OnSuccessMessage string               `json:"on_success_message,omitempty" yaml:"on_success_message,omitempty"`
	OnFailure        []string             `json:"on_failure,omitempty" yaml:"on_failure,omitempty"`
	OnFailureMessage string               `json:"on_failure_message,omitempty" yaml:"on_failure_message,omitempty"`
	Success          NotificationChannels `json:"success,omitempty" yaml:"success,omitempty"`
	Failure          NotificationChannels `json:"failure,omitempty" yaml:"failure,omitempty"`
}

func (Notifications) Equal

func (n Notifications) Equal(n2 Notifications) bool

func (Notifications) NotificationsDefined

func (n Notifications) NotificationsDefined() bool

type Parallel

type Parallel struct {
	Type  string
	Tasks TaskList `yaml:"tasks,omitempty"`
}

func (Parallel) GetAttempts

func (Parallel) GetAttempts() int

func (Parallel) GetBuildHistory

func (p Parallel) GetBuildHistory() int

func (Parallel) GetName

func (Parallel) GetName() string

func (Parallel) GetNotifications

func (p Parallel) GetNotifications() Notifications

func (Parallel) GetSecrets

func (p Parallel) GetSecrets() map[string]string

func (Parallel) GetTimeout

func (Parallel) GetTimeout() string

func (Parallel) IsManualTrigger

func (Parallel) IsManualTrigger() bool

func (Parallel) MarshalYAML

func (p Parallel) MarshalYAML() (interface{}, error)

func (Parallel) NotifiesOnSuccess

func (p Parallel) NotifiesOnSuccess() bool

func (Parallel) ReadsFromArtifacts

func (p Parallel) ReadsFromArtifacts() bool

func (Parallel) SavesArtifacts

func (p Parallel) SavesArtifacts() bool

func (Parallel) SavesArtifactsOnFailure

func (p Parallel) SavesArtifactsOnFailure() bool

func (Parallel) SetBuildHistory

func (p Parallel) SetBuildHistory(buildHistory int) Task

func (Parallel) SetName

func (p Parallel) SetName(name string) Task

func (Parallel) SetNotifications

func (p Parallel) SetNotifications(notifications Notifications) Task

func (Parallel) SetNotifyOnSuccess

func (p Parallel) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (Parallel) SetTimeout

func (p Parallel) SetTimeout(timeout string) Task

type PipelineTrigger

type PipelineTrigger struct {
	Type         string
	ConcourseURL string `json:"concourse_url,omitempty" yaml:"concourse_url,omitempty" secretAllowed:"true"`
	Username     string `json:"username,omitempty" yaml:"username,omitempty" secretAllowed:"true"`
	Password     string `json:"password,omitempty" yaml:"password,omitempty" secretAllowed:"true"`
	Team         string `json:"team,omitempty" yaml:"team,omitempty"`
	Pipeline     string `json:"pipeline,omitempty" yaml:"pipeline,omitempty"`
	Job          string `json:"job,omitempty" yaml:"job,omitempty"`
	Status       string `json:"status,omitempty" yaml:"status,omitempty"`
}

func (PipelineTrigger) GetTriggerAttempts

func (p PipelineTrigger) GetTriggerAttempts() int

func (PipelineTrigger) GetTriggerName

func (p PipelineTrigger) GetTriggerName() string

func (PipelineTrigger) MarshalYAML

func (p PipelineTrigger) MarshalYAML() (interface{}, error)

type Platform

type Platform string

func (Platform) IsActions

func (p Platform) IsActions() bool

func (Platform) IsConcourse

func (p Platform) IsConcourse() bool

type Repo

type Repo struct {
	URI          string   `json:"uri,omitempty" yaml:"uri,omitempty"`
	BasePath     string   `json:"-" yaml:"-"` //don't auto unmarshal
	PrivateKey   string   `json:"private_key,omitempty" yaml:"private_key,omitempty" secretAllowed:"true"`
	WatchedPaths []string `json:"watched_paths,omitempty" yaml:"watched_paths,omitempty"`
	IgnoredPaths []string `json:"ignored_paths,omitempty" yaml:"ignored_paths,omitempty"`
	GitCryptKey  string   `json:"git_crypt_key,omitempty" yaml:"git_crypt_key,omitempty" secretAllowed:"true"`
	Branch       string   `json:"branch,omitempty" yaml:"branch,omitempty"`
	Shallow      bool     `json:"shallow,omitempty" yaml:"shallow,omitempty"`
}

func (Repo) IsPublic

func (repo Repo) IsPublic() bool

type Run

type Run struct {
	Type                   string
	Name                   string        `yaml:"name,omitempty"`
	ManualTrigger          bool          `json:"manual_trigger" yaml:"manual_trigger,omitempty"`
	Script                 string        `yaml:"script,omitempty"`
	Docker                 Docker        `yaml:"docker,omitempty"`
	Privileged             bool          `yaml:"privileged,omitempty"`
	Vars                   Vars          `yaml:"vars,omitempty" secretAllowed:"true"`
	SaveArtifacts          []string      `json:"save_artifacts" yaml:"save_artifacts,omitempty"`
	RestoreArtifacts       bool          `json:"restore_artifacts" yaml:"restore_artifacts,omitempty"`
	SaveArtifactsOnFailure []string      `json:"save_artifacts_on_failure" yaml:"save_artifacts_on_failure,omitempty"`
	Retries                int           `yaml:"retries,omitempty"`
	NotifyOnSuccess        bool          `json:"notify_on_success,omitempty" yaml:"notify_on_success,omitempty"`
	Notifications          Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	Timeout                string        `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	BuildHistory           int           `json:"build_history,omitempty" yaml:"build_history,omitempty"`
}

func (Run) GetAttempts

func (r Run) GetAttempts() int

func (Run) GetBuildHistory

func (r Run) GetBuildHistory() int

func (Run) GetName

func (r Run) GetName() string

func (Run) GetNotifications

func (r Run) GetNotifications() Notifications

func (Run) GetSecrets

func (r Run) GetSecrets() map[string]string

func (Run) GetTimeout

func (r Run) GetTimeout() string

func (Run) IsManualTrigger

func (r Run) IsManualTrigger() bool

func (Run) MarshalYAML

func (r Run) MarshalYAML() (interface{}, error)

func (Run) NotifiesOnSuccess

func (r Run) NotifiesOnSuccess() bool

func (Run) ReadsFromArtifacts

func (r Run) ReadsFromArtifacts() bool

func (Run) SavesArtifacts

func (r Run) SavesArtifacts() bool

func (Run) SavesArtifactsOnFailure

func (r Run) SavesArtifactsOnFailure() bool

func (Run) SetBuildHistory

func (r Run) SetBuildHistory(buildHistory int) Task

func (Run) SetName

func (r Run) SetName(name string) Task

func (Run) SetNotifications

func (r Run) SetNotifications(notifications Notifications) Task

func (Run) SetNotifyOnSuccess

func (r Run) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (Run) SetTimeout

func (r Run) SetTimeout(timeout string) Task

type SecretValidator

type SecretValidator interface {
	Validate(Manifest) []error
}

func NewSecretValidator

func NewSecretValidator() SecretValidator

type Sequence

type Sequence struct {
	Type  string
	Tasks TaskList
}

func (Sequence) GetAttempts

func (s Sequence) GetAttempts() int

func (Sequence) GetBuildHistory

func (s Sequence) GetBuildHistory() int

func (Sequence) GetName

func (s Sequence) GetName() string

func (Sequence) GetNotifications

func (s Sequence) GetNotifications() Notifications

func (Sequence) GetSecrets

func (s Sequence) GetSecrets() map[string]string

func (Sequence) GetTimeout

func (s Sequence) GetTimeout() string

func (Sequence) IsManualTrigger

func (s Sequence) IsManualTrigger() bool

func (Sequence) MarshalYAML

func (s Sequence) MarshalYAML() (interface{}, error)

func (Sequence) NotifiesOnSuccess

func (s Sequence) NotifiesOnSuccess() bool

func (Sequence) ReadsFromArtifacts

func (s Sequence) ReadsFromArtifacts() bool

func (Sequence) SavesArtifacts

func (s Sequence) SavesArtifacts() bool

func (Sequence) SavesArtifactsOnFailure

func (s Sequence) SavesArtifactsOnFailure() bool

func (Sequence) SetBuildHistory

func (s Sequence) SetBuildHistory(buildHistory int) Task

func (Sequence) SetName

func (s Sequence) SetName(name string) Task

func (Sequence) SetNotifications

func (s Sequence) SetNotifications(notifications Notifications) Task

func (Sequence) SetNotifyOnSuccess

func (p Sequence) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (Sequence) SetTimeout

func (s Sequence) SetTimeout(timeout string) Task

type Task

type Task interface {
	ReadsFromArtifacts() bool
	GetAttempts() int
	SavesArtifacts() bool
	SavesArtifactsOnFailure() bool
	IsManualTrigger() bool
	NotifiesOnSuccess() bool

	GetTimeout() string
	SetTimeout(timeout string) Task

	GetName() string
	SetName(name string) Task

	GetNotifications() Notifications
	SetNotifications(notifications Notifications) Task
	SetNotifyOnSuccess(notifyOnSuccess bool) Task

	GetBuildHistory() int
	SetBuildHistory(buildHistory int) Task

	GetSecrets() map[string]string

	MarshalYAML() (interface{}, error) // To make sure type is always set when marshalling to yaml
}

type TaskList

type TaskList []Task

func (TaskList) Flatten

func (tl TaskList) Flatten() (updated TaskList)

func (TaskList) GetTask

func (tl TaskList) GetTask(name string) Task

func (TaskList) PreviousTaskNames

func (tl TaskList) PreviousTaskNames(currentIndex int) []string

func (TaskList) SavesArtifacts

func (tl TaskList) SavesArtifacts() bool

func (TaskList) SavesArtifactsOnFailure

func (tl TaskList) SavesArtifactsOnFailure() bool

func (*TaskList) UnmarshalJSON

func (t *TaskList) UnmarshalJSON(b []byte) error

func (TaskList) UsesSlackNotifications

func (tl TaskList) UsesSlackNotifications() bool

func (TaskList) UsesTeamsNotifications

func (tl TaskList) UsesTeamsNotifications() bool

type TimerTrigger

type TimerTrigger struct {
	Type string
	Cron string `json:"cron,omitempty" yaml:"cron,omitempty"`
}

func (TimerTrigger) GetTriggerAttempts

func (t TimerTrigger) GetTriggerAttempts() int

func (TimerTrigger) GetTriggerName

func (TimerTrigger) GetTriggerName() string

func (TimerTrigger) MarshalYAML

func (t TimerTrigger) MarshalYAML() (interface{}, error)

type Trigger

type Trigger interface {
	GetTriggerName() string
	GetTriggerAttempts() int
	MarshalYAML() (interface{}, error) // To make sure type is always set when marshalling to yaml
}

type TriggerList

type TriggerList []Trigger

func (TriggerList) GetGitTrigger

func (t TriggerList) GetGitTrigger() GitTrigger

func (TriggerList) HasGitTrigger

func (t TriggerList) HasGitTrigger() bool

func (*TriggerList) UnmarshalJSON

func (t *TriggerList) UnmarshalJSON(b []byte) error

type Update

type Update struct {
	Type          string
	Notifications Notifications `json:"notifications,omitempty" yaml:"notifications,omitempty"`
	Timeout       string
	BuildHistory  int
	TagRepo       bool
}

func (Update) GetAttempts

func (Update) GetAttempts() int

func (Update) GetBuildHistory

func (u Update) GetBuildHistory() int

func (Update) GetName

func (Update) GetName() string

func (Update) GetNotifications

func (u Update) GetNotifications() Notifications

func (Update) GetSecrets

func (u Update) GetSecrets() map[string]string

func (Update) GetTimeout

func (u Update) GetTimeout() string

func (Update) IsManualTrigger

func (Update) IsManualTrigger() bool

func (Update) MarshalYAML

func (u Update) MarshalYAML() (interface{}, error)

func (Update) NotifiesOnSuccess

func (Update) NotifiesOnSuccess() bool

func (Update) ReadsFromArtifacts

func (Update) ReadsFromArtifacts() bool

func (Update) SavesArtifacts

func (Update) SavesArtifacts() bool

func (Update) SavesArtifactsOnFailure

func (Update) SavesArtifactsOnFailure() bool

func (Update) SetBuildHistory

func (u Update) SetBuildHistory(buildHistory int) Task

func (Update) SetName

func (u Update) SetName(name string) Task

func (Update) SetNotifications

func (u Update) SetNotifications(notifications Notifications) Task

func (Update) SetNotifyOnSuccess

func (u Update) SetNotifyOnSuccess(notifyOnSuccess bool) Task

func (Update) SetTimeout

func (u Update) SetTimeout(timeout string) Task

type Vars

type Vars map[string]string

func (*Vars) UnmarshalJSON

func (v *Vars) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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