events

package
v0.0.0-...-419e056 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactBuildFailure

type ArtifactBuildFailure struct {
	ArtifactID   strfmt.UUID
	LogURI       string
	ErrorMessage string
}

func (ArtifactBuildFailure) IsEvent

func (ArtifactBuildFailure) IsEvent()

type ArtifactBuildProgress

type ArtifactBuildProgress struct {
	ArtifactID   strfmt.UUID
	LogTimestamp string
	LogLevel     string // eg. (INFO/ERROR/...)
	LogChannel   string // channel through which this log line was generated (stdout/stderr/...)
	LogMessage   string
	LogSource    string // source of this log (eg., builder/build-wrapper/...)
}

func (ArtifactBuildProgress) IsEvent

func (ArtifactBuildProgress) IsEvent()

type ArtifactBuildStarted

type ArtifactBuildStarted struct {
	ArtifactID strfmt.UUID
	FromCache  bool
}

func (ArtifactBuildStarted) IsEvent

func (ArtifactBuildStarted) IsEvent()

type ArtifactBuildSuccess

type ArtifactBuildSuccess struct {
	ArtifactID strfmt.UUID
	LogURI     string
}

func (ArtifactBuildSuccess) IsEvent

func (ArtifactBuildSuccess) IsEvent()

type ArtifactDownloadFailure

type ArtifactDownloadFailure struct {
	ArtifactID strfmt.UUID
	Error      error
}

func (ArtifactDownloadFailure) IsEvent

func (ArtifactDownloadFailure) IsEvent()

type ArtifactDownloadProgress

type ArtifactDownloadProgress struct {
	ArtifactID      strfmt.UUID
	IncrementBySize int
}

func (ArtifactDownloadProgress) IsEvent

func (ArtifactDownloadProgress) IsEvent()

type ArtifactDownloadStarted

type ArtifactDownloadStarted struct {
	ArtifactID strfmt.UUID
	TotalSize  int
}

func (ArtifactDownloadStarted) IsEvent

func (ArtifactDownloadStarted) IsEvent()

type ArtifactDownloadSuccess

type ArtifactDownloadSuccess struct {
	ArtifactID strfmt.UUID
}

func (ArtifactDownloadSuccess) IsEvent

func (ArtifactDownloadSuccess) IsEvent()

type ArtifactInstallFailure

type ArtifactInstallFailure struct {
	ArtifactID strfmt.UUID
	Error      error
}

func (ArtifactInstallFailure) IsEvent

func (ArtifactInstallFailure) IsEvent()

type ArtifactInstallStarted

type ArtifactInstallStarted struct {
	ArtifactID strfmt.UUID
}

func (ArtifactInstallStarted) IsEvent

func (ArtifactInstallStarted) IsEvent()

type ArtifactInstallSuccess

type ArtifactInstallSuccess struct {
	ArtifactID strfmt.UUID
}

func (ArtifactInstallSuccess) IsEvent

func (ArtifactInstallSuccess) IsEvent()

type ArtifactUninstallFailure

type ArtifactUninstallFailure struct {
	ArtifactID strfmt.UUID
	Error      error
}

func (ArtifactUninstallFailure) IsEvent

func (ArtifactUninstallFailure) IsEvent()

type ArtifactUninstallStarted

type ArtifactUninstallStarted struct {
	ArtifactID strfmt.UUID
}

func (ArtifactUninstallStarted) IsEvent

func (ArtifactUninstallStarted) IsEvent()

type ArtifactUninstallSuccess

type ArtifactUninstallSuccess struct {
	ArtifactID strfmt.UUID
}

func (ArtifactUninstallSuccess) IsEvent

func (ArtifactUninstallSuccess) IsEvent()

type ArtifactUnpackFailure

type ArtifactUnpackFailure struct {
	ArtifactID strfmt.UUID
	Error      error
}

func (ArtifactUnpackFailure) IsEvent

func (ArtifactUnpackFailure) IsEvent()

type ArtifactUnpackProgress

type ArtifactUnpackProgress struct {
	ArtifactID      strfmt.UUID
	IncrementBySize int
}

func (ArtifactUnpackProgress) IsEvent

func (ArtifactUnpackProgress) IsEvent()

type ArtifactUnpackStarted

type ArtifactUnpackStarted struct {
	ArtifactID strfmt.UUID
	TotalSize  int
}

func (ArtifactUnpackStarted) IsEvent

func (ArtifactUnpackStarted) IsEvent()

type ArtifactUnpackSuccess

type ArtifactUnpackSuccess struct {
	ArtifactID strfmt.UUID
}

func (ArtifactUnpackSuccess) IsEvent

func (ArtifactUnpackSuccess) IsEvent()

type BuildFailure

type BuildFailure struct {
	Message string
}

func (BuildFailure) IsEvent

func (BuildFailure) IsEvent()

type BuildStarted

type BuildStarted struct {
	LogFilePath string
}

func (BuildStarted) IsEvent

func (BuildStarted) IsEvent()

type BuildSuccess

type BuildSuccess struct {
}

func (BuildSuccess) IsEvent

func (BuildSuccess) IsEvent()

type Event

type Event interface {
	IsEvent()
}

type Failure

type Failure struct {
	Error error
}

func (Failure) IsEvent

func (Failure) IsEvent()

type Handler

type Handler interface {
	Handle(ev Event) error
	Close() error
}

type HandlerFunc

type HandlerFunc func(Event) error

type PostProcessFailure

type PostProcessFailure struct {
	Error error
}

func (PostProcessFailure) IsEvent

func (PostProcessFailure) IsEvent()

type PostProcessStarted

type PostProcessStarted struct {
}

func (PostProcessStarted) IsEvent

func (PostProcessStarted) IsEvent()

type PostProcessSuccess

type PostProcessSuccess struct {
}

func (PostProcessSuccess) IsEvent

func (PostProcessSuccess) IsEvent()

type Start

type Start struct {
	RecipeID strfmt.UUID

	RequiresBuild bool
	LogFilePath   string
	ProgressUrl   string

	ArtifactsToBuild    buildplan.ArtifactIDMap
	ArtifactsToDownload buildplan.ArtifactIDMap
	ArtifactsToUnpack   buildplan.ArtifactIDMap
	ArtifactsToInstall  buildplan.ArtifactIDMap
}

func (Start) IsEvent

func (Start) IsEvent()

type Success

type Success struct {
}

func (Success) IsEvent

func (Success) IsEvent()

type VoidHandler

type VoidHandler struct {
}

func (*VoidHandler) Close

func (v *VoidHandler) Close() error

func (*VoidHandler) Handle

func (v *VoidHandler) Handle(Event) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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