Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



The module package

import "appengine/module"

Introduction

Package module provides functions for interacting with modules.

The appengine package contains functions that report the identity of the app, including the module name.

Index

func DefaultVersion(c appengine.Context, module string) (string, error)
func List(c appengine.Context) ([]string, error)
func NumInstances(c appengine.Context, module, version string) (int, error)
func SetNumInstances(c appengine.Context, module, version string, instances int) error
func Start(c appengine.Context, module, version string) error
func Stop(c appengine.Context, module, version string) error
func Versions(c appengine.Context, module string) ([]string, error)

func DefaultVersion

func DefaultVersion(c appengine.Context, module string) (string, error)

DefaultVersion returns the default version of the specified module. If module is the empty string, it means the default module.

func List

func List(c appengine.Context) ([]string, error)

List returns the names of modules belonging to this application.

func NumInstances

func NumInstances(c appengine.Context, module, version string) (int, error)

NumInstances returns the number of instances of the given module/version. If either argument is the empty string it means the default.

func SetNumInstances

func SetNumInstances(c appengine.Context, module, version string, instances int) error

SetNumInstances sets the number of instances of the given module.version to the specified value. If either module or version are the empty string it means the default.

func Start

func Start(c appengine.Context, module, version string) error

Start starts the specified version of the specified module. If either module or version are the empty string, it means the default.

func Stop

func Stop(c appengine.Context, module, version string) error

Stop stops the specified version of the specified module. If either module or version are the empty string, it means the default.

func Versions

func Versions(c appengine.Context, module string) ([]string, error)

Versions returns the names of the versions that belong to the specified module. If module is the empty string, it means the default module.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.