Documentation ¶
Overview ¶
Package siderolink contains SideroLink-related resources.
Index ¶
Constants ¶
const ConfigID = resource.ID("siderolink")
ConfigID the singleton config resource ID.
const ConfigType = resource.Type("SiderolinkConfigs.siderolink.talos.dev")
ConfigType is type of Config resource.
const StatusID = resource.ID("siderolink-status")
StatusID the singleton status resource ID.
const StatusType = resource.Type("SiderolinkStatuses.siderolink.talos.dev")
StatusType is the type of Status resource.
const TunnelID = resource.ID("siderolink-tunnel")
TunnelID the singleton tunnel resource ID.
const TunnelType = resource.Type("SiderolinkTunnels.siderolink.talos.dev")
TunnelType is type of Tunnel resource.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config = typed.Resource[ConfigSpec, ConfigExtension]
Config resource holds Siderolink configuration.
type ConfigExtension ¶
type ConfigExtension struct{}
ConfigExtension provides auxiliary methods for Config.
func (ConfigExtension) ResourceDefinition ¶
func (ConfigExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type ConfigSpec ¶
type ConfigSpec struct { APIEndpoint string `yaml:"apiEndpoint" protobuf:"1"` Host string `yaml:"host" protobuf:"2"` JoinToken string `yaml:"joinToken" protobuf:"3"` Insecure bool `yaml:"insecure" protobuf:"4"` Tunnel bool `yaml:"tunnel" protobuf:"5"` }
ConfigSpec describes Siderolink configuration.
func (ConfigSpec) DeepCopy ¶
func (o ConfigSpec) DeepCopy() ConfigSpec
DeepCopy generates a deep copy of ConfigSpec.
type Status ¶ added in v1.8.0
type Status = typed.Resource[StatusSpec, StatusExtension]
Status resource holds Siderolink status.
type StatusExtension ¶ added in v1.8.0
type StatusExtension struct{}
StatusExtension provides auxiliary methods for Status.
func (StatusExtension) ResourceDefinition ¶ added in v1.8.0
func (StatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type StatusSpec ¶ added in v1.8.0
type StatusSpec struct { // Host is the Siderolink target host. Host string `yaml:"host" protobuf:"1"` // Connected is the status of the Siderolink GRPC connection. Connected bool `yaml:"connected" protobuf:"2"` }
StatusSpec describes Siderolink status.
func (StatusSpec) DeepCopy ¶ added in v1.8.0
func (o StatusSpec) DeepCopy() StatusSpec
DeepCopy generates a deep copy of StatusSpec.
type Tunnel ¶ added in v1.7.0
type Tunnel = typed.Resource[TunnelSpec, TunnelExtension]
Tunnel resource holds Siderolink GRPC Tunnel configuration.
type TunnelExtension ¶ added in v1.7.0
type TunnelExtension struct{}
TunnelExtension provides auxiliary methods for Tunnel.
func (TunnelExtension) ResourceDefinition ¶ added in v1.7.0
func (TunnelExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type TunnelSpec ¶ added in v1.7.0
type TunnelSpec struct { // APIEndpoint is the Siderolink WireGuard over GRPC endpoint. APIEndpoint string `yaml:"apiEndpoint" protobuf:"1"` // LinkName is the name to use for WireGuard tunnel. LinkName string `yaml:"linkName" protobuf:"2"` // MTU is the maximum transmission unit for the tunnel. MTU int `yaml:"mtu" protobuf:"3"` // NodeAddress is the virtual address of our node. It's used to identify our node in the WireGuard GRPC streamer. // It's not the address of the actual WireGuard interface. NodeAddress netip.AddrPort `yaml:"nodeAddress" protobuf:"4"` }
TunnelSpec describes Siderolink GRPC Tunnel configuration.
func (TunnelSpec) DeepCopy ¶ added in v1.7.0
func (o TunnelSpec) DeepCopy() TunnelSpec
DeepCopy generates a deep copy of TunnelSpec.