util

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum added in v0.4.0

func Checksum(v interface{}) string

func NewPrivateKey added in v0.3.0

func NewPrivateKey() (*rsa.PrivateKey, string, error)

func NextID

func NextID() uint64

func ParseDiscoPublicKey

func ParseDiscoPublicKey(machineKey string) (*key.DiscoPublic, error)

func ParseMachinePrivateKey

func ParseMachinePrivateKey(machineKey string) (*key.MachinePrivate, error)

func ParseMachinePublicKey

func ParseMachinePublicKey(machineKey string) (*key.MachinePublic, error)

func ParseNodePublicKey

func ParseNodePublicKey(machineKey string) (*key.NodePublic, error)

func RandStringBytes

func RandStringBytes(n int) string

func RandUint64

func RandUint64(n uint64) uint64

func RandomBytes

func RandomBytes(size int) ([]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