restarton

package
v0.22.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buttons

func Buttons(ctx context.Context, client client.Client, restartOn *v1alpha1.RestartOnSpec, startOn *v1alpha1.StartOnSpec) (map[string]*v1alpha1.UIButton, error)

Fetch all the buttons that this object depends on.

func FileWatches

func FileWatches(ctx context.Context, client client.Client, restartOn *v1alpha1.RestartOnSpec) (map[string]*v1alpha1.FileWatch, error)

Fetch all the filewatches that this object depends on.

func FilesChanged

func FilesChanged(restartOn *v1alpha1.RestartOnSpec, fileWatches map[string]*v1alpha1.FileWatch, lastBuild time.Time) []string

Fetch the set of files that have changed since the given timestamp. We err on the side of undercounting (i.e., skipping files that may have triggered this build but are not sure).

func LastRestartEvent

func LastRestartEvent(restartOn *v1alpha1.RestartOnSpec, fileWatches map[string]*v1alpha1.FileWatch, buttons map[string]*v1alpha1.UIButton) (time.Time, *v1alpha1.UIButton)

Fetch the last time a restart was requested from this target's dependencies.

Returns the most recent trigger time. If the most recent trigger is a button, return the button. Some consumers use the button for text inputs.

func LastStartEvent

func LastStartEvent(startOn *v1alpha1.StartOnSpec, buttons map[string]*v1alpha1.UIButton) (time.Time, *v1alpha1.UIButton)

Fetch the last time a start was requested from this target's dependencies.

Returns the most recent trigger time. If the most recent trigger is a button, return the button. Some consumers use the button for text inputs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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