multinodeauth

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret [32]byte

Secret crypto random 32 bytes array for multinode auth.

func NewSecret

func NewSecret() (Secret, error)

NewSecret creates new multinode auth secret.

func SecretFromBase64

func SecretFromBase64(s string) (Secret, error)

SecretFromBase64 creates new secret from base64 string.

func SecretFromBytes

func SecretFromBytes(b []byte) (Secret, error)

SecretFromBytes creates secret from bytes slice.

func (Secret) IsZero

func (secret Secret) IsZero() bool

IsZero returns if secret is not set.

func (Secret) String

func (secret Secret) String() string

String implements Stringer.

Jump to

Keyboard shortcuts

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