Movatterモバイル変換


[0]ホーム

URL:


persist

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:10Imported by:9

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package persist contains the Persist type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typePersist

type Persist struct {PrivateNodeKeykey.NodePrivateOldPrivateNodeKeykey.NodePrivate// needed to request key rotationUserProfiletailcfg.UserProfileNetworkLockKeykey.NLPrivateNodeIDtailcfg.StableNodeIDAttestationKeykey.HardwareAttestationKey `json:",omitempty"`// DisallowedTKAStateIDs stores the tka.State.StateID values which// this node will not operate network lock on. This is used to// prevent bootstrapping TKA onto a key authority which was forcibly// disabled.DisallowedTKAStateIDs []string `json:",omitempty"`// contains filtered or unexported fields}

Persist is the JSON type stored on disk on nodes to remember theirsettings between runs. This is stored as part of ipn.Prefs and ispersisted per ipn.LoginProfile.

func (*Persist)Clone

func (src *Persist) Clone() *Persist

Clone makes a deep copy of Persist.The result aliases no memory with the original.

func (*Persist)Equals

func (p *Persist) Equals(p2 *Persist)bool

func (*Persist)Pretty

func (p *Persist) Pretty()string

func (*Persist)PublicNodeKeyadded inv1.32.3

func (p *Persist) PublicNodeKey()key.NodePublic

PublicNodeKey returns the public key for the node key.

func (*Persist)PublicNodeKeyOKadded inv1.62.1

func (p *Persist) PublicNodeKeyOK() (pubkey.NodePublic, okbool)

PublicNodeKeyOK returns the public key for the node key.

Unlike PublicNodeKey, it returns ok=false if there is no node private keyinstead of panicking.

func (*Persist)Viewadded inv1.32.3

func (p *Persist) View()PersistView

View returns a read-only view of Persist.

typePersistViewadded inv1.32.3

type PersistView struct {// contains filtered or unexported fields}

PersistView provides a read-only view over Persist.

Its methods should only be called if `Valid()` returns true.

func (PersistView)AsStructadded inv1.32.3

func (vPersistView) AsStruct() *Persist

AsStruct returns a clone of the underlying value which aliases no memory withthe original.

func (PersistView)AttestationKeyadded inv1.90.0

func (vPersistView) AttestationKey()tailcfg.StableNodeID

func (PersistView)DisallowedTKAStateIDsadded inv1.34.0

func (vPersistView) DisallowedTKAStateIDs()views.Slice[string]

DisallowedTKAStateIDs stores the tka.State.StateID values whichthis node will not operate network lock on. This is used toprevent bootstrapping TKA onto a key authority which was forciblydisabled.

func (PersistView)Equalsadded inv1.34.0

func (pPersistView) Equals(p2PersistView)bool

func (PersistView)MarshalJSONadded inv1.32.3

func (vPersistView) MarshalJSON() ([]byte,error)

MarshalJSON implementsjsonv1.Marshaler.

func (PersistView)MarshalJSONToadded inv1.88.0

func (vPersistView) MarshalJSONTo(enc *jsontext.Encoder)error

MarshalJSONTo implementsjsonv2.MarshalerTo.

func (PersistView)NetworkLockKeyadded inv1.34.0

func (vPersistView) NetworkLockKey()key.NLPrivate

func (PersistView)NodeIDadded inv1.34.0

func (PersistView)OldPrivateNodeKeyadded inv1.32.3

func (vPersistView) OldPrivateNodeKey()key.NodePrivate

needed to request key rotation

func (PersistView)PrivateNodeKeyadded inv1.32.3

func (vPersistView) PrivateNodeKey()key.NodePrivate

func (PersistView)PublicNodeKeyadded inv1.34.0

func (pPersistView) PublicNodeKey()key.NodePublic

PublicNodeKey returns the public key for the node key.

It panics if there is no node private key. See PublicNodeKeyOK.

func (PersistView)PublicNodeKeyOKadded inv1.62.1

func (pPersistView) PublicNodeKeyOK() (_key.NodePublic, okbool)

PublicNodeKeyOK returns the public key for the node key.

Unlike PublicNodeKey, it returns ok=false if there is no node private keyinstead of panicking.

func (*PersistView)UnmarshalJSONadded inv1.32.3

func (v *PersistView) UnmarshalJSON(b []byte)error

UnmarshalJSON implementsjsonv1.Unmarshaler.

func (*PersistView)UnmarshalJSONFromadded inv1.88.0

func (v *PersistView) UnmarshalJSONFrom(dec *jsontext.Decoder)error

UnmarshalJSONFrom implementsjsonv2.UnmarshalerFrom.

func (PersistView)UserProfileadded inv1.34.0

func (vPersistView) UserProfile()tailcfg.UserProfile

func (PersistView)Validadded inv1.32.3

func (vPersistView) Valid()bool

Valid reports whether v's underlying value is non-nil.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp