Documentation ¶
Index ¶
- func Checksum(v interface{}) string
- func NewPrivateKey() (*rsa.PrivateKey, string, error)
- func NextID() uint64
- func ParseDiscoPublicKey(machineKey string) (*key.DiscoPublic, error)
- func ParseMachinePrivateKey(machineKey string) (*key.MachinePrivate, error)
- func ParseMachinePublicKey(machineKey string) (*key.MachinePublic, error)
- func ParseNodePublicKey(machineKey string) (*key.NodePublic, error)
- func RandStringBytes(n int) string
- func RandUint64(n uint64) uint64
- func RandomBytes(size int) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrivateKey ¶ added in v0.3.0
func NewPrivateKey() (*rsa.PrivateKey, string, error)
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 RandUint64 ¶
func RandomBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.