Documentation
¶
Index ¶
- func CreatePostgresDatabaseURL() (string, error)
- func DownloadFile(url, filepath string, expectedHash string) error
- func GenerateRandomPIN(length int) (string, error)
- func GenerateSerialNumber() (*big.Int, error)
- func GetAgentConfigFile() string
- func GetConfigFile() string
- func GetJWTKey() (string, error)
- func GetSHA256Sum(filepath string) ([]byte, error)
- func GetWd() (string, error)
- func NewLogger(logFilename string) *scnorionLogger
- func QueryReleasesEndpoint(url string) ([]byte, error)
- func ReadPEMCertificate(path string) (*x509.Certificate, error)
- func ReadPEMPrivateKey(path string) (*rsa.PrivateKey, error)
- func SaveCertificate(certBytes []byte, path string) error
- func SavePFX(b []byte, path string) error
- func SavePrivateKey(certPrivKey *rsa.PrivateKey, path string) error
- func UTF16BytesToString(b []byte, o binary.ByteOrder) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func GenerateSerialNumber ¶
func GetAgentConfigFile ¶
func GetAgentConfigFile() string
func GetConfigFile ¶
func GetConfigFile() string
func GetSHA256Sum ¶
func QueryReleasesEndpoint ¶
func ReadPEMCertificate ¶
func ReadPEMCertificate(path string) (*x509.Certificate, error)
func ReadPEMPrivateKey ¶
func ReadPEMPrivateKey(path string) (*rsa.PrivateKey, error)
func SaveCertificate ¶
func SavePrivateKey ¶
func SavePrivateKey(certPrivKey *rsa.PrivateKey, path string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.