codebuildslack

package module
v0.0.0-...-8da49dc Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

codebuildslack

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalInformation

type AdditionalInformation struct {
	Cache               Cache        `json:"cache"`
	TimeoutInMinutes    float64      `json:"timeout-in-minutes"`
	BuildComplete       bool         `json:"build-complete"`
	Initiator           string       `json:"initiator"`
	BuildStartTime      string       `json:"build-start-time"`
	Source              Source       `json:"source"`
	SourceVersion       string       `json:"source-version"`
	Artifact            Artifact     `json:"artifact"`
	Environment         Environment  `json:"environment"`
	Logs                Logs         `json:"logs"`
	Phases              []BuildPhase `json:"phases"`
	CurrentPhase        string       `json:"current-phase"`
	CurrentPhaseContext []string     `json:"current-phase-context"`
	Version             string       `json:"version"`
}

AdditionalInformation Represents additional information for the build event

type Artifact

type Artifact struct {
	Md5Sum    string `json:"md5sum"`
	Sha256Sum string `json:"sha256sum"`
	Location  string `json:"location"`
}

Artifact represents Artifact object in event - still unsure about the structure

type BuildPhase

type BuildPhase struct {
	PhaseContext      []string `json:"phase-context,omitempty"`
	StartTime         string   `json:"start-time"`
	EndTime           string   `json:"end-time,omitempty"`
	DurationInSeconds float64  `json:"duration-in-seconds,omitempty"`
	PhaseType         string   `json:"phase-type"`
	PhaseStatus       string   `json:"phase-status,omitempty"`
}

BuildPhase represents build phase that comes in with the event

type Cache

type Cache struct {
	Type string `json:"type"`
}

Cache represents cache type

type CodeBuildStateChangeEvent

type CodeBuildStateChangeEvent struct {
	BuildStatus           string                `json:"build-status"`
	ProjectName           string                `json:"project-name"`
	BuildID               string                `json:"build-id"`
	AdditionalInformation AdditionalInformation `json:"additional-information"`
	AccountID             string                `json:"account"`
	Time                  time.Time             `json:"time"`
	Region                string                `json:"region"`
	Resources             []string              `json:"resources"`
	Detail                json.RawMessage       `json:"detail"`
}

CodeBuildStateChangeEvent is the outer structure of a CodeBuild state change event sent via CloudWatch Events. For examples, see https://docs.aws.amazon.com/codebuild/latest/userguide/sample-build-notifications.html#sample-build-notifications-ref

func (CodeBuildStateChangeEvent) ImportantInfoToString

func (event CodeBuildStateChangeEvent) ImportantInfoToString() string

ImportantInfoToString returns string of info that we'd use for logging

type Environment

type Environment struct {
	Image                    string   `json:"image"`
	PrivilegedMode           bool     `json:"privileged-mode"`
	ImagePullCredentialsType string   `json:"image-pull-credentials-type"`
	ComputeType              string   `json:"compute-type"`
	Type                     string   `json:"type"`
	EnvironmentVariables     []string `json:"environment-variables"`
}

Environment represents Environment object in event - not sure what EnvironmentVariables works yet

type Logs

type Logs struct {
	GroupName  string `json:"group-name"`
	StreamName string `json:"stream-name"`
	DeepLink   string `json:"deep-link"`
}

Logs represents where codebuild logs things to. not sure how it'll look like with S3 logging yet

type Source

type Source struct {
	Location string `json:"location"`
	Type     string `json:"type"`
}

Source source in CodeBuild event.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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