talosclient

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package talosclient impelent talos client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeCIDRDiscovery

func NodeCIDRDiscovery(filterIPs []netip.Addr, ifaces []network.AddressStatusSpec) (publicCIDRv4s, publicCIDRv6s []string)

NodeCIDRDiscovery returns the public CIDRs of the node with the given filter IPs.

func NodeIPDiscovery

func NodeIPDiscovery(nodeIPs []string, ifaces []network.AddressStatusSpec) (publicIPv4s, publicIPv6s []string)

NodeIPDiscovery returns the public IPs of the node excluding the given IPs.

Types

type Client

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

Client is the interface for the Talos client.

func New

func New(ctx context.Context) (*Client, error)

New is the interface for the Talos client.

func (*Client) GetClusterName

func (c *Client) GetClusterName() string

GetClusterName returns cluster name.

func (*Client) GetNodeIfaces

func (c *Client) GetNodeIfaces(ctx context.Context, nodeIP string) ([]network.AddressStatusSpec, error)

GetNodeIfaces returns the network interfaces of the node.

func (*Client) GetNodeMetadata

func (c *Client) GetNodeMetadata(ctx context.Context, nodeIP string) (*runtime.PlatformMetadataSpec, error)

GetNodeMetadata returns the metadata of the node.

func (*Client) GetPodCIDRs

func (c *Client) GetPodCIDRs(ctx context.Context) ([]string, error)

GetPodCIDRs returns the pod CIDRs of the cluster.

func (*Client) GetServiceCIDRs

func (c *Client) GetServiceCIDRs(ctx context.Context) ([]string, error)

GetServiceCIDRs returns the service CIDRs of the cluster.

Jump to

Keyboard shortcuts

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