trigger

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(u *auth.User, t *pb.TriggerDeployment, d template.Template) error

Validate takes a trigger call and validates it against a list of templated triggers

Types

type Trigger

type Trigger struct {
	Name string
	Type Type
	User auth.User
}

Trigger is the way a deployment is started

type Type

type Type int

Type represents the way a trigger is set off

const (
	// WebTrigger is a http call based trigger
	WebTrigger Type = 0

	// ManualTrigger is a user calling a trigger
	ManualTrigger Type = 1

	// DeploymentTrigger is one deployment triggering another
	DeploymentTrigger Type = 2
)

Jump to

Keyboard shortcuts

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