siderolink

package
v1.9.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package siderolink contains SideroLink-related resources.

Index

Constants

View Source
const ConfigID = resource.ID("siderolink")

ConfigID the singleton config resource ID.

View Source
const ConfigType = resource.Type("SiderolinkConfigs.siderolink.talos.dev")

ConfigType is type of Config resource.

View Source
const StatusID = resource.ID("siderolink-status")

StatusID the singleton status resource ID.

View Source
const StatusType = resource.Type("SiderolinkStatuses.siderolink.talos.dev")

StatusType is the type of Status resource.

View Source
const TunnelID = resource.ID("siderolink-tunnel")

TunnelID the singleton tunnel resource ID.

View Source
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

Config resource holds Siderolink configuration.

func NewConfig

func NewConfig(namespace resource.Namespace, id resource.ID) *Config

NewConfig initializes a Config resource.

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

Status resource holds Siderolink status.

func NewStatus added in v1.8.0

func NewStatus() *Status

NewStatus initializes a Status resource.

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

Tunnel resource holds Siderolink GRPC Tunnel configuration.

func NewTunnel added in v1.7.0

func NewTunnel() *Tunnel

NewTunnel initializes a Config resource.

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.

Jump to

Keyboard shortcuts

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