labels.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. Copyright 2020 Docker Compose CLI authors
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package compose
  14. const (
  15. // ProjectLabel allow to track resource related to a compose project
  16. ProjectLabel = "com.docker.compose.project"
  17. // ServiceLabel allow to track resource related to a compose service
  18. ServiceLabel = "com.docker.compose.service"
  19. // ConfigHashLabel stores configuration hash for a compose service
  20. ConfigHashLabel = "com.docker.compose.config-hash"
  21. // ContainerNumberLabel stores the container index of a replicated service
  22. ContainerNumberLabel = "com.docker.compose.container-number"
  23. // VolumeLabel allow to track resource related to a compose volume
  24. VolumeLabel = "com.docker.compose.volume"
  25. // NetworkLabel allow to track resource related to a compose network
  26. NetworkLabel = "com.docker.compose.network"
  27. // WorkingDirLabel stores absolute path to compose project working directory
  28. WorkingDirLabel = "com.docker.compose.project.working_dir"
  29. // ConfigFilesLabel stores absolute path to compose project configuration files
  30. ConfigFilesLabel = "com.docker.compose.project.config_files"
  31. // EnvironmentFileLabel stores absolute path to compose project env file set by `--env-file`
  32. EnvironmentFileLabel = "com.docker.compose.project.environment_file"
  33. // OneoffLabel stores value 'True' for one-off containers created by `compose run`
  34. OneoffLabel = "com.docker.compose.oneoff"
  35. // SlugLabel stores unique slug used for one-off container identity
  36. SlugLabel = "com.docker.compose.slug"
  37. // VersionLabel stores the compose tool version used to run application
  38. VersionLabel = "com.docker.compose.version"
  39. )