common

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodePrivateKey

func EncodePrivateKey(key crypto.PrivateKey) []byte

func EnsureDir

func EnsureDir(path string, perm os.FileMode) error

EnsureDir creates a directory if it does not exist

func HandleSigTerm

func HandleSigTerm(handler func()) context.Context

HandleSigTerm executes the given function when a SIGTERM is received, allowing for graceful termination before exiting the process

func Remove

func Remove(name string) error

Remove is more forgiving than os.Remove and does not return an error if the file does not exist

Types

This section is empty.

Jump to

Keyboard shortcuts

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