tokenfetcher

package
v0.19.921 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenFetchResult

type TokenFetchResult struct {
	RunnerID   string
	InstanceID string
	AccountID  string
	ProjectID  string
	Token      string
}

TokenFetchResult holds the result of a cloud token fetch.

type TokenFetcher

type TokenFetcher interface {
	// FetchToken authenticates with the cloud provider and returns a runner API token.
	FetchToken(ctx context.Context, apiClient nuonrunner.Client) (*TokenFetchResult, error)

	// Name returns the name of the cloud platform (e.g., "azure").
	Name() string
}

TokenFetcher defines the interface for cloud-specific token fetching. Currently only Azure implements this interface; AWS and GCP use inline code paths in the fetchtoken package for backward compatibility.

Jump to

Keyboard shortcuts

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