utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AESGCMVersion1 = 0x1
	AESGCMVersion2 = 0x2
)

Versions of the AESGCM storage methodology

Variables

View Source
var EngineNameRegexp = regexp.MustCompile("^/[0-9a-v]+/")

Functions

func BarrierDecrypt

func BarrierDecrypt(path string, gcm cipher.AEAD, cipher []byte) ([]byte, error)

func GetMessage

func GetMessage(err error) string

func GetStatus

func GetStatus(err error) structs.Status

func Memzero

func Memzero(b []byte)

func NullBoolFromPtr added in v0.2.0

func NullBoolFromPtr(v *bool) null.Bool

func NullInt64FromPtr added in v0.2.0

func NullInt64FromPtr(v *int64) null.Int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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