v2

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AutoTriggerDiff

func AutoTriggerDiff(phase constants.Phase, val bool) (bool, error)

func BuildFailed added in v1.23.0

func BuildFailed(id int, artifact string, err error)

func BuildInProgress added in v1.23.0

func BuildInProgress(id int, artifact string)

func BuildSucceeded added in v1.23.0

func BuildSucceeded(id int, artifact string)

func ForEachEvent

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

func GetIteration added in v1.23.0

func GetIteration() int

func GetState

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

func Handle

func Handle(event *proto.Event) error

func InitializeState added in v1.23.0

func InitializeState(cfg event.Config)

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

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 SaveEventsToFile

func SaveEventsToFile(fp string) error

SaveEventsToFile saves the current event log to the filepath provided

func TaskFailed

func TaskFailed(task constants.Phase, err error)

func TaskInProgress

func TaskInProgress(task constants.Phase)

func TaskSucceeded

func TaskSucceeded(task constants.Phase)

func UpdateStateAutoBuildTrigger

func UpdateStateAutoBuildTrigger(t bool)

func UpdateStateAutoDeployTrigger

func UpdateStateAutoDeployTrigger(t bool)

func UpdateStateAutoSyncTrigger

func UpdateStateAutoSyncTrigger(t bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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