Documentation ¶
Index ¶
- Variables
- func GetAppRegion(appID string) (regions.Region, error)
- func GetCurrentAppID(projectPath string) (string, error)
- func GetCurrentGroup(projectPath string) (string, error)
- func GetRegionCache() map[string]regions.Region
- func LinkApp(projectPath string, appID string) error
- func LinkGroup(projectPath string, groupName string) error
- func SaveRegionCache() error
- func SetRegionCache(appID string, region regions.Region)
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 GetCurrentAppID ¶
GetCurrentAppID will return the content of ${projectPath}/.leancloud/current_app_id
func GetCurrentGroup ¶ added in v0.7.0
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 LinkGroup ¶ added in v0.7.0
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.