trigger

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotFoundError added in v0.7.0

type NotFoundError struct{}

NotFoundError is thrown when the trigger in question isn't found

func (NotFoundError) Error added in v0.7.0

func (err NotFoundError) Error() string

type Trigger

type Trigger struct {
	UUID      string
	Name      string
	Type      Type
	Token     *string
	User      *auth.User
	Arguments []byte
}

Trigger is the way a deployment is started

func (Trigger) Validate added in v0.7.0

func (t Trigger) Validate(temp *template.Template) error

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

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
)

type Unauthorized added in v0.7.0

type Unauthorized struct{}

Unauthorized is thrown when the user is neither in the group nor the role needed to trigger

func (Unauthorized) Error added in v0.7.0

func (err Unauthorized) Error() string

Jump to

Keyboard shortcuts

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