mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-05-14 18:43:34 +00:00
35 lines
706 B
Go
35 lines
706 B
Go
package client
|
|
|
|
import "github.com/docker/libnetwork/sandbox"
|
|
|
|
/***********
|
|
Resources
|
|
************/
|
|
|
|
// networkResource is the body of the "get network" http response message
|
|
type networkResource struct {
|
|
Name string
|
|
ID string
|
|
Type string
|
|
Endpoints []*endpointResource
|
|
}
|
|
|
|
// endpointResource is the body of the "get endpoint" http response message
|
|
type endpointResource struct {
|
|
Name string
|
|
ID string
|
|
Network string
|
|
Info sandbox.Info
|
|
}
|
|
|
|
/***********
|
|
Body types
|
|
************/
|
|
|
|
// networkCreate is the expected body of the "create network" http request message
|
|
type networkCreate struct {
|
|
Name string
|
|
NetworkType string
|
|
Options map[string]interface{}
|
|
}
|