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 107 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/manager/allocator
  60. github.com/docker/swarmkit/manager/controlapi
  61. github.com/docker/swarmkit/manager/dispatcher
  62. github.com/docker/swarmkit/manager/logbroker
  63. github.com/docker/swarmkit/manager/orchestrator
  64. github.com/docker/swarmkit/manager/resourceapi
  65. github.com/docker/swarmkit/manager/state/raft/testutils
  66. github.com/gdevillele/swarmkit/ca
  67. github.com/jefferai/swarmkit/ca
  68. github.com/jefferai/swarmkit/ca/testutils
  69. github.com/jefferai/swarmkit/manager/allocator
  70. github.com/jefferai/swarmkit/manager/controlapi
  71. github.com/jefferai/swarmkit/manager/dispatcher
  72. github.com/jefferai/swarmkit/manager/orchestrator
  73. github.com/jefferai/swarmkit/manager/state/raft/testutils
  74. github.com/jlhawn/swarmkit/agent/testutils
  75. github.com/jlhawn/swarmkit/ca
  76. github.com/jlhawn/swarmkit/ca/testutils
  77. github.com/jlhawn/swarmkit/integration
  78. github.com/jlhawn/swarmkit/manager/controlapi
  79. github.com/jlhawn/swarmkit/manager/dispatcher
  80. github.com/jlhawn/swarmkit/manager/logbroker
  81. github.com/jlhawn/swarmkit/manager/orchestrator
  82. github.com/jlhawn/swarmkit/manager/resourceapi
  83. github.com/jlhawn/swarmkit/manager/state/raft/testutils
  84. github.com/mattoddie/swarmkit/ca
  85. github.com/mattoddie/swarmkit/ca/testutils
  86. github.com/mattoddie/swarmkit/manager/allocator
  87. github.com/mattoddie/swarmkit/manager/controlapi
  88. github.com/mattoddie/swarmkit/manager/dispatcher
  89. github.com/mattoddie/swarmkit/manager/orchestrator
  90. github.com/mattoddie/swarmkit/manager/state/raft
  91. github.com/mattoddie/swarmkit/manager/state/raft/testutils
  92. github.com/mgoelzer/swarmkit/ca
  93. github.com/mgoelzer/swarmkit/ca/testutils
  94. github.com/mgoelzer/swarmkit/manager/allocator
  95. github.com/mgoelzer/swarmkit/manager/controlapi
  96. github.com/mgoelzer/swarmkit/manager/dispatcher
  97. github.com/mgoelzer/swarmkit/manager/orchestrator
  98. github.com/mgoelzer/swarmkit/manager/state/raft
  99. github.com/mgoelzer/swarmkit/manager/state/raft/testutils
  100. github.com/stevvooe/swarmkit/ca
  101. github.com/stevvooe/swarmkit/ca/testutils
  102. github.com/stevvooe/swarmkit/manager/allocator
  103. github.com/stevvooe/swarmkit/manager/controlapi
  104. github.com/stevvooe/swarmkit/manager/dispatcher
  105. github.com/stevvooe/swarmkit/manager/orchestrator
  106. github.com/stevvooe/swarmkit/manager/state/raft
  107. github.com/stevvooe/swarmkit/manager/state/raft/testutils

Imported only in test by 51 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/jefferai/swarmkit/agent
  33. github.com/jefferai/swarmkit/agent/exec/container
  34. github.com/jefferai/swarmkit/manager/scheduler
  35. github.com/jefferai/swarmkit/manager/state/store
  36. github.com/jlhawn/swarmkit/agent
  37. github.com/jlhawn/swarmkit/agent/exec/dockerapi
  38. github.com/jlhawn/swarmkit/manager/orchestrator/replicated
  39. github.com/jlhawn/swarmkit/manager/scheduler
  40. github.com/jlhawn/swarmkit/manager/state/store
  41. github.com/jlhawn/swarmkit/node
  42. github.com/mattoddie/swarmkit/agent
  43. github.com/mattoddie/swarmkit/agent/exec/container
  44. github.com/mattoddie/swarmkit/manager/scheduler
  45. github.com/mattoddie/swarmkit/manager/state/store
  46. github.com/mgoelzer/swarmkit/agent/exec/container
  47. github.com/mgoelzer/swarmkit/manager/scheduler
  48. github.com/mgoelzer/swarmkit/manager/state/store
  49. github.com/stevvooe/swarmkit/agent/exec/container
  50. github.com/stevvooe/swarmkit/manager/scheduler
  51. github.com/stevvooe/swarmkit/manager/state/store