vera

package
v0.0.0-...-b17de50 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	Environment      string `json:"environment"`
	Application      string `json:"application"`
	Version          string `json:"version"`
	Deployer         string `json:"deployedBy"`
	Environmentclass string `json:"environmentClass"`
}

Payload represents the JSON payload supported by the Vera API. All fields are required

func BuildVeraEvent

func BuildVeraEvent(event *deployment.Event) Payload

BuildVeraEvent collects data from a deployment event and creates a valid payload for POSTing to the vera api.

func (Payload) Marshal

func (payload Payload) Marshal() ([]byte, error)

Marshal VeraPayload struct to JSON

type Relay

type Relay struct {
	URL string
}

func (*Relay) Process

func (r *Relay) Process(event *deployment.Event) (retry bool, err error)

Jump to

Keyboard shortcuts

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