common

package
v0.0.0-...-3f10997 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalCtx context.Context
View Source
var GlobalPigeonHoleClient sdk.ClientWithResponses

Functions

func ArrOutputData

func ArrOutputData(data *[]interface{})

func CompressPath

func CompressPath(src string, buf io.Writer) error

func CreateGPGKey

func CreateGPGKey(name string, email string) (string, string, crypto.Key)

func DecodeFromBase64

func DecodeFromBase64(input string) (string, error)

func DecodePigeonHoleJWT

func DecodePigeonHoleJWT() (map[string]interface{}, error)

func DecompressFile

func DecompressFile(src string, dst string) error

func DecryptBytes

func DecryptBytes(input []byte, destinationPath string) (decryptedFilePath string, err error)

func DisplayHelp

func DisplayHelp(cmd *cobra.Command, args []string)

func EncodeToBase64

func EncodeToBase64(input string) string

EncodeToBase64 takes a string and returns its base64 encoded version

func EncryptFile

func EncryptFile(filePath string, armoredPubKeys []string) (encryptedFilePath string, err error)

func GenerateCodeWord

func GenerateCodeWord(numWords int) string

func GetUserGPGArmoredPubKeysFromIdSlice

func GetUserGPGArmoredPubKeysFromIdSlice(recipients []string) ([]string, error)

func NewIdPClient

func NewIdPClient(token string) (sdk.ClientWithResponses, context.Context)

func NewPigeonHoleClient

func NewPigeonHoleClient() (sdk.ClientWithResponses, context.Context)

func OutputData

func OutputData(data interface{})

func SecureDelete

func SecureDelete(filePath string) error

func ShredFile

func ShredFile(path 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