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 59 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/abronan/swarmkit/ca
  9. github.com/abronan/swarmkit/ca/testutils
  10. github.com/abronan/swarmkit/manager/allocator
  11. github.com/abronan/swarmkit/manager/controlapi
  12. github.com/abronan/swarmkit/manager/dispatcher
  13. github.com/abronan/swarmkit/manager/orchestrator
  14. github.com/abronan/swarmkit/manager/state/raft
  15. github.com/abronan/swarmkit/manager/state/raft/testutils
  16. github.com/aduermael/swarmkit/ca
  17. github.com/allencloud/swarmkit/ca
  18. github.com/aluzzardi/swarmkit/ca
  19. github.com/aluzzardi/swarmkit/ca/testutils
  20. github.com/aluzzardi/swarmkit/manager/allocator
  21. github.com/aluzzardi/swarmkit/manager/controlapi
  22. github.com/aluzzardi/swarmkit/manager/dispatcher
  23. github.com/aluzzardi/swarmkit/manager/orchestrator
  24. github.com/aluzzardi/swarmkit/manager/state/raft
  25. github.com/docker/libswarm/ca
  26. github.com/docker/swarmkit/ca
  27. github.com/docker/swarmkit/ca/testutils
  28. github.com/docker/swarmkit/manager/allocator
  29. github.com/docker/swarmkit/manager/controlapi
  30. github.com/docker/swarmkit/manager/dispatcher
  31. github.com/docker/swarmkit/manager/logbroker
  32. github.com/docker/swarmkit/manager/orchestrator
  33. github.com/docker/swarmkit/manager/resourceapi
  34. github.com/docker/swarmkit/manager/state/raft/testutils
  35. github.com/gdevillele/swarmkit/ca
  36. github.com/jefferai/swarmkit/ca
  37. github.com/jlhawn/swarmkit/ca
  38. github.com/mattoddie/swarmkit/ca
  39. github.com/mattoddie/swarmkit/ca/testutils
  40. github.com/mattoddie/swarmkit/manager/allocator
  41. github.com/mattoddie/swarmkit/manager/controlapi
  42. github.com/mattoddie/swarmkit/manager/dispatcher
  43. github.com/mattoddie/swarmkit/manager/orchestrator
  44. github.com/mattoddie/swarmkit/manager/state/raft
  45. github.com/mattoddie/swarmkit/manager/state/raft/testutils
  46. github.com/mgoelzer/swarmkit/ca
  47. github.com/mgoelzer/swarmkit/ca/testutils
  48. github.com/mgoelzer/swarmkit/manager/allocator
  49. github.com/mgoelzer/swarmkit/manager/controlapi
  50. github.com/mgoelzer/swarmkit/manager/dispatcher
  51. github.com/mgoelzer/swarmkit/manager/orchestrator
  52. github.com/mgoelzer/swarmkit/manager/state/raft
  53. github.com/stevvooe/swarmkit/ca
  54. github.com/stevvooe/swarmkit/ca/testutils
  55. github.com/stevvooe/swarmkit/manager/allocator
  56. github.com/stevvooe/swarmkit/manager/controlapi
  57. github.com/stevvooe/swarmkit/manager/dispatcher
  58. github.com/stevvooe/swarmkit/manager/orchestrator
  59. github.com/stevvooe/swarmkit/manager/state/raft

Imported only in test by 28 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/allencloud/swarmkit/agent
  8. github.com/aluzzardi/swarmkit/agent/exec/container
  9. github.com/aluzzardi/swarmkit/manager/scheduler
  10. github.com/aluzzardi/swarmkit/manager/state/store
  11. github.com/docker/libswarm/agent
  12. github.com/docker/swarmkit/agent
  13. github.com/docker/swarmkit/agent/exec/container
  14. github.com/docker/swarmkit/manager/orchestrator/replicated
  15. github.com/docker/swarmkit/manager/scheduler
  16. github.com/docker/swarmkit/manager/state/store
  17. github.com/jefferai/swarmkit/agent
  18. github.com/jlhawn/swarmkit/agent
  19. github.com/mattoddie/swarmkit/agent
  20. github.com/mattoddie/swarmkit/agent/exec/container
  21. github.com/mattoddie/swarmkit/manager/scheduler
  22. github.com/mattoddie/swarmkit/manager/state/store
  23. github.com/mgoelzer/swarmkit/agent/exec/container
  24. github.com/mgoelzer/swarmkit/manager/scheduler
  25. github.com/mgoelzer/swarmkit/manager/state/store
  26. github.com/stevvooe/swarmkit/agent/exec/container
  27. github.com/stevvooe/swarmkit/manager/scheduler
  28. github.com/stevvooe/swarmkit/manager/state/store