spec

package
v0.0.0-...-e0e0b42 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentEvent

type DeploymentEvent struct {
	// ID is an identifier for the deployment event.
	ID int

	// Name is the name of the project of the chart to deploy, e.g: aws-operator.
	Name string

	// Sha is the version of the chart to deploy.
	Sha string
}

DeploymentEvent represents a request for a chart to be deployed.

type Eventer

type Eventer interface {
	// NewDeploymentEvents returns a channel of DeploymentEvents.
	// This channel can be ranged over to receive DeploymentEvents as they come
	// in.
	// In case of error during setup, the error will be non-nil.
	NewDeploymentEvents() (<-chan DeploymentEvent, error)

	// SetPending updates the DeploymentEvent remote state to a pending state.
	SetPending(DeploymentEvent) error
	// SetSuccess updates the DeploymentEvent remote state to a success state.
	SetSuccess(DeploymentEvent) error
	// SetFailed updates the DeploymentEvent remote state to a failed state.
	SetFailed(DeploymentEvent) error
}

Eventer represents a Service that checks for deployment events.

type EventerType

type EventerType string

EventerType represents the type of Eventer to configure.

Jump to

Keyboard shortcuts

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