hbsecret

package
v3.0.0-rc21 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 0 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 struct {
	// Version represents the current version of the heartbeat secret used by
	// localhost to encrypt the heartbeat messages.
	Version uint64 `json:"version"`

	// AltVersion represents the version of the alternate heartbeat secret used by
	// localhost to encrypt/decrypt the heartbeat messages during heartbeat secret rotation.
	AltVersion uint64 `json:"alt_version,omitempty"`
	// contains filtered or unexported fields
}

func NewSecret

func NewSecret(secret, altSecret string, version, altVersion uint64) *Secret

func (*Secret) AltSecret

func (s *Secret) AltSecret() string

func (*Secret) AltSecretVersion

func (s *Secret) AltSecretVersion() uint64

func (*Secret) DeepCopy

func (s *Secret) DeepCopy() *Secret

func (*Secret) MainSecret

func (s *Secret) MainSecret() string

func (*Secret) MainVersion

func (s *Secret) MainVersion() uint64

func (*Secret) Rotate

func (s *Secret) Rotate()

Jump to

Keyboard shortcuts

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