runtime.go 925 B

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