internal

package
v0.0.0-...-90deddd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecState

type ExecState int
const (
	StateLoad ExecState = iota
	StatePut
	StateWait
	StateVerify
	StatePromote
	StateInspect
	StateResult
	StateTransferOut
	StateUnload
	StateDone
)

func (ExecState) Next

func (e ExecState) Next(ctx context.Context, err error, postUseChecksum bool) (next ExecState, nextIsRetry bool, msg string)

Next returns the next state considering the `err` encountered after completing this state. It also returns a message (suitable for logging) explaining why the next state was chosen and whether the next state is a retry.

func (ExecState) String

func (e ExecState) String() string

func (ExecState) TraceKind

func (e ExecState) TraceKind() trace.Kind

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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