Files
cloudpods/pkg/apis/cloudevent/cloudevent_const.go
2020-06-21 11:30:01 +08:00

52 lines
2.5 KiB
Go

// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package cloudevent
import "yunion.io/x/onecloud/pkg/apis"
const (
SERVICE_TYPE = apis.SERVICE_TYPE_CLOUDEVENT
CLOUD_EVENT_SERVICE_COMPUTE = "compute"
CLOUD_EVENT_SERVICE_UNKNOWN = "unknown"
CLOUD_EVENT_RESOURCE_TYPE_SERVER = "server"
CLOUD_EVENT_RESOURCE_TYPE_BUCKET = "bucket"
CLOUD_EVENT_RESOURCE_TYPE_DBINSTANCEACCOUNT = "dbinstanceaccount"
CLOUD_EVENT_RESOURCE_TYPE_DBINSTANCEBACKUP = "dbinstancebackup"
CLOUD_EVENT_RESOURCE_TYPE_DBINSTANCEDATABASE = "dbinstancedatabase"
CLOUD_EVENT_RESOURCE_TYPE_DBINSTANCEPARAMETER = "dbinstanceparameter"
CLOUD_EVENT_RESOURCE_TYPE_DBINSTANCEPRIVILEGE = "dbinstanceprivilege"
CLOUD_EVENT_RESOURCE_TYPE_DBINSTANCE = "dbinstance"
CLOUD_EVENT_RESOURCE_TYPE_DISK = "disk"
CLOUD_EVENT_RESOURCE_TYPE_EIP = "eip"
CLOUD_EVENT_RESOURCE_TYPE_HOST = "host"
CLOUD_EVENT_RESOURCE_TYPE_IMAGE = "image"
CLOUD_EVENT_RESOURCE_TYPE_LOADBALANCERBACKENDGROUP = "loadbalancerbackendgroup"
CLOUD_EVENT_RESOURCE_TYPE_LOADBALANCERBACKEND = "loadbalancerbackend"
CLOUD_EVENT_RESOURCE_TYPE_LOADBALANCERLISTENERRULE = "loadbalancerlistenerrule"
CLOUD_EVENT_RESOURCE_TYPE_LOADBALANCERLISTENER = "loadbalancerlistener"
CLOUD_EVENT_RESOURCE_TYPE_LOADBALANCER = "loadbalancer"
CLOUD_EVENT_RESOURCE_TYPE_NATDENTRY = "natdentry"
CLOUD_EVENT_RESOURCE_TYPE_NATGATEWAY = "natgateway"
CLOUD_EVENT_RESOURCE_TYPE_NATSENTRY = "natsentry"
CLOUD_EVENT_RESOURCE_TYPE_NETWORKINTERFACE = "networkinterface"
CLOUD_EVENT_RESOURCE_TYPE_NETWORK = "network"
CLOUD_EVENT_RESOURCE_TYPE_SECGROUPCACHE = "secgroupcache"
CLOUD_EVENT_RESOURCE_TYPE_SNAPSHOTPOLICY = "snapshotpolicy"
CLOUD_EVENT_RESOURCE_TYPE_SNAPSHOT = "snapshot"
CLOUD_EVENT_RESOURCE_TYPE_VPC = "vpc"
)