util

package
v4.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	IssuerHintMicrosoft     = "MICROSOFT"
	IssuerHintDigicert      = "DIGICERT"
	IssuerHintEntrust       = "ENTRUST"
	PathSeparator           = "\\"
	ApplicationServerTypeID = "784938d1-ef0d-11eb-9461-7bb533ba575b"
)
View Source
const (
	RsaPrivKeyType = "RSA PRIVATE KEY"
)

Variables

This section is empty.

Functions

func ConvertSecondsToTime added in v4.15.0

func ConvertSecondsToTime(t int64) time.Time

func DecryptPkcs8PrivateKey added in v4.16.0

func DecryptPkcs8PrivateKey(privateKey, password string) (string, error)

func GenerateSshKeyPair added in v4.15.0

func GenerateSshKeyPair(bitSize int, keyPassword, certId string) ([]byte, []byte, error)

func GetJsonAsString added in v4.15.0

func GetJsonAsString(i interface{}) (s string)

func SaveZipFile added in v4.16.0

func SaveZipFile(path string, dataByte []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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