clisetup

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChecksumMismatch = errors.New("checksum mismatch")
	ErrChecksumNotFound = errors.New("checksum comment not found")
	ErrChecksumTooShort = fmt.Errorf("checksum too short, must be at least %d characters", minChecksumLength)
)

Functions

func New

func New(cfg configGetter) *cliSetup

func VerifyChecksum added in v1.7.0

func VerifyChecksum(r io.Reader) error

VerifyChecksum reads a YAML file with a head comment like `# cscli-checksum: abcdef123456` and verifies that the hash of the remainder of the file matches the checksum. It returns nil if the checksum is valid, or an error otherwise.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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