top

Package identity provides functionality for generating and manager identifiers within swarm. This includes entity identification, such as that of Service, Task and Network but also cryptographically-secure Node identity.

Random Identifiers

Identifiers provided by this package are cryptographically-strong, random 128 bit numbers encoded in Base36. This method is preferred over UUID4 since it requires less storage and leverages the full 128 bits of entropy.

Generating an identifier is simple. Simply call the `NewID` function, check the error and proceed:

id, err := NewID()
if err != nil { /* ... handle it, please ... */ }

Imported by 117 package(s)

  1. github.com/FrenchBen/swarmkit/ca
  2. github.com/FrenchBen/swarmkit/ca/testutils
  3. github.com/FrenchBen/swarmkit/manager/allocator
  4. github.com/FrenchBen/swarmkit/manager/controlapi
  5. github.com/FrenchBen/swarmkit/manager/dispatcher
  6. github.com/FrenchBen/swarmkit/manager/orchestrator
  7. github.com/FrenchBen/swarmkit/manager/state/raft
  8. github.com/FrenchBen/swarmkit/manager/state/raft/testutils
  9. github.com/abronan/swarmkit/ca
  10. github.com/abronan/swarmkit/ca/testutils
  11. github.com/abronan/swarmkit/manager/allocator
  12. github.com/abronan/swarmkit/manager/controlapi
  13. github.com/abronan/swarmkit/manager/dispatcher
  14. github.com/abronan/swarmkit/manager/orchestrator
  15. github.com/abronan/swarmkit/manager/state/raft
  16. github.com/abronan/swarmkit/manager/state/raft/testutils
  17. github.com/aduermael/swarmkit/ca
  18. github.com/aduermael/swarmkit/ca/testutils
  19. github.com/aduermael/swarmkit/manager/allocator
  20. github.com/aduermael/swarmkit/manager/controlapi
  21. github.com/aduermael/swarmkit/manager/dispatcher
  22. github.com/aduermael/swarmkit/manager/orchestrator
  23. github.com/aduermael/swarmkit/manager/state/raft
  24. github.com/aduermael/swarmkit/manager/state/raft/testutils
  25. github.com/allencloud/swarmkit/ca
  26. github.com/allencloud/swarmkit/ca/testutils
  27. github.com/allencloud/swarmkit/integration
  28. github.com/allencloud/swarmkit/manager/controlapi
  29. github.com/allencloud/swarmkit/manager/dispatcher
  30. github.com/allencloud/swarmkit/manager/logbroker
  31. github.com/allencloud/swarmkit/manager/orchestrator
  32. github.com/allencloud/swarmkit/manager/resourceapi
  33. github.com/allencloud/swarmkit/manager/state/raft/testutils
  34. github.com/aluzzardi/swarmkit/ca
  35. github.com/aluzzardi/swarmkit/ca/testutils
  36. github.com/aluzzardi/swarmkit/integration
  37. github.com/aluzzardi/swarmkit/manager/allocator
  38. github.com/aluzzardi/swarmkit/manager/controlapi
  39. github.com/aluzzardi/swarmkit/manager/dispatcher
  40. github.com/aluzzardi/swarmkit/manager/logbroker
  41. github.com/aluzzardi/swarmkit/manager/orchestrator
  42. github.com/aluzzardi/swarmkit/manager/resourceapi
  43. github.com/aluzzardi/swarmkit/manager/state/raft
  44. github.com/aluzzardi/swarmkit/manager/state/raft/testutils
  45. github.com/docker/libswarm/agent/testutils
  46. github.com/docker/libswarm/ca
  47. github.com/docker/libswarm/ca/testutils
  48. github.com/docker/libswarm/integration
  49. github.com/docker/libswarm/manager/controlapi
  50. github.com/docker/libswarm/manager/dispatcher
  51. github.com/docker/libswarm/manager/logbroker
  52. github.com/docker/libswarm/manager/orchestrator
  53. github.com/docker/libswarm/manager/resourceapi
  54. github.com/docker/libswarm/manager/state/raft/testutils
  55. github.com/docker/libswarm/node
  56. github.com/docker/swarmkit/agent/testutils
  57. github.com/docker/swarmkit/ca
  58. github.com/docker/swarmkit/ca/testutils
  59. github.com/docker/swarmkit/cmd/external-ca-example
  60. github.com/docker/swarmkit/manager/allocator
  61. github.com/docker/swarmkit/manager/controlapi
  62. github.com/docker/swarmkit/manager/dispatcher
  63. github.com/docker/swarmkit/manager/logbroker
  64. github.com/docker/swarmkit/manager/orchestrator
  65. github.com/docker/swarmkit/manager/resourceapi
  66. github.com/docker/swarmkit/manager/state/raft/testutils
  67. github.com/gdevillele/swarmkit/ca
  68. github.com/gdevillele/swarmkit/ca/testutils
  69. github.com/gdevillele/swarmkit/integration
  70. github.com/gdevillele/swarmkit/manager/allocator
  71. github.com/gdevillele/swarmkit/manager/controlapi
  72. github.com/gdevillele/swarmkit/manager/dispatcher
  73. github.com/gdevillele/swarmkit/manager/logbroker
  74. github.com/gdevillele/swarmkit/manager/orchestrator
  75. github.com/gdevillele/swarmkit/manager/resourceapi
  76. github.com/gdevillele/swarmkit/manager/state/raft/testutils
  77. github.com/jefferai/swarmkit/ca
  78. github.com/jefferai/swarmkit/ca/testutils
  79. github.com/jefferai/swarmkit/manager/allocator
  80. github.com/jefferai/swarmkit/manager/controlapi
  81. github.com/jefferai/swarmkit/manager/dispatcher
  82. github.com/jefferai/swarmkit/manager/orchestrator
  83. github.com/jefferai/swarmkit/manager/state/raft/testutils
  84. github.com/jlhawn/swarmkit/agent/testutils
  85. github.com/jlhawn/swarmkit/ca
  86. github.com/jlhawn/swarmkit/ca/testutils
  87. github.com/jlhawn/swarmkit/integration
  88. github.com/jlhawn/swarmkit/manager/controlapi
  89. github.com/jlhawn/swarmkit/manager/dispatcher
  90. github.com/jlhawn/swarmkit/manager/logbroker
  91. github.com/jlhawn/swarmkit/manager/orchestrator
  92. github.com/jlhawn/swarmkit/manager/resourceapi
  93. github.com/jlhawn/swarmkit/manager/state/raft/testutils
  94. github.com/mattoddie/swarmkit/ca
  95. github.com/mattoddie/swarmkit/ca/testutils
  96. github.com/mattoddie/swarmkit/manager/allocator
  97. github.com/mattoddie/swarmkit/manager/controlapi
  98. github.com/mattoddie/swarmkit/manager/dispatcher
  99. github.com/mattoddie/swarmkit/manager/orchestrator
  100. github.com/mattoddie/swarmkit/manager/state/raft
  101. github.com/mattoddie/swarmkit/manager/state/raft/testutils
  102. github.com/mgoelzer/swarmkit/ca
  103. github.com/mgoelzer/swarmkit/ca/testutils
  104. github.com/mgoelzer/swarmkit/manager/allocator
  105. github.com/mgoelzer/swarmkit/manager/controlapi
  106. github.com/mgoelzer/swarmkit/manager/dispatcher
  107. github.com/mgoelzer/swarmkit/manager/orchestrator
  108. github.com/mgoelzer/swarmkit/manager/state/raft
  109. github.com/mgoelzer/swarmkit/manager/state/raft/testutils
  110. github.com/stevvooe/swarmkit/ca
  111. github.com/stevvooe/swarmkit/ca/testutils
  112. github.com/stevvooe/swarmkit/manager/allocator
  113. github.com/stevvooe/swarmkit/manager/controlapi
  114. github.com/stevvooe/swarmkit/manager/dispatcher
  115. github.com/stevvooe/swarmkit/manager/orchestrator
  116. github.com/stevvooe/swarmkit/manager/state/raft
  117. github.com/stevvooe/swarmkit/manager/state/raft/testutils

