apps

package
v0.0.0-...-60c06ae Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: Apache-2.0 Imports: 8 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 GetCurrentGroup

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 LinkApp

func LinkApp(projectPath string, appID string) error

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

func LinkGroup

func LinkGroup(projectPath string, groupName string) error

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.

Jump to

Keyboard shortcuts

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