You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.go 1.3 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. Copyright 2021 The KubeEdge 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 constants
  14. const (
  15. // ServerRootPath is the root path of server
  16. ServerRootPath = "sedna"
  17. // DataBaseURL is url of database
  18. DataBaseURL = "/var/lib/sedna/database.db"
  19. // WSScheme is the scheme of websocket
  20. WSScheme = "ws"
  21. // WSHeaderNodeName is the name of header of websocket
  22. WSHeaderNodeName = "Node-Name"
  23. // GMAddressENV is the env name of address of GM
  24. GMAddressENV = "GM_ADDRESS"
  25. // NodeNameENV is the env of name of node of LC
  26. NodeNameENV = "NODENAME"
  27. // HostNameENV is the env of name of host
  28. HostNameENV = "HOSTNAME"
  29. // RootFSMountDirENV is the env of dir of mount
  30. RootFSMountDirENV = "ROOTFS_MOUNT_DIR"
  31. // BindPortENV is the env of binding port
  32. BindPortENV = "BIND_PORT"
  33. )