mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-17 17:31:30 +00:00
- The tools directory ideally should not contain source code - Removes double vendoring of packagages - Makes it easer to hook the build into the top-level Makefile Eventually, the plugin should be moved to the infrakit repo. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
22 lines
715 B
Go
22 lines
715 B
Go
package rpc
|
|
|
|
const (
|
|
// URLAPI is the well-known HTTP GET endpoint that retrieves description of the plugin's interfaces.
|
|
URLAPI = "/info/api.json"
|
|
|
|
// URLFunctions exposes the templates functions that are available via this plugin
|
|
URLFunctions = "/info/functions.json"
|
|
|
|
// URLEventsPrefix is the prefix of the events endpoint
|
|
URLEventsPrefix = "/events"
|
|
)
|
|
|
|
// InputExample is the interface implemented by the rpc implementations for
|
|
// group, instance, and flavor to set example input using custom/ vendored data types.
|
|
type InputExample interface {
|
|
|
|
// SetExampleProperties updates the parameter with example properties.
|
|
// The request param must be a pointer
|
|
SetExampleProperties(request interface{})
|
|
}
|