apputil

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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