Documentation ¶
Index ¶
- Constants
- func BuildComplete(imageName string)
- func BuildFailed(imageName string, err error)
- func BuildInProgress(imageName string)
- func DeployComplete()
- func DeployFailed(err error)
- func DeployInProgress()
- func DeployInfoEvent(err error)
- 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(build latest.BuildConfig)
- func LogSkaffoldMetadata(info *version.Info)
- func PortForwarded(localPort, remotePort int32, podName, containerName, namespace string, ...)
- func ResetStateOnBuild()
- func ResetStateOnDeploy()
- func ResourceStatusCheckEventFailed(r string, err error)
- func ResourceStatusCheckEventSucceeded(r string)
- func ResourceStatusCheckEventUpdated(r string, status string)
- func StatusCheckEventFailed(err error)
- func StatusCheckEventInProgress(s string)
- func StatusCheckEventStarted()
- func StatusCheckEventSucceeded()
Constants ¶
const ( NotStarted = "Not Started" InProgress = "In Progress" Complete = "Complete" Failed = "Failed" Info = "Information" Started = "Started" Succeeded = "Succeeded" )
Variables ¶
This section is empty.
Functions ¶
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 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 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 InitializeState ¶
func InitializeState(build latest.BuildConfig)
InitializeState instantiates the global state of the skaffold runner, as well as the event log.
func LogSkaffoldMetadata ¶
func PortForwarded ¶ added in v0.26.0
func PortForwarded(localPort, remotePort int32, podName, containerName, namespace string, portName string, resourceType, resourceName string)
PortForwarded notifies that a remote port has been forwarded locally.
func ResetStateOnBuild ¶ added in v0.40.0
func ResetStateOnBuild()
ResetStateOnBuild resets the build, deploy and sync state
func ResetStateOnDeploy ¶ added in v0.40.0
func ResetStateOnDeploy()
ResetStateOnDeploy resets the deploy, sync and status check state
func ResourceStatusCheckEventFailed ¶ added in v0.40.0
func ResourceStatusCheckEventSucceeded ¶ added in v0.40.0
func ResourceStatusCheckEventSucceeded(r string)
func ResourceStatusCheckEventUpdated ¶ added in v0.40.0
func StatusCheckEventFailed ¶ added in v0.40.0
func StatusCheckEventFailed(err error)
func StatusCheckEventInProgress ¶ added in v0.40.0
func StatusCheckEventInProgress(s string)
func StatusCheckEventStarted ¶ added in v0.40.0
func StatusCheckEventStarted()
func StatusCheckEventSucceeded ¶ added in v0.40.0
func StatusCheckEventSucceeded()
Types ¶
This section is empty.