cloudtrail

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TrailTables = []interface{}{
	&Trail{},

	&EventSelector{},
}

Functions

func NewClient

func NewClient(session *session.Session, awsConfig *aws.Config, db *database.Database, log *zap.Logger,
	accountID string, region string) resource.ClientInterface

Types

type Client

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

func (*Client) CollectResource

func (c *Client) CollectResource(resource string, config interface{}) error

type EventSelector added in v0.7.6

type EventSelector struct {
	ID                      uint   `gorm:"primarykey"`
	TrailID                 uint   `neo:"ignore"`
	AccountID               string `gorm:"-"`
	Region                  string `gorm:"-"`
	IncludeManagementEvents *bool
	ReadWriteType           *string
}

func (EventSelector) TableName added in v0.7.6

func (EventSelector) TableName() string

type Trail

type Trail struct {
	ID                         uint `gorm:"primarykey"`
	AccountID                  string
	Region                     string
	CloudWatchLogsLogGroupArn  *string
	CloudWatchLogsLogGroupName *string
	CloudWatchLogsRoleArn      *string
	HasCustomEventSelectors    *bool
	HasInsightSelectors        *bool
	HomeRegion                 *string
	IncludeGlobalServiceEvents *bool
	IsMultiRegionTrail         *bool
	IsOrganizationTrail        *bool
	KmsKeyId                   *string
	LogFileValidationEnabled   *bool
	Name                       *string
	S3BucketName               *string
	S3KeyPrefix                *string
	SnsTopicARN                *string
	SnsTopicName               *string
	TrailARN                   *string          `neo:"unique"`
	EventSelectors             []*EventSelector `gorm:"constraint:OnDelete:CASCADE;"`
	IsLogging                  *bool

	// Status
	LatestCloudWatchLogsDeliveryError  *string
	LatestCloudWatchLogsDeliveryTime   *time.Time
	LatestDeliveryAttemptSucceeded     *string
	LatestDeliveryAttemptTime          *string
	LatestDeliveryError                *string
	LatestDeliveryTime                 *time.Time
	LatestDigestDeliveryError          *string
	LatestDigestDeliveryTime           *time.Time
	LatestNotificationAttemptSucceeded *string
	LatestNotificationAttemptTime      *string
	LatestNotificationError            *string
	LatestNotificationTime             *time.Time
	StartLoggingTime                   *time.Time
	StopLoggingTime                    *time.Time
	TimeLoggingStarted                 *string
	TimeLoggingStopped                 *string
	// contains filtered or unexported fields
}

func (Trail) TableName

func (Trail) TableName() string

Jump to

Keyboard shortcuts

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