apps

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func GetCurrentAppID(projectPath string) (string, error)

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

func LinkApp

func LinkApp(projectPath string, appID string) error

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

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.

Jump to

Keyboard shortcuts

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