event

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 17 Imported by: 19

Documentation

Index

Constants

View Source
const (
	NotStarted = "Not Started"
	InProgress = "In Progress"
	Complete   = "Complete"
	Failed     = "Failed"
	Info       = "Information"
	Started    = "Started"
	Succeeded  = "Succeeded"
	Terminated = "Terminated"
	Canceled   = "Canceled"
)

Variables

This section is empty.

Functions

func AutoTriggerDiff

func AutoTriggerDiff(name string, val bool) (bool, error)

func BuildCanceled

func BuildCanceled(imageName, platforms string)

BuildCanceled notifies that a build has been canceled.

func BuildComplete

func BuildComplete(imageName, platforms string)

BuildComplete notifies that a build has completed.

func BuildFailed

func BuildFailed(imageName, platforms string, err error)

BuildFailed notifies that a build has failed.

func BuildInProgress

func BuildInProgress(imageName, platforms string)

BuildInProgress notifies that a build has been started.

func BuildSequenceFailed

func BuildSequenceFailed(err error)

BuildSequenceFailed notifies that the build sequence has failed.

func DebuggingContainerStarted

func DebuggingContainerStarted(podName, containerName, namespace, artifact, runtime, workingDir string, debugPorts map[string]uint32)

DebuggingContainerStarted notifies that a debuggable container has appeared.

func DebuggingContainerTerminated

func DebuggingContainerTerminated(podName, containerName, namespace, artifact, runtime, workingDir string, debugPorts map[string]uint32)

DebuggingContainerTerminated notifies that a debuggable container has disappeared.

func DeployComplete

func DeployComplete()

DeployComplete notifies that a deployment has completed.

func DeployFailed

func DeployFailed(err error)

DeployFailed notifies that non-fatal errors were encountered during a deployment.

func DeployInProgress

func DeployInProgress()

DeployInProgress notifies that a deployment has been started.

func DeployInfoEvent

func DeployInfoEvent(err error)

DeployEvent notifies that a deployment of non fatal interesting errors during deploy.

func DevLoopComplete

func DevLoopComplete(i int)

DevLoopComplete notifies that a dev loop has completed.

func DevLoopFailedInPhase

func DevLoopFailedInPhase(iteration int, phase constants.Phase, err error)

DevLoopFailed notifies that a dev loop has failed in a given phase

func DevLoopFailedWithErrorCode

func DevLoopFailedWithErrorCode(i int, statusCode proto.StatusCode, err error)

DevLoopFailed notifies that a dev loop has failed with an error code

func DevLoopInProgress

func DevLoopInProgress(i int)

DevLoopInProgress notifies that a dev loop has been started.

func FileSyncFailed

func FileSyncFailed(fileCount int, image string, err error)

FileSyncFailed notifies that a file sync has failed.

func FileSyncInProgress

func FileSyncInProgress(fileCount int, image string)

FileSyncInProgress notifies that a file sync has been started.

func FileSyncSucceeded

func FileSyncSucceeded(fileCount int, image string)

FileSyncSucceeded notifies that a file sync has succeeded.

func ForEachEvent

func ForEachEvent(callback func(*proto.LogEntry) error) error

func GetState

func GetState() (*proto.State, error)

func Handle

func Handle(event *proto.Event) error

func InitializeState

func InitializeState(cfg Config)

InitializeState instantiates the global state of the skaffold runner, as well as the event log.

func InititializationFailed

func InititializationFailed(err error)

func LogMetaEvent

func LogMetaEvent()

func PortForwarded

func PortForwarded(localPort int32, remotePort util.IntOrString, podName, containerName, namespace string, portName string, resourceType, resourceName, address string)

PortForwarded notifies that a remote port has been forwarded locally.

func ResetStateOnBuild

func ResetStateOnBuild()

ResetStateOnBuild resets the build, test, deploy and sync state

func ResetStateOnDeploy

func ResetStateOnDeploy()

ResetStateOnDeploy resets the deploy, sync and status check state

func ResetStateOnTest

func ResetStateOnTest()

ResetStateOnTest resets the test, deploy, sync and status check state

func ResourceStatusCheckEventCompleted

func ResourceStatusCheckEventCompleted(r string, ae *proto.ActionableErr)

func ResourceStatusCheckEventUpdated

func ResourceStatusCheckEventUpdated(r string, ae *proto.ActionableErr)

func SaveEventsToFile

func SaveEventsToFile(fp string) error

SaveEventsToFile saves the current event log to the filepath provided

func StatusCheckEventEnded

func StatusCheckEventEnded(errCode proto.StatusCode, err error)

func StatusCheckEventInProgress

func StatusCheckEventInProgress(s string)

func StatusCheckEventStarted

func StatusCheckEventStarted()

func TestCanceled

func TestCanceled()

TestCanceled notifies that a test has been canceled.

func TestComplete

func TestComplete()

TestComplete notifies that a test has completed.

func TestFailed

func TestFailed(imageName string, err error)

TestFailed notifies that a test has failed.

func TestInProgress

func TestInProgress()

TestInProgress notifies that a test has been started.

func UpdateStateAutoBuildTrigger

func UpdateStateAutoBuildTrigger(t bool)

func UpdateStateAutoDeployTrigger

func UpdateStateAutoDeployTrigger(t bool)

func UpdateStateAutoSyncTrigger

func UpdateStateAutoSyncTrigger(t bool)

Types

type Config

type Config interface {
	GetKubeContext() string
	AutoBuild() bool
	AutoDeploy() bool
	AutoSync() bool
	GetPipelines() []latest.Pipeline
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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