utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeyEntry

func CreateKeyEntry(key []byte) keystore.PrivateKeyEntry

func CreateKeyStore

func CreateKeyStore(ks keystore.KeyStore, filename string, password []byte)

func GetMac

func GetMac() (string, error)

func GetOsInfo

func GetOsInfo() (string, error)

func GetOutBoundIP

func GetOutBoundIP() (ip string, err error)

func LoginRequest

func LoginRequest(method, url string, header map[string]string, params interface{}) ([]byte, error)

func ReadKeyStore

func ReadKeyStore(filename string, password []byte) keystore.KeyStore

func SendRequest

func SendRequest(method, url string, header map[string]string, params interface{}) (interface{}, error)

func StoreSecretKey

func StoreSecretKey(alias string, keyEntry keystore.PrivateKeyEntry, ks keystore.KeyStore, filename string, password []byte)

func Zeroing

func Zeroing(buf []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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