session

package
v0.19.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSessionUpdateStatusAction

func HandleSessionUpdateStatusAction(state *store.EngineState, action SessionUpdateStatusAction)

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller summarizes engine state of resources for the active Tilt session (i.e. invocation of up/ci).

Part of the Session spec includes an exit condition, which is evaluated here and reflected on the Session status. The engine will react to changes in the status and exit once Done is true, propagating the error if one exists.

While using an apiserver type and updating the corresponding entity in the apiserver itself, this is not currently a reconciler due to heavy dependence on engine internals. It's very likely this will look very different once it has been converted to a reconciler. (Ideally, there will also be much less special case conversion logic as the data models on which this controller depends evolve during migration to apiserver.)

func NewController

func NewController(cli ctrlclient.Client) *Controller

func (*Controller) OnChange

func (c *Controller) OnChange(ctx context.Context, st store.RStore, summary store.ChangeSummary)

type SessionUpdateStatusAction

type SessionUpdateStatusAction struct {
	ObjectMeta *metav1.ObjectMeta
	Status     *session.SessionStatus
}

func NewSessionUpdateStatusAction

func NewSessionUpdateStatusAction(session *session.Session) SessionUpdateStatusAction

func (SessionUpdateStatusAction) Action

func (SessionUpdateStatusAction) Action()

func (SessionUpdateStatusAction) Summarize

func (a SessionUpdateStatusAction) Summarize(summary *store.ChangeSummary)

Jump to

Keyboard shortcuts

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