Documentation ¶
Index ¶
- Constants
- Variables
- type CloudTrail
- func (p *CloudTrail) GetAPIInfo(api string) *base.ApiInfo
- func (p *CloudTrail) GetServiceInfo() *base.ServiceInfo
- func (p *CloudTrail) LookupEvents(req *LookupEventsReq) (*LookupEventsResp, int, error)
- func (p *CloudTrail) SetHost(host string)
- func (p *CloudTrail) SetRegion(region string)
- func (p *CloudTrail) SetSchema(schema string)
- type EventList
- type LookupCondition
- type LookupEventsReq
- type LookupEventsResp
- type NullResultResp
- type TrailEvent
Constants ¶
View Source
const ( DefaultRegion = "cn-north-1" ServiceVersion20210901 = "2021-09-01" ServiceName = "cloud_trail" )
Variables ¶
View Source
var ( ServiceInfo = &base.ServiceInfo{ Timeout: 5 * time.Second, Host: "open.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "LookupEvents": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"LookupEvents"}, "Version": []string{ServiceVersion20210901}, }, }, } )
View Source
var DefaultInstance = NewInstance()
DefaultInstance 默认的实例
Functions ¶
This section is empty.
Types ¶
type CloudTrail ¶
CloudTrail .
func (*CloudTrail) GetAPIInfo ¶
func (p *CloudTrail) GetAPIInfo(api string) *base.ApiInfo
GetAPIInfo interface
func (*CloudTrail) GetServiceInfo ¶
func (p *CloudTrail) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface
func (*CloudTrail) LookupEvents ¶
func (p *CloudTrail) LookupEvents(req *LookupEventsReq) (*LookupEventsResp, int, error)
type EventList ¶
type EventList struct { NextToken string Trails []*TrailEvent }
type LookupCondition ¶
type LookupEventsReq ¶
type LookupEventsReq struct { NextToken string `json:",omitempty"` MaxResults int `json:",omitempty"` StartTime int64 `json:",omitempty"` EndTime int64 `json:",omitempty"` LookupConditions []LookupCondition `json:",omitempty"` }
events
type LookupEventsResp ¶
type LookupEventsResp struct { ResponseMetadata *base.ResponseMetadata Result *EventList `json:",omitempty"` }
type NullResultResp ¶
type NullResultResp struct {
ResponseMetadata *base.ResponseMetadata
}
Click to show internal directories.
Click to hide internal directories.