github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/api/types/swarm/runtime.go (about) 1 package swarm // import "github.com/demonoid81/moby/api/types/swarm" 2 3 // RuntimeType is the type of runtime used for the TaskSpec 4 type RuntimeType string 5 6 // RuntimeURL is the proto type url 7 type RuntimeURL string 8 9 const ( 10 // RuntimeContainer is the container based runtime 11 RuntimeContainer RuntimeType = "container" 12 // RuntimePlugin is the plugin based runtime 13 RuntimePlugin RuntimeType = "plugin" 14 // RuntimeNetworkAttachment is the network attachment runtime 15 RuntimeNetworkAttachment RuntimeType = "attachment" 16 17 // RuntimeURLContainer is the proto url for the container type 18 RuntimeURLContainer RuntimeURL = "types.docker.com/RuntimeContainer" 19 // RuntimeURLPlugin is the proto url for the plugin type 20 RuntimeURLPlugin RuntimeURL = "types.docker.com/RuntimePlugin" 21 ) 22 23 // NetworkAttachmentSpec represents the runtime spec type for network 24 // attachment tasks 25 type NetworkAttachmentSpec struct { 26 ContainerID string 27 }