siderolink

package
v0.37.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package siderolink contains SideroLink controller resources.

Index

Constants

View Source
const (
	// ConfigType is the type of Config resource.
	//
	// tsgen:ConfigType
	ConfigType = resource.Type("Configs.omni.sidero.dev")
	// ConfigID is the config resource name.
	//
	// tsgen:ConfigID
	ConfigID = resource.ID("siderolink-config")
)
View Source
const ConnectionParamsType = resource.Type("ConnectionParams.omni.sidero.dev")

ConnectionParamsType is the type of ConnectionParams resource.

tsgen:ConnectionParamsType

View Source
const CounterNamespace = resources.MetricsNamespace

CounterNamespace is the default namespace for the SideroLink counter resources.

tsgen:SiderolinkCounterNamespace

View Source
const DeprecatedLinkCounterType = resource.Type("LinkCounters.omni.sidero.dev")

DeprecatedLinkCounterType is the type of LinkCounter resource.

View Source
const LinkType = resource.Type("Links.omni.sidero.dev")

LinkType is the type of Link resource.

tsgen:SiderolinkResourceType

Namespace is the default namespace for the SideroLink resources.

Variables

This section is empty.

Functions

func APIURL added in v0.37.0

func APIURL(cfg *ConnectionParams, useTunnel bool) (string, error)

APIURL generates siderolink API URL from the connection params.

func KernelArgs added in v0.37.0

func KernelArgs(res *ConnectionParams) []string

KernelArgs returns the kernel args for the given ConnectionParams resource.

Types

type Config

Config resource keeps connected nodes state.

func NewConfig

func NewConfig(ns string) *Config

NewConfig creates new Config resource.

type ConfigExtension

type ConfigExtension struct{}

ConfigExtension providers auxiliary methods for Config resource.

func (ConfigExtension) ResourceDefinition

func (ConfigExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type ConfigSpec

ConfigSpec wraps specs.SiderolinkConfigSpec.

type ConnectionParams

ConnectionParams resource keeps generated kernel arguments as a resource.

ConnectionParams resource ID is a machine UUID.

func NewConnectionParams

func NewConnectionParams(ns, id string) *ConnectionParams

NewConnectionParams creates new ConnectionParams state.

type ConnectionParamsExtension

type ConnectionParamsExtension struct{}

ConnectionParamsExtension providers auxiliary methods for ConnectionParams resource.

func (ConnectionParamsExtension) ResourceDefinition

ResourceDefinition implements typed.Extension interface.

type ConnectionParamsSpec

ConnectionParamsSpec wraps specs.ConnectionParamsSpec.

type DeprecatedLinkCounter

DeprecatedLinkCounter resource was removed, but still used only in the migration code.

func NewDeprecatedLinkCounter

func NewDeprecatedLinkCounter(ns, id string) *DeprecatedLinkCounter

NewDeprecatedLinkCounter creates new LinkCounter state.

type DeprecatedLinkCounterExtension

type DeprecatedLinkCounterExtension struct{}

DeprecatedLinkCounterExtension providers auxiliary methods for LinkCounter resource.

func (DeprecatedLinkCounterExtension) ResourceDefinition

ResourceDefinition implements typed.Extension interface.

type DeprecatedLinkCounterSpec

DeprecatedLinkCounterSpec wraps specs.SiderolinkSpec.

Link resource keeps connected nodes state.

Link resource ID is a machine UUID.

func NewLink(ns, id string, spec *specs.SiderolinkSpec) *Link

NewLink creates new Link state.

type LinkExtension

type LinkExtension struct{}

LinkExtension providers auxiliary methods for Link resource.

func (LinkExtension) ResourceDefinition

func (LinkExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type LinkSpec

LinkSpec wraps specs.SiderolinkSpec.

Jump to

Keyboard shortcuts

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