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)
Click to show internal directories.
Click to hide internal directories.