Movatterモバイル変換


[0]ホーム

URL:


kubestore

package
v1.92.2Latest Latest
Warning

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

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

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package kubestore contains an ipn.StateStore implementation using Kubernetes Secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeStore

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

Store is an ipn.StateStore that uses a Kubernetes Secret for persistence.

funcNew

func New(logflogger.Logf, secretNamestring) (*Store,error)

New returns a new Store that persists state to Kubernets Secret(s).Tailscale state is stored in a Secret named by the secretName parameter.TLS certs are stored and retrieved from state Secret or separate Secretsnamed after TLS endpoints if running in cert share mode.

func (*Store)ReadState

func (s *Store) ReadState(idipn.StateKey) ([]byte,error)

ReadState implements the StateStore interface.

func (*Store)ReadTLSCertAndKeyadded inv1.82.0

func (s *Store) ReadTLSCertAndKey(domainstring) (cert, key []byte, errerror)

ReadTLSCertAndKey reads a TLS cert and key from memory or from adomain-specific Secret. It first checks the in-memory store, if not found inmemory and running cert store in read-only mode, looks up a Secret.Note that write replicas of HA Ingress always retrieve TLS certs from Secrets.

func (*Store)SetDialeradded inv1.40.0

func (s *Store) SetDialer(d func(ctxcontext.Context, network, addressstring) (net.Conn,error))

func (*Store)String

func (s *Store) String()string

func (*Store)WriteState

func (s *Store) WriteState(idipn.StateKey, bs []byte) (errerror)

WriteState implements the StateStore interface.

func (*Store)WriteTLSCertAndKeyadded inv1.82.0

func (s *Store) WriteTLSCertAndKey(domainstring, cert, key []byte) (errerror)

WriteTLSCertAndKey writes a TLS cert and key to domain.crt, domain.key fieldsof a Tailscale Kubernetes node's state Secret.

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