client

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 15 Imported by: 3

Documentation

Overview

Code generated generate_clients.go. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Adminv2() Adminv2
	Apiv2() Apiv2
	Infrav2() Infrav2
}

func New

func New(config *DialConfig) (Client, error)

type DialConfig

type DialConfig struct {
	BaseURL string
	Token   string

	// Optional client Interceptors
	Interceptors []connect.Interceptor

	UserAgent string
	// TokenRenewal defines if and how the token should be renewed
	TokenRenewal *TokenRenewal

	Transport http.RoundTripper

	Log *slog.Logger
	// contains filtered or unexported fields
}

DialConfig is the configuration to create a api-server connection

func (*DialConfig) HttpClient

func (d *DialConfig) HttpClient() *http.Client

type PersistTokenFn added in v0.0.4

type PersistTokenFn func(token string) error

func NewFilesystemTokenPersister added in v0.0.23

func NewFilesystemTokenPersister(tokenFile string) (PersistTokenFn, error)

type TokenRenewal added in v0.0.4

type TokenRenewal struct {
	// PersistTokenFn is called to persist the newly fetched token
	// token will not be persisted if not specified
	PersistTokenFn PersistTokenFn
}

Jump to

Keyboard shortcuts

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