Imported only in test by 56 package(s)

  1. github.com/FrenchBen/swarmkit/agent/exec/container
  2. github.com/FrenchBen/swarmkit/manager/scheduler
  3. github.com/FrenchBen/swarmkit/manager/state/store
  4. github.com/abronan/swarmkit/agent/exec/container
  5. github.com/abronan/swarmkit/manager/scheduler
  6. github.com/abronan/swarmkit/manager/state/store
  7. github.com/aduermael/swarmkit/agent/exec/container
  8. github.com/aduermael/swarmkit/manager/scheduler
  9. github.com/aduermael/swarmkit/manager/state/store
  10. github.com/allencloud/swarmkit/agent
  11. github.com/allencloud/swarmkit/agent/exec/dockerapi
  12. github.com/allencloud/swarmkit/manager/orchestrator/replicated
  13. github.com/allencloud/swarmkit/manager/scheduler
  14. github.com/allencloud/swarmkit/manager/state/store
  15. github.com/allencloud/swarmkit/node
  16. github.com/aluzzardi/swarmkit/agent/exec/container
  17. github.com/aluzzardi/swarmkit/manager/orchestrator/replicated
  18. github.com/aluzzardi/swarmkit/manager/scheduler
  19. github.com/aluzzardi/swarmkit/manager/state/store
  20. github.com/aluzzardi/swarmkit/node
  21. github.com/docker/libswarm/agent
  22. github.com/docker/libswarm/agent/exec/dockerapi
  23. github.com/docker/libswarm/manager/orchestrator/taskreaper
  24. github.com/docker/libswarm/manager/scheduler
  25. github.com/docker/libswarm/manager/state/store
  26. github.com/docker/swarmkit/agent
  27. github.com/docker/swarmkit/agent/exec/container
  28. github.com/docker/swarmkit/agent/exec/dockerapi
  29. github.com/docker/swarmkit/manager/orchestrator/replicated
  30. github.com/docker/swarmkit/manager/scheduler
  31. github.com/docker/swarmkit/manager/state/store
  32. github.com/gdevillele/swarmkit/agent/exec/dockerapi
  33. github.com/gdevillele/swarmkit/manager/orchestrator/replicated
  34. github.com/gdevillele/swarmkit/manager/scheduler
  35. github.com/gdevillele/swarmkit/manager/state/store
  36. github.com/gdevillele/swarmkit/node
  37. github.com/jefferai/swarmkit/agent
  38. github.com/jefferai/swarmkit/agent/exec/container
  39. github.com/jefferai/swarmkit/manager/scheduler
  40. github.com/jefferai/swarmkit/manager/state/store
  41. github.com/jlhawn/swarmkit/agent
  42. github.com/jlhawn/swarmkit/agent/exec/dockerapi
  43. github.com/jlhawn/swarmkit/manager/orchestrator/replicated
  44. github.com/jlhawn/swarmkit/manager/scheduler
  45. github.com/jlhawn/swarmkit/manager/state/store
  46. github.com/jlhawn/swarmkit/node
  47. github.com/mattoddie/swarmkit/agent
  48. github.com/mattoddie/swarmkit/agent/exec/container
  49. github.com/mattoddie/swarmkit/manager/scheduler
  50. github.com/mattoddie/swarmkit/manager/state/store
  51. github.com/mgoelzer/swarmkit/agent/exec/container
  52. github.com/mgoelzer/swarmkit/manager/scheduler
  53. github.com/mgoelzer/swarmkit/manager/state/store
  54. github.com/stevvooe/swarmkit/agent/exec/container
  55. github.com/stevvooe/swarmkit/manager/scheduler
  56. github.com/stevvooe/swarmkit/manager/state/store