Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Unified Diff: service/module/interface.go

Issue 1772943003: Add wrappers for the module module (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: CL comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « service/module/context.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/module/interface.go
diff --git a/service/module/interface.go b/service/module/interface.go
new file mode 100644
index 0000000000000000000000000000000000000000..f8ab8a35087821a234eda1b3eca648719de633bd
--- /dev/null
+++ b/service/module/interface.go
@@ -0,0 +1,17 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package module
+
+// Interface is the interface for all of the package methods which normally
+// would be in the 'module' package.
+type Interface interface {
+ List() ([]string, error)
+ NumInstances(module, version string) (int, error)
+ SetNumInstances(module, version string, instances int) error
+ Versions(module string) ([]string, error)
+ DefaultVersion(module string) (string, error)
+ Start(module, version string) error
+ Stop(module, version string) error
+}
« no previous file with comments | « service/module/context.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698