Documentation ¶
Overview ¶
Package talosclient impelent talos client.
Index ¶
- func NodeCIDRDiscovery(filterIPs []netip.Addr, ifaces []network.AddressStatusSpec) (publicCIDRv4s, publicCIDRv6s []string)
- func NodeIPDiscovery(nodeIPs []string, ifaces []network.AddressStatusSpec) (publicIPv4s, publicIPv6s []string)
- type Client
- func (c *Client) GetClusterName() string
- func (c *Client) GetNodeIfaces(ctx context.Context, nodeIP string) ([]network.AddressStatusSpec, error)
- func (c *Client) GetNodeMetadata(ctx context.Context, nodeIP string) (*runtime.PlatformMetadataSpec, error)
- func (c *Client) GetPodCIDRs(ctx context.Context) ([]string, error)
- func (c *Client) GetServiceCIDRs(ctx context.Context) ([]string, error)
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 (*Client) GetClusterName ¶
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 ¶
GetPodCIDRs returns the pod CIDRs of the cluster.
Click to show internal directories.
Click to hide internal directories.