appengine: google.golang.org/appengine/module Index | Files

package module

import "google.golang.org/appengine/module"

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

Package Files

module.go

func DefaultVersion Uses

func DefaultVersion(c context.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 Uses

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

List returns the names of modules belonging to this application.

func NumInstances Uses

func NumInstances(c context.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 Uses

func SetNumInstances(c context.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 Uses

func Start(c context.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 Uses

func Stop(c context.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 Uses

func Versions(c context.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.

Package module imports 4 packages (graph) and is imported by 9 packages. Updated 2016-07-16. Refresh now. Tools for package owners.