network

package
v0.0.0-...-3da861f Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package network provides network-related API handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(
	logger *slog.Logger,
	jobClient client.JobClient,
	signingKey string,
	customRoles map[string][]string,
) []func(e *echo.Echo)

Handler returns Network route registration functions.

Types

type Network

type Network struct {
	// JobClient provides job-based operations for network management.
	JobClient client.JobClient
	// contains filtered or unexported fields
}

Network implementation of the Network APIs operations.

func New

func New(
	logger *slog.Logger,
	jobClient client.JobClient,
) *Network

New factory to create a new instance.

func (*Network) DeleteNodeNetworkDNS

DeleteNodeNetworkDNS delete the node network DNS configuration API endpoint.

func (*Network) DeleteNodeNetworkInterface

DeleteNodeNetworkInterface delete the node network interface API endpoint.

func (*Network) DeleteNodeNetworkRoute

DeleteNodeNetworkRoute delete the node network routes by interface API endpoint.

func (*Network) GetNodeNetworkDNSByInterface

GetNodeNetworkDNSByInterface get the node network dns get API endpoint.

func (*Network) GetNodeNetworkInterface

GetNodeNetworkInterface get the node network interface list API endpoint.

func (*Network) GetNodeNetworkInterfaceByName

GetNodeNetworkInterfaceByName get the node network interface by name API endpoint.

func (*Network) GetNodeNetworkRoute

GetNodeNetworkRoute get the node network route list API endpoint.

func (*Network) GetNodeNetworkRouteByInterface

GetNodeNetworkRouteByInterface get the node network routes by interface API endpoint.

func (*Network) PostNodeNetworkInterface

PostNodeNetworkInterface post the node network interface create API endpoint.

func (*Network) PostNodeNetworkPing

PostNodeNetworkPing post the node network ping API endpoint.

func (*Network) PostNodeNetworkRoute

PostNodeNetworkRoute post the node network route create API endpoint.

func (*Network) PutNodeNetworkDNS

PutNodeNetworkDNS put the node network dns API endpoint.

func (*Network) PutNodeNetworkInterface

PutNodeNetworkInterface put the node network interface update API endpoint.

func (*Network) PutNodeNetworkRoute

PutNodeNetworkRoute put the node network route update API endpoint.

Directories

Path Synopsis
Package gen contains generated code for the network API.
Package gen contains generated code for the network API.

Jump to

Keyboard shortcuts

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