Documentation ¶
Index ¶
- Constants
- func AutoTriggerDiff(name string, val bool) (bool, error)
- func BuildCanceled(imageName string)
- func BuildComplete(imageName string)
- func BuildFailed(imageName string, err error)
- func BuildInProgress(imageName string)
- func BuildSequenceFailed(err error)
- func DebuggingContainerStarted(podName, containerName, namespace, artifact, runtime, workingDir string, ...)
- func DebuggingContainerTerminated(podName, containerName, namespace, artifact, runtime, workingDir string, ...)
- func DeployComplete()
- func DeployFailed(err error)
- func DeployInProgress()
- func DeployInfoEvent(err error)
- func DevLoopComplete(i int)
- func DevLoopFailedInPhase(iteration int, phase constants.Phase, err error)
- func DevLoopFailedWithErrorCode(i int, statusCode proto.StatusCode, err error)
- func DevLoopInProgress(i int)
- func FileSyncFailed(fileCount int, image string, err error)
- func FileSyncInProgress(fileCount int, image string)
- func FileSyncSucceeded(fileCount int, image string)
- func ForEachEvent(callback func(*proto.LogEntry) error) error
- func GetState() (*proto.State, error)
- func Handle(event *proto.Event) error
- func InitializeState(cfg Config)
- func InititializationFailed(err error)
- func LogMetaEvent()
- func PortForwarded(localPort int32, remotePort util.IntOrString, ...)
- func ResetStateOnBuild()
- func ResetStateOnDeploy()
- func ResetStateOnTest()
- func ResourceStatusCheckEventCompleted(r string, ae proto.ActionableErr)
- func ResourceStatusCheckEventUpdated(r string, ae proto.ActionableErr)
- func SaveEventsToFile(fp string) error
- func StatusCheckEventEnded(errCode proto.StatusCode, err error)
- func StatusCheckEventInProgress(s string)
- func StatusCheckEventStarted()
- func TestCanceled()
- func TestComplete()
- func TestFailed(imageName string, err error)
- func TestInProgress()
- func UpdateStateAutoBuildTrigger(t bool)
- func UpdateStateAutoDeployTrigger(t bool)
- func UpdateStateAutoSyncTrigger(t bool)
- type Config
Constants ¶
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 BuildCanceled ¶ added in v1.7.1
func BuildCanceled(imageName string)
BuildCanceled notifies that a build has been canceled.
func BuildComplete ¶ added in v0.26.0
func BuildComplete(imageName string)
BuildComplete notifies that a build has completed.
func BuildFailed ¶ added in v0.26.0
BuildFailed notifies that a build has failed.
func BuildInProgress ¶ added in v0.26.0
func BuildInProgress(imageName string)
BuildInProgress notifies that a build has been started.
func BuildSequenceFailed ¶ added in v1.7.1
func BuildSequenceFailed(err error)
BuildSequenceFailed notifies that the build sequence has failed.
func DebuggingContainerStarted ¶ added in v1.3.1
func DebuggingContainerStarted(podName, containerName, namespace, artifact, runtime, workingDir string, debugPorts map[string]uint32)
DebuggingContainerStarted notifies that a debuggable container has appeared.
func DebuggingContainerTerminated ¶ added in v1.3.1
func DebuggingContainerTerminated(podName, containerName, namespace, artifact, runtime, workingDir string, debugPorts map[string]uint32)
DebuggingContainerTerminated notifies that a debuggable container has disappeared.
func DeployComplete ¶ added in v0.26.0
func DeployComplete()
DeployComplete notifies that a deployment has completed.
func DeployFailed ¶ added in v0.26.0
func DeployFailed(err error)
DeployFailed notifies that non-fatal errors were encountered during a deployment.
func DeployInProgress ¶ added in v0.26.0
func DeployInProgress()
DeployInProgress notifies that a deployment has been started.
func DeployInfoEvent ¶ added in v0.36.0
func DeployInfoEvent(err error)
DeployEvent notifies that a deployment of non fatal interesting errors during deploy.
func DevLoopComplete ¶ added in v1.7.1
func DevLoopComplete(i int)
DevLoopComplete notifies that a dev loop has completed.
func DevLoopFailedInPhase ¶ added in v1.7.1
DevLoopFailed notifies that a dev loop has failed in a given phase
func DevLoopFailedWithErrorCode ¶ added in v1.7.1
DevLoopFailed notifies that a dev loop has failed with an error code
func DevLoopInProgress ¶ added in v1.7.1
func DevLoopInProgress(i int)
DevLoopInProgress notifies that a dev loop has been started.
func FileSyncFailed ¶ added in v0.40.0
FileSyncFailed notifies that a file sync has failed.
func FileSyncInProgress ¶ added in v0.40.0
FileSyncInProgress notifies that a file sync has been started.
func FileSyncSucceeded ¶ added in v0.40.0
FileSyncSucceeded notifies that a file sync has succeeded.
func ForEachEvent ¶ added in v0.31.0
func InitializeState ¶
func InitializeState(cfg Config)
InitializeState instantiates the global state of the skaffold runner, as well as the event log.
func InititializationFailed ¶ added in v1.7.1
func InititializationFailed(err error)
func LogMetaEvent ¶ added in v1.7.1
func LogMetaEvent()
func PortForwarded ¶ added in v0.26.0
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 ¶ added in v0.40.0
func ResetStateOnBuild()
ResetStateOnBuild resets the build, test, deploy and sync state
func ResetStateOnDeploy ¶ added in v0.40.0
func ResetStateOnDeploy()
ResetStateOnDeploy resets the deploy, sync and status check state
func ResetStateOnTest ¶ added in v1.22.0
func ResetStateOnTest()
ResetStateOnTest resets the test, deploy, sync and status check state
func ResourceStatusCheckEventCompleted ¶ added in v1.7.1
func ResourceStatusCheckEventCompleted(r string, ae proto.ActionableErr)
func ResourceStatusCheckEventUpdated ¶ added in v0.40.0
func ResourceStatusCheckEventUpdated(r string, ae proto.ActionableErr)
func SaveEventsToFile ¶ added in v1.18.0
SaveEventsToFile saves the current event log to the filepath provided
func StatusCheckEventEnded ¶ added in v1.7.1
func StatusCheckEventEnded(errCode proto.StatusCode, err error)
func StatusCheckEventInProgress ¶ added in v0.40.0
func StatusCheckEventInProgress(s string)
func StatusCheckEventStarted ¶ added in v0.40.0
func StatusCheckEventStarted()
func TestCanceled ¶ added in v1.22.0
func TestCanceled()
TestCanceled notifies that a test has been canceled.
func TestComplete ¶ added in v1.22.0
func TestComplete()
TestComplete notifies that a test has completed.
func TestFailed ¶ added in v1.22.0
TestFailed notifies that a test has failed.
func TestInProgress ¶ added in v1.22.0
func TestInProgress()
TestInProgress notifies that a test has been started.
func UpdateStateAutoBuildTrigger ¶ added in v1.7.1
func UpdateStateAutoBuildTrigger(t bool)
func UpdateStateAutoDeployTrigger ¶ added in v1.7.1
func UpdateStateAutoDeployTrigger(t bool)
func UpdateStateAutoSyncTrigger ¶ added in v1.7.1
func UpdateStateAutoSyncTrigger(t bool)