cksum

package
v0.0.0-...-d26976d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm int
const (
	NONE Algorithm = 0
	//sysv algorithm = 1
	//bsd  algorithm = 2
	CRC     Algorithm = 3
	MD5     Algorithm = 4
	SHA1    Algorithm = 5
	SHA224  Algorithm = 6
	SHA256  Algorithm = 7
	SHA384  Algorithm = 8
	SHA512  Algorithm = 9
	BLAKE2B Algorithm = 10
)

func (*Algorithm) Set

func (a *Algorithm) Set(value string) error

func (Algorithm) Size

func (a Algorithm) Size() int

func (Algorithm) Type

func (a Algorithm) Type() string

type BadLineFormatError

type BadLineFormatError string

func (BadLineFormatError) Error

func (e BadLineFormatError) Error() string

type CKSum

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

func New

func New() CKSum

func (CKSum) Algorithm

func (c CKSum) Algorithm(algorithm Algorithm) CKSum

func (CKSum) Check

func (c CKSum) Check(check bool) CKSum

func (CKSum) Files

func (c CKSum) Files(f ...string) CKSum

Files are input files, where - denotes stdin

func (CKSum) FromArgs

func (c CKSum) FromArgs(argv []string) (CKSum, error)

func (CKSum) IgnoreMissing

func (c CKSum) IgnoreMissing(ignoreMissing bool) CKSum

func (CKSum) Parallel

func (c CKSum) Parallel(limit uint) CKSum

func (CKSum) Quiet

func (c CKSum) Quiet(quiet bool) CKSum

func (CKSum) Run

func (c CKSum) Run(ctx context.Context, stdio unix.StandardIO) error

func (CKSum) SetDebug

func (c CKSum) SetDebug(debug bool) CKSum

func (CKSum) Status

func (c CKSum) Status(status bool) CKSum

func (CKSum) Untagged

func (c CKSum) Untagged(untagged bool) CKSum

Jump to

Keyboard shortcuts

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