cloudevent

package
v0.3.11-8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
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"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudeventListInput

type CloudeventListInput struct {
	apis.ModelBaseListInput
	apis.DomainizedResourceListInput

	compute.CloudenvResourceListInput

	// 服务类型
	Service []string `json:"service"`

	// 订阅
	Manager []string `json:"manager"`

	// 账号
	Account []string `json:"account"`

	// 操作类型
	Action []string `json:"action"`

	// 资源类别
	ResourceType []string `json:"resource_type"`

	// 执行状态
	Success *bool `json:"success"`

	// 操作日志起始时间
	Since time.Time `json:"since"`
	// 操作日志截止时间
	Until time.Time `json:"until"`
}

type SCloudevent

type SCloudevent struct {
	apis.SDomainizedResourceBase
	EventId         int64                `json:"event_id"`
	Name            string               `json:"name"`
	Service         string               `json:"service"`
	ResourceType    string               `json:"resource_type"`
	Action          string               `json:"action"`
	RequestId       string               `json:"request_id"`
	Request         jsonutils.JSONObject `json:"request"`
	Account         string               `json:"account"`
	Success         bool                 `json:"success"`
	CreatedAt       time.Time            `json:"created_at"`
	CloudproviderId string               `json:"cloudprovider_id"`
	Manager         string               `json:"manager"`
	Provider        string               `json:"provider"`
	Brand           string               `json:"brand"`
}

SCloudevent is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudevent/models.SCloudevent.

type SCloudprovider

type SCloudprovider struct {
	apis.SEnabledStatusStandaloneResourceBase
	apis.SProjectizedResourceBase
	SyncStatus string `json:"sync_status"`
	Provider   string `json:"provider"`
	Brand      string `json:"brand"`
}

SCloudprovider is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudevent/models.SCloudprovider.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL