Movatterモバイル変換


[0]ホーム

URL:


conf

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:8Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package conf contains code to load, manipulate, and access config filesettings for k8s-proxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAPIServerProxyConfig

type APIServerProxyConfig struct {Enabledopt.Bool                      `json:",omitempty"`// Whether to enable the API Server proxy.Mode        *kubetypes.APIServerProxyMode `json:",omitempty"`// "auth" or "noauth" mode.ServiceName *tailcfg.ServiceName          `json:",omitempty"`// Name of the Tailscale Service to advertise.IssueCertsopt.Bool                      `json:",omitempty"`// Whether this replica should issue TLS certs for the Tailscale Service.}

typeConfig

type Config struct {Raw     []byte// raw bytes, in HuJSON formStd     []byte// standardized JSON formVersionstring// "v1alpha1"// Parsed is the parsed config, converted from its raw bytes version to the// latest known format.ParsedConfigV1Alpha1}

Config describes a config file.

funcLoad

func Load(raw []byte) (cConfig, errerror)

Load reads and parses the config file at the provided path on disk.

func (*Config)GetLocalAddr

func (c *Config) GetLocalAddr()string

func (*Config)GetLocalPort

func (c *Config) GetLocalPort()uint16

typeConfigV1Alpha1

type ConfigV1Alpha1 struct {AuthKey            *string  `json:",omitempty"`// Tailscale auth key to use.State              *string  `json:",omitempty"`// Path to the Tailscale state.LogLevel           *string  `json:",omitempty"`// "debug", "info". Defaults to "info".App                *string  `json:",omitempty"`// e.g. kubetypes.AppProxyGroupKubeAPIServerServerURL          *string  `json:",omitempty"`// URL of the Tailscale coordination server.LocalAddr          *string  `json:",omitempty"`// The address to use for serving HTTP health checks and metrics (defaults to all interfaces).LocalPort          *uint16  `json:",omitempty"`// The port to use for serving HTTP health checks and metrics (defaults to 9002).MetricsEnabledopt.Bool `json:",omitempty"`// Serve metrics on <LocalAddr>:<LocalPort>/metrics.HealthCheckEnabledopt.Bool `json:",omitempty"`// Serve health check on <LocalAddr>:<LocalPort>/metrics.// TODO(tomhjp): The remaining fields should all be reloadable during// runtime, but currently missing most of the APIServerProxy fields.Hostname          *string               `json:",omitempty"`// Tailscale device hostname.AcceptRoutesopt.Bool              `json:",omitempty"`// Accepts routes advertised by other Tailscale nodes.AdvertiseServices []string              `json:",omitempty"`// Tailscale Services to advertise.APIServerProxy    *APIServerProxyConfig `json:",omitempty"`// Config specific to the API Server proxy.StaticEndpoints   []netip.AddrPort      `json:",omitempty"`// StaticEndpoints are additional, user-defined endpoints that this node should advertise amongst its wireguard endpoints.}

typeVersionedConfig

type VersionedConfig struct {Versionstring `json:",omitempty"`// "v1alpha1"// Latest version of the config.*ConfigV1Alpha1// Backwards compatibility version(s) of the config. Fields and sub-fields// from here should only be added to, never changed in place.V1Alpha1 *ConfigV1Alpha1 `json:",omitempty"`}

VersionedConfig allows specifying config at the root of the object, or ina versioned sub-object.e.g. {"version": "v1alpha1", "authKey": "abc123"}or {"version": "v1beta1", "a-beta-config": "a-beta-value", "v1alpha1": {"authKey": "abc123"}}

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