apputil

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureProfile

func ConfigureProfile(
	io *iostreams.IOStreams,
	cfg config.IConfig,
	appDetails *dashboard.Application,
	profileName string,
	setDefault bool,
) error

ConfigureProfile creates a CLI profile from application details and optionally sets it as the default.

func CreateAndFetchApplication

func CreateAndFetchApplication(
	io *iostreams.IOStreams,
	client *dashboard.Client,
	accessToken, region, appName string,
) (*dashboard.Application, error)

CreateAndFetchApplication creates an application (with region retry) and generates an API key for it.

func CreateApplicationWithRetry

func CreateApplicationWithRetry(
	io *iostreams.IOStreams,
	client *dashboard.Client,
	accessToken string,
	region string,
	appName string,
) (*dashboard.Application, string, error)

CreateApplicationWithRetry creates an application, retrying with a different region if the selected one has no available cluster.

func EnsureAPIKey

func EnsureAPIKey(
	io *iostreams.IOStreams,
	client *dashboard.Client,
	accessToken string,
	app *dashboard.Application,
) error

EnsureAPIKey generates a write API key for the application. Callers should skip this if the local profile already has a key.

func PromptRegion

func PromptRegion(
	io *iostreams.IOStreams,
	client *dashboard.Client,
	accessToken string,
) (string, error)

PromptRegion fetches regions from the API and prompts the user to select one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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