Documentation ¶
Index ¶
- Variables
- func GetCurrentAppID(projectPath string) (string, error)
- func GetCurrentGroup(projectPath string) (string, error)
- func LinkApp(projectPath string, appID string) error
- func LinkGroup(projectPath string, groupName string) error
- func MergeWithRecentApps(projectPath string, apps []*api.GetAppListResult) ([]*api.GetAppListResult, error)
Constants ¶
This section is empty.
Variables ¶
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 ¶
GetCurrentGroup returns the content of ${projectPath}/.leancloud/current_group if it exists, or migrate the project's primary group.
func LinkGroup ¶
LinkGroup will write the specific groupName to ${projectPath}/.leancloud/current_group
func MergeWithRecentApps ¶
func MergeWithRecentApps(projectPath string, apps []*api.GetAppListResult) ([]*api.GetAppListResult, error)
MergeWithRecentApps will adjust the appIDs' order with recent linked apps
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.