bootstrapdata

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAPIVersion              = "2026-05-02-preview"
	DefaultResourceManagerEndpoint = "https://management.azure.com"
	DefaultAuthorityHost           = "https://login.microsoftonline.com"
)

Variables

This section is empty.

Functions

func FetchAndWrite

func FetchAndWrite(ctx context.Context, options Options) error

Types

type Data added in v0.1.8

type Data struct {
	BootstrapToken string
	ClusterFQDN    string
	CACertData     string
	// contains filtered or unexported fields
}

Data contains the short-lived Kubernetes join credentials returned by listBootstrapData. The raw response is retained only so the bootstrap CLI can write the complete RP response; runtime callers should use the typed fields.

func Fetch added in v0.1.8

func Fetch(ctx context.Context, options Options) (*Data, error)

Fetch obtains fresh bootstrap data without persisting the sensitive response.

type Options

type Options struct {
	ClusterResourceID       string
	AgentPoolName           string
	AuthMode                string
	MSIClientID             string
	SPTenantID              string
	SPClientID              string
	SPClientSecret          string
	SPClientSecretFile      string
	SPClientCertificateFile string
	SPClientCredentialFile  string
	ResourceManagerEndpoint string
	ResourceManagerAudience string
	AuthorityHost           string
	APIVersion              string
	OutputPath              string
}

func OptionsFromConfig added in v0.1.8

func OptionsFromConfig(cfg *config.Config) (Options, error)

OptionsFromConfig converts validated runtime configuration into options for an in-memory listBootstrapData request.

Jump to

Keyboard shortcuts

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