v2

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cache = "Cache"
	Build = "Build"
)
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 ApplicationLog added in v1.24.1

func ApplicationLog(podName, containerName, prefix, message, formattedMessage string)

func AutoTriggerDiff

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

func BuildCanceled added in v1.30.0

func BuildCanceled(artifact string, err error)

func BuildFailed added in v1.23.0

func BuildFailed(artifact string, err error)

func BuildInProgress added in v1.23.0

func BuildInProgress(artifact string)

func BuildSucceeded added in v1.23.0

func BuildSucceeded(artifact string)

func CacheCheckHit added in v1.26.0

func CacheCheckHit(artifact string)

func CacheCheckInProgress added in v1.26.0

func CacheCheckInProgress(artifact string)

func CacheCheckMiss added in v1.26.0

func CacheCheckMiss(artifact string)

func DebuggingContainerStarted added in v1.30.0

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.30.0

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

DebuggingContainerTerminated notifies that a debuggable container has disappeared.

func DeployFailed added in v1.24.0

func DeployFailed(id int, err error)

func DeployInProgress added in v1.24.0

func DeployInProgress(id int)

func DeploySucceeded added in v1.24.0

func DeploySucceeded(id int)

func ForEachApplicationLog added in v1.25.0

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

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 Config)

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

func LogMetaEvent added in v1.26.0

func LogMetaEvent()

func NewLogHook added in v1.30.0

func NewLogHook() logrus.Hook

func NewLogger added in v1.26.0

func NewLogger(phase constants.Phase, subtaskID string) io.Writer

func PortForwarded added in v1.27.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 RendererFailed added in v1.28.0

func RendererFailed(id int, err error)

RendererFailed adds an event to mark a render process has been failed.

func RendererInProgress added in v1.28.0

func RendererInProgress(id int)

RendererInProgress adds an event to mark a render process starts.

func RendererSucceeded added in v1.28.0

func RendererSucceeded(id int)

RendererSucceeded adds an event to mark a render process has been succeeded.

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 added in v1.26.0

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

func ResourceStatusCheckEventCompletedMessage added in v1.30.0

func ResourceStatusCheckEventCompletedMessage(r string, message string, ae *proto.ActionableErr)

func ResourceStatusCheckEventUpdated added in v1.26.0

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

func ResourceStatusCheckEventUpdatedMessage added in v1.30.0

func ResourceStatusCheckEventUpdatedMessage(r string, message string, ae *proto.ActionableErr)

func SaveEventsToFile

func SaveEventsToFile(fp string) error

SaveEventsToFile saves the current event log to the filepath provided

func SendErrorMessageOnce added in v1.31.0

func SendErrorMessageOnce(task constants.Phase, subtaskID string, err error)

SendErrorMessageOnce sends an error message to skaffold log events stream only once. Use it if you want to avoid sending duplicate error messages.

func TaskFailed

func TaskFailed(task constants.Phase, err error)

func TaskInProgress

func TaskInProgress(task constants.Phase, description string)

func TaskSucceeded

func TaskSucceeded(task constants.Phase)

func TesterFailed added in v1.24.0

func TesterFailed(id int, err error)

func TesterInProgress added in v1.24.0

func TesterInProgress(id int)

func TesterSucceeded added in v1.24.0

func TesterSucceeded(id int)

func UpdateStateAutoBuildTrigger

func UpdateStateAutoBuildTrigger(t bool)

func UpdateStateAutoDeployTrigger

func UpdateStateAutoDeployTrigger(t bool)

func UpdateStateAutoSyncTrigger

func UpdateStateAutoSyncTrigger(t bool)

func WaitForConnection added in v1.31.0

func WaitForConnection()

WaitForConnection will block execution until the server receives a connection

Types

type Config added in v1.26.0

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

Jump to

Keyboard shortcuts

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