hetzner

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHetznerCommands

func CreateHetznerCommands() *cobra.Command

CreateHetznerCommands creates the Hetzner command tree for static commands

func ResolveAPIToken

func ResolveAPIToken() string

ResolveAPIToken returns the Hetzner Cloud API token from config or environment

Types

type BackendHetznerCredentials

type BackendHetznerCredentials struct {
	APIToken string
}

BackendHetznerCredentials represents Hetzner credentials from the backend

type Client

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

Client wraps the Hetzner Cloud hcloud CLI tool

func NewClient

func NewClient(apiToken string, debug bool) (*Client, error)

NewClient creates a new Hetzner Cloud client

func NewClientWithCredentials

func NewClientWithCredentials(creds *BackendHetznerCredentials, debug bool) (*Client, error)

NewClientWithCredentials creates a new Hetzner Cloud client using credentials from the backend

func (*Client) GetAPIToken

func (c *Client) GetAPIToken() string

GetAPIToken returns the API token

func (*Client) GetRelevantContext

func (c *Client) GetRelevantContext(ctx context.Context, question string) (string, error)

GetRelevantContext gathers Hetzner Cloud context for LLM queries

func (*Client) RunHcloud

func (c *Client) RunHcloud(ctx context.Context, args ...string) (string, error)

RunHcloud executes an hcloud CLI command with context

Jump to

Keyboard shortcuts

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