apps

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingRegionCache = errors.New("App configuration is incomplete. Please run `lean switch` to configure the app.")
View Source
var (
	// ErrNoAppLinked means no app was linked to the project
	ErrNoAppLinked = errors.New("No Leancloud Application was linked to the project")
)

Functions

func GetAppRegion added in v0.18.0

func GetAppRegion(appID string) (regions.Region, error)

func GetCurrentAppID

func GetCurrentAppID(projectPath string) (string, error)

GetCurrentAppID will return the content of ${projectPath}/.leancloud/current_app_id

func GetCurrentGroup added in v0.7.0

func GetCurrentGroup(projectPath string) (string, error)

GetCurrentGroup returns the content of ${projectPath}/.leancloud/current_group if it exists, or migrate the project's primary group.

func GetRegionCache added in v0.24.4

func GetRegionCache() map[string]regions.Region

func LinkApp

func LinkApp(projectPath string, appID string) error

LinkApp will write the specific appID to ${projectPath}/.leancloud/current_app_id

func LinkGroup added in v0.7.0

func LinkGroup(projectPath string, groupName string) error

LinkGroup will write the specific groupName to ${projectPath}/.leancloud/current_group

func SaveRegionCache added in v0.18.0

func SaveRegionCache() error

func SetRegionCache added in v0.18.0

func SetRegionCache(appID string, region regions.Region)

Types

This section is empty.

Jump to

Keyboard shortcuts

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