timeout

package
v0.0.0-...-5c47c4c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: EPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DevWorkspaceGroupVersion = &schema.GroupVersion{
		Group:   "workspace.devfile.io",
		Version: "v1alpha2",
	}
)

Functions

This section is empty.

Types

type InactivityIdleManager

type InactivityIdleManager interface {
	// Start starts tracking users activity and scheduling workspace stopping if there is no activity for idle timeout
	// Should be called once
	Start()

	// Tick registers users activity and postpones workspace stopping by inactivity
	Tick()
}

func NewInactivityIdleManager

func NewInactivityIdleManager(idleTimeout, stopRetryPeriod time.Duration) (InactivityIdleManager, error)

type RunIdleManager

type RunIdleManager interface {
	// Start schedules workspace to stop after run timeout
	// Should be called once
	Start()
}

func NewRunIdleManager

func NewRunIdleManager(runTimeout, stopRetryPeriod time.Duration) (RunIdleManager, error)

Jump to

Keyboard shortcuts

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