clients

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSUserIdentity

type AWSUserIdentity struct {
	Type             string                         `json:"type"`
	PrincipalId      string                         `json:"principalId"`
	Arn              string                         `json:"arn"`
	AccountId        string                         `json:"accountId"`
	UserName         string                         `json:"userName"`
	AccessKeyId      string                         `json:"accessKeyId"`
	InvokedBy        string                         `json:"invokedBy"`
	SessionContext   *AWSUserIdentitySessionContext `json:"sessionContext"`
	IdentityProvider string                         `json:"identityProvider"`
}

type AWSUserIdentitySessionContext

type AWSUserIdentitySessionContext struct {
	Attributes          *AWSUserIdentitySessionContextAttributes          `json:"attributes"`
	SessionIssuer       *AWSUserIdentitySessionContextSessionIssuer       `json:"sessionIssuer"`
	Ec2RoleDelivery     string                                            `json:"ec2RoleDelivery"`
	WebIdFederationData *AWSUserIdentitySessionContextWebIdFederationData `json:"webIdFederationData"`
}

type AWSUserIdentitySessionContextAttributes

type AWSUserIdentitySessionContextAttributes struct {
	MfaAuthenticated string     `json:"mfaAuthenticated"`
	CreationDate     *time.Time `json:"creationDate"`
}

type AWSUserIdentitySessionContextSessionIssuer

type AWSUserIdentitySessionContextSessionIssuer struct {
	Type        string `json:"type"`
	PrincipalId string `json:"principalId"`
	Arn         string `json:"arn"`
	AccountId   string `json:"accountId"`
	UserName    string `json:"userName"`
}

type AWSUserIdentitySessionContextWebIdFederationData

type AWSUserIdentitySessionContextWebIdFederationData struct {
	FederatedProvider string                                                                `json:"federatedProvider"`
	Attributes        *AWSUserIdentitySessionContextWebIdFederationDataFederationAttributes `json:"attributes"`
}

type AWSUserIdentitySessionContextWebIdFederationDataFederationAttributes

type AWSUserIdentitySessionContextWebIdFederationDataFederationAttributes struct {
	AppId  string `json:"appId"`
	UserId string `json:"userId"`
}

type CloudTrailEventResource

type CloudTrailEventResource struct {
	ResourceType string `json:"resourceType"`
	ResourceName string `json:"resourceName"`
}

type CloudtrailClient

type CloudtrailClient struct {
	// contains filtered or unexported fields
}

func NewCloudtrailClient

func NewCloudtrailClient(region string, profile string) (client *CloudtrailClient, err error)

func (*CloudtrailClient) GetEvents

func (c *CloudtrailClient) GetEvents(startTime time.Time, eventsFilter *EventsFilter) ([]CloudtrailEvent, error)

type CloudtrailEvent

type CloudtrailEvent struct {
	ExternalId        string
	EventName         string
	EventSource       string
	EventTime         time.Time
	Username          string
	Resources         []CloudTrailEventResource
	UserIdentity      AWSUserIdentity
	SourceIpAddress   string
	UserAgent         string
	RequestParameters string
	ResponseElements  string
	EventCategory     string
}

type EventsFilter

type EventsFilter struct {
	EventName *string
}

Jump to

Keyboard shortcuts

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