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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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