sanity

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2017 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MultipleWorkerModelWarning
	NoWorkerModelMatchRequirement
	InvalidVariableFormat
	ProjectVariableDoesNotExist
	ApplicationVariableDoesNotExist
	EnvironmentVariableDoesNotExist
	CannotUseEnvironmentVariable
	MultipleHostnameRequirement
	IncompatibleBinaryAndModelRequirements
	IncompatibleServiceAndModelRequirements
	IncompatibleMemoryAndModelRequirements
)

Warning unique identifiers

Variables

This section is empty.

Functions

func CheckAction

func CheckAction(tx gorp.SqlExecutor, project *sdk.Project, pip *sdk.Pipeline, actionID int64) ([]sdk.Warning, error)

CheckAction checks for configuration errors like: - incompatible requirements - inexisting variable usage

func CheckPipeline

func CheckPipeline(db *sql.DB, project *sdk.Project, pip *sdk.Pipeline) error

CheckPipeline loads all PipelineAction and checks them all

func CheckProjectPipelines

func CheckProjectPipelines(db *sql.DB, project *sdk.Project) error

CheckProjectPipelines checks all pipelines in project

func InsertActionWarnings

func InsertActionWarnings(tx gorp.SqlExecutor, projectID, pipelineID int64, actionID int64, warnings []sdk.Warning) error

InsertActionWarnings in database

func LoadAllWarnings

func LoadAllWarnings(db *sql.DB, al string) ([]sdk.Warning, error)

LoadAllWarnings loads all warnings existing in CDS

func LoadUserWarnings

func LoadUserWarnings(db *sql.DB, al string, userID int64) ([]sdk.Warning, error)

LoadUserWarnings loads all warnings related to Jobs user has access to

Types

This section is empty.

Jump to

Keyboard shortcuts

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