types

package
v0.0.0-...-b4c102b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Commands []string
	Finally  []string
}

Build struct represents the build step of the CodeBuild buildspec

type Buildspec

type Buildspec struct {
	Version string
	Phases  Phases
}

Buildspec struct represents the general CodeBuild buildspec structure

type EnvironmentVariable

type EnvironmentVariable struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

EnvironmentVariable is the implementation of the TowerAPI EnvironmentVariable schema

type Event

type Event struct {
	Repository            string                `json:"repository"`
	Branch                string                `json:"branch"`
	Operation             string                `json:"operation"`
	InfrastructureRepoURL string                `json:"infrastructureRepoUrl"`
	CodeBuildRoleARN      string                `json:"codeBuildRoleARN"`
	EnvironmentVariables  []EnvironmentVariable `json:"environmentVariables"`
	Success               int                   `json:"success"`
	ShutdownSchedules     []TimeSchedule        `json:"shutdownSchedules"`
	StartupSchedules      []TimeSchedule        `json:"startupSchedules"`
}

Event contains the event body used in the invokation of the Lambda

type Phases

type Phases struct {
	Build Build
}

Phases struct represents the phases block of the CodeBuild buildspec

type SingleComponentVersion

type SingleComponentVersion struct {
	Name       string `json:"name"`
	Version    string `json:"version"`
	CommitHash string `json:"commitHash"`
	Branch     string `json:"branch"`
	BuildTime  string `json:"buildTime"`
}

SingleComponentVersion is the implementation of the TowerAPI SingleComponentVersion schema

type Status

type Status struct {
	Status string `json:"status"`
}

Status struct contains the Environment status

type StatusUpdate

type StatusUpdate struct {
	Status string `json:":status"`
}

StatusUpdate struct is used for DynamoDB updates, because the update command requires all json keys to start with ":"

type TimeSchedule

type TimeSchedule struct {
	Cron string `json:"cron"`
}

TimeSchedule is the implementation of the TowerAPI TimeSchedule schema

Jump to

Keyboard shortcuts

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