util

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERROR_HASHING_CREDENTIALS = "error hashing user credentials" // #nosec G101 False Positive
	ERROR_CREATE_TOKEN        = "error creating auth token"
	ERROR_LOCKFILE_PRESENT    = "subordinate ca lockfile present"
	INVALID_SERIAL_NUMBER     = "invalid serial number for enrollment"
	ERROR_ENROLLING_DEVICE    = "error enrolling device serial number"
	MALFORMATTED_REQUEST      = "malformatted request parameters"
	UNAUTHORIZED_REQUEST      = "unauthorized request"
)

Variables

This section is empty.

Functions

func GenerateLockfile

func GenerateLockfile(service string) error

func GenerateTestUser

func GenerateTestUser(t *testing.T, permissions string, length int) (db.User, string)

func LockfileBackoff

func LockfileBackoff(lockfilePath string) error

func RemoveLockfile

func RemoveLockfile(service string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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