rds

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(session *session.Session, db *gorm.DB, log *zap.Logger,
	accountID string, region string) resource.ClientInterface

Types

type Certificate

type Certificate struct {
	ID                        uint `gorm:"primarykey"`
	AccountID                 string
	Region                    string
	CertificateArn            *string
	CertificateIdentifier     *string
	CertificateType           *string
	CustomerOverride          *bool
	CustomerOverrideValidTill *time.Time
	Thumbprint                *string
	ValidFrom                 *time.Time
	ValidTill                 *time.Time
}

type Client

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

func (*Client) Certificates

func (c *Client) Certificates(gConfig interface{}) error

func (*Client) Clusters

func (c *Client) Clusters(gConfig interface{}) error

func (*Client) CollectResource

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

type Cluster

type Cluster struct {
	ID                               uint `gorm:"primarykey"`
	AccountID                        string
	Region                           string
	ActivityStreamKinesisStreamName  *string
	ActivityStreamKmsKeyId           *string
	ActivityStreamMode               *string
	ActivityStreamStatus             *string
	AllocatedStorage                 *int64
	AssociatedRoles                  []*ClusterRole `gorm:"constraint:OnDelete:CASCADE;"`
	AvailabilityZones                *string
	BacktrackConsumedChangeRecords   *int64
	BacktrackWindow                  *int64
	BackupRetentionPeriod            *int64
	Capacity                         *int64
	CharacterSetName                 *string
	CloneGroupId                     *string
	ClusterCreateTime                *time.Time
	CopyTagsToSnapshot               *bool
	CrossAccountClone                *bool
	CustomEndpoints                  *string
	ClusterArn                       *string
	ClusterIdentifier                *string
	ClusterMembers                   []*ClusterMember            `gorm:"constraint:OnDelete:CASCADE;"`
	ClusterOptionGroupMemberships    []*ClusterOptionGroupStatus `gorm:"constraint:OnDelete:CASCADE;"`
	ClusterParameterGroup            *string
	SubnetGroup                      *string
	DatabaseName                     *string
	DbClusterResourceId              *string
	DeletionProtection               *bool
	DomainMemberships                []*ClusterDomainMembership `gorm:"constraint:OnDelete:CASCADE;"`
	EarliestBacktrackTime            *time.Time
	EarliestRestorableTime           *time.Time
	EnabledCloudwatchLogsExports     *string
	Endpoint                         *string
	Engine                           *string
	EngineMode                       *string
	EngineVersion                    *string
	GlobalWriteForwardingRequested   *bool
	GlobalWriteForwardingStatus      *string
	HostedZoneId                     *string
	HttpEndpointEnabled              *bool
	IAMDatabaseAuthenticationEnabled *bool
	KmsKeyId                         *string
	LatestRestorableTime             *time.Time
	MasterUsername                   *string
	MultiAZ                          *bool
	PercentProgress                  *string
	Port                             *int64
	PreferredBackupWindow            *string
	PreferredMaintenanceWindow       *string
	ReadReplicaIdentifiers           *string
	ReaderEndpoint                   *string
	ReplicationSourceIdentifier      *string
	ScalingConfigurationInfo         *rds.ScalingConfigurationInfo `gorm:"embedded;embeddedPrefix:scaling_configuration_info_"`
	Status                           *string
	StorageEncrypted                 *bool
	VpcSecurityGroups                []*ClusterVpcSecurityGroupMembership `gorm:"constraint:OnDelete:CASCADE;"`
}

type ClusterDomainMembership

type ClusterDomainMembership struct {
	ID          uint `gorm:"primarykey"`
	ClusterID   uint
	Domain      *string
	FQDN        *string
	IAMRoleName *string
	Status      *string
}

type ClusterMember

type ClusterMember struct {
	ID                          uint `gorm:"primarykey"`
	ClusterID                   uint
	ClusterParameterGroupStatus *string
	InstanceIdentifier          *string
	IsClusterWriter             *bool
	PromotionTier               *int64
}

type ClusterOptionGroupStatus

type ClusterOptionGroupStatus struct {
	ID                     uint `gorm:"primarykey"`
	ClusterID              uint
	ClusterOptionGroupName *string
	Status                 *string
}

type ClusterRole

type ClusterRole struct {
	ID          uint `gorm:"primarykey"`
	ClusterID   uint
	FeatureName *string
	RoleArn     *string
	Status      *string
}

type ClusterVpcSecurityGroupMembership

type ClusterVpcSecurityGroupMembership struct {
	ID                 uint `gorm:"primarykey"`
	ClusterID          uint
	Status             *string
	VpcSecurityGroupId *string
}

Jump to

Keyboard shortcuts

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