state

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package state defines the model for a Run state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunState

type RunState struct {
	Run run.Run

	// SubmissionScheduled is true if a submission will be attempted after state
	// transition completes.
	SubmissionScheduled bool
	// contains filtered or unexported fields
}

RunState represents the current state of a Run.

func (*RunState) CheckTree

func (rs *RunState) CheckTree(ctx context.Context, tc tree.Client) (bool, error)

CheckTree returns whether Tree is open for this Run.

Returns true if no Tree or Options.SkipTreeChecks is configured for this Run. Updates the latest result to `run.Submission`.

func (*RunState) LoadConfigGroup

func (rs *RunState) LoadConfigGroup(ctx context.Context) (*prjcfg.ConfigGroup, error)

LoadConfigGroup loads the ConfigGroup used by this Run.

Result is cached inside the state.

func (*RunState) ShallowCopy

func (rs *RunState) ShallowCopy() *RunState

ShallowCopy returns a shallow copy of run state

Jump to

Keyboard shortcuts

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