prechecktype

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 1 module, 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 (
	CtxResultKeyCrossCluster = "cross_cluster" // bool
)

Variables

This section is empty.

Functions

func GetContextResult

func GetContextResult(ctx context.Context, k string) interface{}

func InitContext

func InitContext() context.Context

func PutContextResult

func PutContextResult(ctx context.Context, k string, v interface{})

Types

type ActionPreChecker

type ActionPreChecker interface {
	PreChecker
	ActionType() pipelineyml.ActionType
}

type DiceYmlPreChecker

type DiceYmlPreChecker interface {
	PreChecker
}

type ItemsForCheck

type ItemsForCheck struct {
	// PipelineYml is the pipeline yml content
	PipelineYml string

	// Files include all related files will be used in check process
	Files map[string]string

	// ActionSpecs include all required action specs
	// key: actionType / actionType@actionVersion
	ActionSpecs map[string]apistructs.ActionSpec

	// Labels include all labels declared when create pipeline
	// see: apistructs/labels.go
	Labels map[string]string

	// Envs include all envs:
	// - declared when create pipeline
	Envs map[string]string

	// ClusterName represents which cluster to execute pipeline
	ClusterName string

	Secrets map[string]string

	GlobalSnippetConfigLabels map[string]string
}

type PreChecker

type PreChecker interface {
	Check(ctx context.Context, data interface{}, itemsForCheck ItemsForCheck) (abort bool, message []string)
}

Jump to

Keyboard shortcuts

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