shared

package
v7.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultHash = "SHA-256"

Variables

View Source
var (
	ArgConfig     string
	ArgDebug      uint32
	CurrentConfig *config.Config
)
View Source
var ArgDigest string
View Source
var RootCmd = &cobra.Command{
	Use:              "relic",
	PersistentPreRun: showVersion,
	RunE:             bailUnlessVersion,
}

Functions

func AddDigestFlag

func AddDigestFlag(cmd *cobra.Command)

func AddLateHook

func AddLateHook(f func())

func Fail

func Fail(err error) error

func GetDigest

func GetDigest() (hash crypto.Hash, err error)

func InitClientConfig

func InitClientConfig() error

func InitConfig

func InitConfig() error

func Main

func Main()

func OpenFile

func OpenFile(path string) (*os.File, error)

func OpenForPatching

func OpenForPatching(inpath, outpath string) (*os.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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