routes

package
v0.0.0-...-33bca21 Latest Latest
Warning

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

Go to latest
Published: May 7, 2015 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ping     = "Ping"
	Capacity = "Capacity"

	List        = "List"
	Create      = "Create"
	Info        = "Info"
	BulkInfo    = "BulkInfo"
	BulkMetrics = "BulkMetrics"
	Destroy     = "Destroy"

	Stop = "Stop"

	StreamIn  = "StreamIn"
	StreamOut = "StreamOut"

	Stdout = "Stdout"
	Stderr = "Stderr"

	LimitBandwidth         = "LimitBandwidth"
	CurrentBandwidthLimits = "CurrentBandwidthLimits"

	LimitCPU         = "LimitCPU"
	CurrentCPULimits = "CurrentCPULimits"

	LimitDisk         = "LimitDisk"
	CurrentDiskLimits = "CurrentDiskLimits"

	LimitMemory         = "LimitMemory"
	CurrentMemoryLimits = "CurrentMemoryLimits"

	NetIn  = "NetIn"
	NetOut = "NetOut"

	Run    = "Run"
	Attach = "Attach"

	Properties  = "Properties"
	Property    = "Property"
	SetProperty = "SetProperty"

	Metrics = "Metrics"

	RemoveProperty = "RemoveProperty"
)

Variables

View Source
var Routes = rata.Routes{
	{Path: "/ping", Method: "GET", Name: Ping},
	{Path: "/capacity", Method: "GET", Name: Capacity},

	{Path: "/containers", Method: "GET", Name: List},
	{Path: "/containers", Method: "POST", Name: Create},

	{Path: "/containers/:handle/info", Method: "GET", Name: Info},
	{Path: "/containers/bulk_info", Method: "GET", Name: BulkInfo},
	{Path: "/containers/bulk_metrics", Method: "GET", Name: BulkMetrics},

	{Path: "/containers/:handle", Method: "DELETE", Name: Destroy},
	{Path: "/containers/:handle/stop", Method: "PUT", Name: Stop},

	{Path: "/containers/:handle/files", Method: "PUT", Name: StreamIn},
	{Path: "/containers/:handle/files", Method: "GET", Name: StreamOut},

	{Path: "/containers/:handle/limits/bandwidth", Method: "PUT", Name: LimitBandwidth},
	{Path: "/containers/:handle/limits/bandwidth", Method: "GET", Name: CurrentBandwidthLimits},

	{Path: "/containers/:handle/limits/cpu", Method: "PUT", Name: LimitCPU},
	{Path: "/containers/:handle/limits/cpu", Method: "GET", Name: CurrentCPULimits},

	{Path: "/containers/:handle/limits/disk", Method: "PUT", Name: LimitDisk},
	{Path: "/containers/:handle/limits/disk", Method: "GET", Name: CurrentDiskLimits},

	{Path: "/containers/:handle/limits/memory", Method: "PUT", Name: LimitMemory},
	{Path: "/containers/:handle/limits/memory", Method: "GET", Name: CurrentMemoryLimits},

	{Path: "/containers/:handle/net/in", Method: "POST", Name: NetIn},
	{Path: "/containers/:handle/net/out", Method: "POST", Name: NetOut},

	{Path: "/containers/:handle/processes/:pid/attaches/:streamid/stdout", Method: "GET", Name: Stdout},
	{Path: "/containers/:handle/processes/:pid/attaches/:streamid/stderr", Method: "GET", Name: Stderr},
	{Path: "/containers/:handle/processes", Method: "POST", Name: Run},
	{Path: "/containers/:handle/processes/:pid", Method: "GET", Name: Attach},

	{Path: "/containers/:handle/properties", Method: "GET", Name: Properties},
	{Path: "/containers/:handle/properties/:key", Method: "GET", Name: Property},
	{Path: "/containers/:handle/properties/:key", Method: "PUT", Name: SetProperty},
	{Path: "/containers/:handle/properties/:key", Method: "DELETE", Name: RemoveProperty},

	{Path: "/containers/:handle/metrics", Method: "GET", Name: Metrics},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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