cloudtrail

package
v1.0.120 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

type CloudTrail struct {
	Client *base.Client
}

CloudTrail .

func NewInstance

func NewInstance() *CloudTrail

NewInstance 创建一个实例

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)

func (*CloudTrail) SetHost

func (p *CloudTrail) SetHost(host string)

SetHost .

func (*CloudTrail) SetRegion

func (p *CloudTrail) SetRegion(region string)

SetRegion .

func (*CloudTrail) SetSchema

func (p *CloudTrail) SetSchema(schema string)

SetSchema .

type EventList

type EventList struct {
	NextToken string
	Trails    []*TrailEvent
}

type LookupCondition

type LookupCondition struct {
	LookupConditionKey   string
	LookupConditionValue string
}

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
}

type TrailEvent

type TrailEvent struct {
	EventID         string
	EventTime       string
	EventName       string
	RequestID       string
	SourceIPAddress string
	EventSource     string
	UserName        string
	AccessKeyID     string
	EventDetail     string
	Region          string
	ErrorCode       string
}

Jump to

Keyboard shortcuts

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