profile

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewProfileId = "+ New Profile"

Functions

func GetProfileFromPrompt added in v0.13.0

func GetProfileFromPrompt(profiles []config.Profile, activeProfileName string, withNewProfile bool) (*config.Profile, error)

func ListProfiles

func ListProfiles(profileList []config.Profile, activeProfileId string)

func ProfileCreationView

func ProfileCreationView(c *config.Config, profileAddView *ProfileAddView, editing bool)

func Render

func Render(info ProfileInfo, verb string)

func SwitchToDefaultPrompt added in v0.7.0

func SwitchToDefaultPrompt(profileSwitchCheck *bool)

Types

type ProfileAddView

type ProfileAddView struct {
	ProfileName string
	ApiUrl      string
	ApiKey      string
}

type ProfileInfo

type ProfileInfo struct {
	ProfileName string
	ApiUrl      string
	ProfilePath string
}

type RowData added in v0.13.0

type RowData struct {
	ID     string
	Name   string
	Status string
	ApiUrl string
}

Jump to

Keyboard shortcuts

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