multinodeauth

package
v1.117.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 5 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) MarshalJSON added in v1.63.1

func (secret Secret) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler Interface.

func (Secret) String

func (secret Secret) String() string

String implements Stringer.

func (*Secret) UnmarshalJSON added in v1.63.1

func (secret *Secret) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler Interface.

Jump to

Keyboard shortcuts

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