Documentation
¶
Index ¶
- func BytesHtohl(b []byte) uint32
- func BytesNtohl(b []byte) uint32
- func BytesNtohll(b []byte) uint64
- func BytesNtohs(b []byte) uint16
- func CertToPEMString(cert *x509.Certificate) string
- func ExecCmd(cmdName string, args ...string) (string, string, error)
- func FileExists(name string) bool
- func HashByteToUint64(data []byte) uint64
- func IPv4Ntoa(ip uint32) string
- func LoadPlugins(path string, funcName string, skipError bool) (map[string]plugin.Symbol, error)
- func ModularByte(data []byte, mod uint64) uint64
- func NewLogger(logLevel string, prod bool) (*zap.Logger, error)
- func ParseInteger(intStr string, defaultValue int) int
- func RandomBytes(length int) ([]byte, error)
- func ReadString(s []byte) (string, error)
- func RstripSpace(buf []byte) []byte
- func ToJSON(data []byte) (map[string]interface{}, error)
- func VerifyRequires(params map[string]string, requires []string) error
- func WaitForSignals(callback func(os.Signal), sigs ...os.Signal)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesHtohl ¶
func BytesNtohl ¶
func BytesNtohll ¶
func BytesNtohs ¶
func CertToPEMString ¶
func CertToPEMString(cert *x509.Certificate) string
CertToPEMString taxes an x509 cert and returns a PEM encoded string version.
func FileExists ¶
func HashByteToUint64 ¶
func LoadPlugins ¶
func ModularByte ¶
func ParseInteger ¶
func RandomBytes ¶
RandomBytes return a slice of random bytes of the defined length
func ReadString ¶
ReadString extracts the first null terminated string from a slice of bytes.
func RstripSpace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.