api

package
v0.0.0-...-73522cb Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateUser

func AuthenticateUser(apiToken string, verbose bool, ios *lib.IOStreams) (string, error)

Types

type AgentDownloader

type AgentDownloader struct {
	// contains filtered or unexported fields
}

func NewAgentDownloader

func NewAgentDownloader(assetVersion, errorPrefix string, verbose bool, ioStreams *lib.IOStreams, runtimeInfo *lib.RuntimeInfo) *AgentDownloader

func (*AgentDownloader) Cleanup

func (ad *AgentDownloader) Cleanup()

func (*AgentDownloader) Download

func (ad *AgentDownloader) Download() (string, error)

type AppInfo

type AppInfo struct {
	AppID    string
	AppName  string
	Platform lib.Platform
}

func FetchApps

func FetchApps(apiToken string, platform lib.Platform, verbose bool, ios *lib.IOStreams) ([]*AppInfo, error)

type AuthenticateUserResponse

type AuthenticateUserResponse struct {
	Email     string `json:"email,omitempty"`
	FirstName string `json:"firstName,omitempty"`
	LastName  string `json:"lastName,omitempty"`
	UserID    string `json:"id"`
}

type FetchAppsResponse

type FetchAppsResponse struct {
	Items []*FetchedAppItem `json:"items"`
}

type FetchedAppItem

type FetchedAppItem struct {
	AppID string `json:"id"`
	Name  string `json:"name,omitempty"`
	Type  string `json:"type"`
}

Jump to

Keyboard shortcuts

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