util

package
v0.0.0-...-77ce06a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0, EPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(arr []string, target string) bool

ContainsString returns true if a slice contains a given string.

func DeleteFileIfEmpty

func DeleteFileIfEmpty(file *os.File)

DeleteFileIfEmpty deletes a file if empty.

func DeviceCertificatesArePresent

func DeviceCertificatesArePresent(cert string, key string) bool

DeviceCertificatesArePresent check if certificates are used

func GenerateCertKeyError

func GenerateCertKeyError(messagePart string, cert string, key string) error

GenerateCertKeyError generates certificare error

func ReadDeviceID

func ReadDeviceID(deviceCert string) (string, error)

ReadDeviceID reads device id from PEM encoded certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

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