Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecoderRequest ¶
解析http.request中body参数到实体
func NewPrimary ¶
NewPrimary creates a new API router.
Types ¶
type Durafmt ¶
type Durafmt struct {
// contains filtered or unexported fields
}
Durafmt holds the parsed duration and the original input duration.
func ParseString ¶
ParseString creates a new *Durafmt struct from a string, returns error if input is invalid.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a swarmkit API server.
func (*Server) ListenAndServe ¶
ListenAndServe provide http rest api
func (*Server) SetHandler ¶
SetHandler is used to overwrite the HTTP handler for the API. This can be the api router or a reverse proxy.
Source Files ¶
- durafmt.go
- events.go
- handlers.go
- handlers_cluster.go
- handlers_network.go
- handlers_node.go
- handlers_service.go
- handlers_task.go
- parse_spec.go
- parse_spec_bind.go
- parse_spec_container.go
- parse_spec_network.go
- parse_spec_placement.go
- parse_spec_port.go
- parse_spec_resource.go
- parse_spec_restart.go
- parse_spec_update.go
- parse_spec_volume.go
- primary.go
- server.go
- spec.go
- utils.go
Click to show internal directories.
Click to hide internal directories.