dynamics

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CanonicalVersionCheckTask

type CanonicalVersionCheckTask struct {
	*tasks.BaseTask
	// Version info
	Version bindings.CanonicalVersion
}

CanonicalVersionCheckTask contains required state for the task.

func NewVersionCheckTask

func NewVersionCheckTask(version bindings.CanonicalVersion) *CanonicalVersionCheckTask

NewVersionCheckTask creates a background task that attempts to verify the version check.

func (*CanonicalVersionCheckTask) Execute

Execute executes the task business logic.

func (*CanonicalVersionCheckTask) Prepare

Prepare prepares for work to be done in the CanonicalVersionCheckTask.

func (*CanonicalVersionCheckTask) ShouldExecute

func (t *CanonicalVersionCheckTask) ShouldExecute(ctx context.Context) (bool, *tasks.TaskErr)

ShouldExecute checks if it makes sense to execute the task.

Jump to

Keyboard shortcuts

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