checksum

package
v0.55.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checksum

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

func New

func New(spec interface{}, exitCode *int, output *string) (*Checksum, error)

func (*Checksum) ConditionResult

func (c *Checksum) ConditionResult() (bool, error)

ConditionResult defines the success criteria for a condition using the shell resource To succeed, Updatecli expects the condition to be true so file shouldn't change

func (*Checksum) PostCommand

func (c *Checksum) PostCommand(workingDir string) error

PostCommand defines operations needed to be executed after the shell command

func (*Checksum) PreCommand

func (c *Checksum) PreCommand(workingDir string) error

PreCommand defines operations needed to be executed before the shell command

func (*Checksum) SourceResult

func (c *Checksum) SourceResult(resultSource *result.Source) error

SourceResult defines the success criteria for a source using the shell resource

func (*Checksum) TargetResult

func (c *Checksum) TargetResult() (bool, error)

TargetResult defines the success criteria for a target using the shell resource To success Updatecli expected to not change by default

type Spec

type Spec struct {
	// Files specifies the list of file that Updatecli monitors to identify state change
	Files []string `yaml:",omitempty" jsonschema:"required"`
}

func (Spec) Validate

func (s Spec) Validate() error

Jump to

Keyboard shortcuts

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