hostname

package
v0.0.0-...-36c55c0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package hostname provides hostname-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 Hostname route registration functions.

Types

type Hostname

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

Hostname implementation of the Hostname APIs operations.

func New

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

New factory to create a new instance.

func (*Hostname) GetNodeHostname

GetNodeHostname get the node hostname API endpoint.

func (*Hostname) PutNodeHostname

PutNodeHostname put the node hostname API endpoint.

Directories

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

Jump to

Keyboard shortcuts

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