Documentation ¶
Index ¶
- Constants
- func NewMigrations(db *sql.DB, es encryption.Strategy) *migrations
- type GroupConfig
- type GroupConfigs
- type Params
- type Pipeline
- type ResourceConfig
- type Source
- type V5InParallelConfig
- type V5JobConfig
- type V5JobConfigs
- type V5PlanConfig
- type V5PlanSequence
- type V5VersionConfig
- type V6ResourceConfigVersion
- type Version
Constants ¶
View Source
const V5VersionEvery = "every"
View Source
const V5VersionLatest = "latest"
Variables ¶
This section is empty.
Functions ¶
func NewMigrations ¶
func NewMigrations(db *sql.DB, es encryption.Strategy) *migrations
Types ¶
type GroupConfig ¶
type GroupConfigs ¶
type GroupConfigs []GroupConfig
type Pipeline ¶
type Pipeline struct { ID int Groups GroupConfigs }
type ResourceConfig ¶
type ResourceConfig struct { Name string `json:"name"` Public bool `json:"public,omitempty"` WebhookToken string `json:"webhook_token,omitempty"` Type string `json:"type"` Source Source `json:"source"` CheckEvery string `json:"check_every,omitempty"` CheckTimeout string `json:"check_timeout,omitempty"` Tags []string `json:"tags,omitempty"` Version Version `json:"version,omitempty"` }
type V5InParallelConfig ¶
type V5InParallelConfig struct { Steps V5PlanSequence `json:"steps,omitempty"` Limit int `json:"limit,omitempty"` FailFast bool `json:"fail_fast,omitempty"` }
type V5JobConfig ¶
type V5JobConfig struct { Name string `json:"name"` Public bool `json:"public,omitempty"` DisableManualTrigger bool `json:"disable_manual_trigger,omitempty"` Serial bool `json:"serial,omitempty"` SerialGroups []string `json:"serial_groups,omitempty"` RawMaxInFlight int `json:"max_in_flight,omitempty"` Abort *V5PlanConfig `json:"on_abort,omitempty"` Error *V5PlanConfig `json:"on_error,omitempty"` Failure *V5PlanConfig `json:"on_failure,omitempty"` Ensure *V5PlanConfig `json:"ensure,omitempty"` Success *V5PlanConfig `json:"on_success,omitempty"` Plan V5PlanSequence `json:"plan"` }
func (V5JobConfig) MaxInFlight ¶
func (config V5JobConfig) MaxInFlight() int
func (V5JobConfig) Plans ¶
func (config V5JobConfig) Plans() []V5PlanConfig
type V5JobConfigs ¶
type V5JobConfigs []V5JobConfig
type V5PlanConfig ¶
type V5PlanConfig struct { Do *V5PlanSequence `json:"do,omitempty"` Aggregate *V5PlanSequence `json:"aggregate,omitempty"` InParallel *V5InParallelConfig `json:"in_parallel,omitempty"` Get string `json:"get,omitempty"` Passed []string `json:"passed,omitempty"` Trigger bool `json:"trigger,omitempty"` Put string `json:"put,omitempty"` Resource string `json:"resource,omitempty"` Abort *V5PlanConfig `json:"on_abort,omitempty"` Error *V5PlanConfig `json:"on_error,omitempty"` Failure *V5PlanConfig `json:"on_failure,omitempty"` Ensure *V5PlanConfig `json:"ensure,omitempty"` Success *V5PlanConfig `json:"on_success,omitempty"` Try *V5PlanConfig `json:"try,omitempty"` Version *V5VersionConfig `json:"version,omitempty"` }
type V5PlanSequence ¶
type V5PlanSequence []V5PlanConfig
type V5VersionConfig ¶
func (*V5VersionConfig) MarshalJSON ¶
func (c *V5VersionConfig) MarshalJSON() ([]byte, error)
func (*V5VersionConfig) UnmarshalJSON ¶
func (c *V5VersionConfig) UnmarshalJSON(version []byte) error
type V6ResourceConfigVersion ¶
Source Files ¶
- 1516643303_update_auth_providers.down.go
- 1516643303_update_auth_providers.up.go
- 1522178770_add_job_tags.up.go
- 1528470872_add_global_users.down.go
- 1528470872_add_global_users.up.go
- 1537546150_global_resource_version_history.down.go
- 1551384520_fix_build_private_plan.down.go
- 1551384520_fix_build_private_plan.up.go
- 1561558376_add_type_to_resources.up.go
- 1579713199_migrate_job_configs_to_job_inputs_and_outputs.down.go
- 1579713199_migrate_job_configs_to_job_inputs_and_outputs.up.go
- 1589991895_add_config_pinned_version_to_resource_pins.down.go
- 1589991895_add_config_pinned_version_to_resource_pins.up.go
- migrations.go
Click to show internal directories.
Click to hide internal directories.