policy.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2019 Yunion
  2. //
  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. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package service
  15. import (
  16. _ "yunion.io/x/onecloud/pkg/cloudevent/policy"
  17. compute "yunion.io/x/onecloud/pkg/compute/policy"
  18. image "yunion.io/x/onecloud/pkg/image/policy"
  19. keystone "yunion.io/x/onecloud/pkg/keystone/policy"
  20. logger "yunion.io/x/onecloud/pkg/logger/policy"
  21. notify "yunion.io/x/onecloud/pkg/notify/policy"
  22. yunionconf "yunion.io/x/onecloud/pkg/yunionconf/policy"
  23. )
  24. func InitDefaultPolicy() {
  25. compute.Init()
  26. image.Init()
  27. keystone.Init()
  28. logger.Init()
  29. notify.Init()
  30. yunionconf.Init()
  31. }