hack

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package hack contains a frontend that provides a /metadata endpoint for the rootio hub action. It is not intended to be long lived and will be removed as we migrate to exposing Hardware data to Tinkerbell templates. In doing so, we can convert the rootio action to accept its inputs via parameters instead of retrieving them from Tootles and subsequently delete this frontend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(router gin.IRouter, client Client)

Configure configures router with a `/metadata` endpoint using client to retrieve instance data.

Types

type Client

type Client interface {
	GetHackInstance(ctx context.Context, ip string) (data.HackInstance, error)
}

Client is a backend for retrieving hack instance data.

Jump to

Keyboard shortcuts

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