redshift

package
v0.7.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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 Cluster

type Cluster struct {
	ID                               uint   `gorm:"primarykey"`
	AccountID                        string `neo:"unique"`
	Region                           string `neo:"unique"`
	AllowVersionUpgrade              *bool
	AutomatedSnapshotRetentionPeriod *int64
	AvailabilityZone                 *string
	ClusterAvailabilityStatus        *string
	ClusterCreateTime                *time.Time
	ClusterIdentifier                *string                        `neo:"unique"`
	ClusterNodes                     []*ClusterNode                 `gorm:"constraint:OnDelete:CASCADE;"`
	ClusterParameterGroups           []*ClusterParameterGroupStatus `gorm:"constraint:OnDelete:CASCADE;"`
	ClusterPublicKey                 *string
	ClusterRevisionNumber            *string
	ClusterSecurityGroups            []*ClusterSecurityGroupMembership `gorm:"constraint:OnDelete:CASCADE;"`

	ClusterSnapshotCopyStatusDestinationRegion             *string
	ClusterSnapshotCopyStatusManualSnapshotRetentionPeriod *int64
	ClusterSnapshotCopyStatusRetentionPeriod               *int64
	ClusterSnapshotCopyStatusSnapshotCopyGrantName         *string

	ClusterStatus          *string
	ClusterSubnetGroupName *string
	ClusterVersion         *string
	DBName                 *string

	DataTransferProgressCurrentRateInMegaBytesPerSecond    *float64
	DataTransferProgressDataTransferredInMegaBytes         *int64
	DataTransferProgressElapsedTimeInSeconds               *int64
	DataTransferProgressEstimatedTimeToCompletionInSeconds *int64
	DataTransferProgressStatus                             *string
	DataTransferProgressTotalDataInMegaBytes               *int64

	DeferredMaintenanceWindows []*ClusterDeferredMaintenanceWindow `gorm:"constraint:OnDelete:CASCADE;"`

	ElasticIpStatusElasticIp *string
	ElasticIpStatusStatus    *string

	ElasticResizeNumberOfNodeOptions *string
	Encrypted                        *bool

	EndpointAddress *string
	EndpointPort    *int64

	EnhancedVpcRouting                     *bool
	ExpectedNextSnapshotScheduleTime       *time.Time
	ExpectedNextSnapshotScheduleTimeStatus *string

	HsmStatusHsmClientCertificateIdentifier *string
	HsmStatusHsmConfigurationIdentifier     *string
	HsmStatusStatus                         *string

	IamRoles                       []*ClusterIamRole `gorm:"constraint:OnDelete:CASCADE;"`
	KmsKeyId                       *string
	MaintenanceTrackName           *string
	ManualSnapshotRetentionPeriod  *int64
	MasterUsername                 *string
	ModifyStatus                   *string
	NextMaintenanceWindowStartTime *time.Time
	NodeType                       *string
	NumberOfNodes                  *int64
	PendingActions                 []*ClusterPendingActions `gorm:"constraint:OnDelete:CASCADE;"`

	PendingModifiedValuesAutomatedSnapshotRetentionPeriod *int64
	PendingModifiedValuesClusterIdentifier                *string
	PendingModifiedValuesClusterType                      *string
	PendingModifiedValuesClusterVersion                   *string
	PendingModifiedValuesEncryptionType                   *string
	PendingModifiedValuesEnhancedVpcRouting               *bool
	PendingModifiedValuesMaintenanceTrackName             *string
	PendingModifiedValuesMasterUserPassword               *string
	PendingModifiedValuesNodeType                         *string
	PendingModifiedValuesNumberOfNodes                    *int64
	PendingModifiedValuesPubliclyAccessible               *bool

	PreferredMaintenanceWindow *string
	PubliclyAccessible         *bool

	ResizeInfoAllowCancelResize *bool
	ResizeInfoResizeType        *string

	RestoreStatusCurrentRestoreRateInMegaBytesPerSecond *float64
	RestoreStatusElapsedTimeInSeconds                   *int64
	RestoreStatusEstimatedTimeToCompletionInSeconds     *int64
	RestoreStatusProgressInMegaBytes                    *int64
	RestoreStatusSnapshotSizeInMegaBytes                *int64
	RestoreStatusStatus                                 *string

	SnapshotScheduleIdentifier *string
	SnapshotScheduleState      *string
	Tags                       []*ClusterTag `gorm:"constraint:OnDelete:CASCADE;"`
	VpcId                      *string
	VpcSecurityGroups          []*ClusterVpcSecurityGroupMembership `gorm:"constraint:OnDelete:CASCADE;"`
	// contains filtered or unexported fields
}

func (Cluster) TableName added in v0.3.8

func (Cluster) TableName() string

type ClusterConfig added in v0.7.0

type ClusterConfig struct {
	Filter string
}

type ClusterDeferredMaintenanceWindow

type ClusterDeferredMaintenanceWindow struct {
	ID                         uint   `gorm:"primarykey"`
	AccountID                  string `gorm:"-"`
	Region                     string `gorm:"-"`
	ClusterID                  uint   `neo:"ignore"`
	DeferMaintenanceEndTime    *time.Time
	DeferMaintenanceIdentifier *string
	DeferMaintenanceStartTime  *time.Time
}

func (ClusterDeferredMaintenanceWindow) TableName added in v0.3.8

type ClusterIamRole

type ClusterIamRole struct {
	ID          uint   `gorm:"primarykey"`
	AccountID   string `gorm:"-"`
	Region      string `gorm:"-"`
	ClusterID   uint   `neo:"ignore"`
	ApplyStatus *string
	IamRoleArn  *string
}

func (ClusterIamRole) TableName added in v0.3.8

func (ClusterIamRole) TableName() string

type ClusterNode

type ClusterNode struct {
	ID               uint   `gorm:"primarykey"`
	AccountID        string `gorm:"-"`
	Region           string `gorm:"-"`
	ClusterID        uint   `neo:"ignore"`
	NodeRole         *string
	PrivateIPAddress *string
	PublicIPAddress  *string
}

func (ClusterNode) TableName added in v0.3.8

func (ClusterNode) TableName() string

type ClusterParameterGroupStatus

type ClusterParameterGroupStatus struct {
	ID                         uint                      `gorm:"primarykey"`
	AccountID                  string                    `gorm:"-"`
	Region                     string                    `gorm:"-"`
	ClusterID                  uint                      `neo:"ignore"`
	ClusterParameterStatusList []*ClusterParameterStatus `gorm:"constraint:OnDelete:CASCADE;"`
	ParameterApplyStatus       *string
	ParameterGroupName         *string
}

func (ClusterParameterGroupStatus) TableName added in v0.3.8

func (ClusterParameterGroupStatus) TableName() string

type ClusterParameterStatus

type ClusterParameterStatus struct {
	ID                             uint   `gorm:"primarykey"`
	AccountID                      string `gorm:"-"`
	Region                         string `gorm:"-"`
	ClusterParameterGroupStatusID  uint   `neo:"ignore"`
	ParameterApplyErrorDescription *string
	ParameterApplyStatus           *string
	ParameterName                  *string
}

func (ClusterParameterStatus) TableName added in v0.3.8

func (ClusterParameterStatus) TableName() string

type ClusterPendingActions added in v0.7.0

type ClusterPendingActions struct {
	ID        uint `gorm:"primarykey"`
	ClusterID uint
	Value     *string
}

func (ClusterPendingActions) TableName added in v0.7.0

func (ClusterPendingActions) TableName() string

type ClusterSecurityGroupMembership

type ClusterSecurityGroupMembership struct {
	ID                       uint   `gorm:"primarykey"`
	AccountID                string `gorm:"-"`
	Region                   string `gorm:"-"`
	ClusterID                uint   `neo:"ignore"`
	ClusterSecurityGroupName *string
	Status                   *string
}

func (ClusterSecurityGroupMembership) TableName added in v0.3.8

type ClusterSubnetGroup added in v0.5.4

type ClusterSubnetGroup struct {
	ID        uint   `gorm:"primarykey"`
	AccountID string `neo:"unique"`
	Region    string `neo:"unique"`

	Name        *string `neo:"unique"`
	Description *string
	Status      *string
	Subnets     []*ClusterSubnetGroupSubnet `gorm:"constraint:OnDelete:CASCADE;"`
	Tags        []*ClusterSubnetGroupTag    `gorm:"constraint:OnDelete:CASCADE;"`
	VpcId       *string
}

func (ClusterSubnetGroup) TableName added in v0.5.4

func (ClusterSubnetGroup) TableName() string

type ClusterSubnetGroupSubnet added in v0.5.4

type ClusterSubnetGroupSubnet struct {
	ID                   uint   `gorm:"primarykey"`
	ClusterSubnetGroupID uint   `neo:"ignore"`
	AccountID            string `gorm:"-"`
	Region               string `gorm:"-"`

	AZName      *string
	AZPlatforms []*ClusterSubnetGroupSupportedPlatform `gorm:"constraint:OnDelete:CASCADE;"`
	Identifier  *string
	Status      *string
}

func (ClusterSubnetGroupSubnet) TableName added in v0.5.4

func (ClusterSubnetGroupSubnet) TableName() string

type ClusterSubnetGroupSupportedPlatform added in v0.5.4

type ClusterSubnetGroupSupportedPlatform struct {
	ID                         uint   `gorm:"primarykey"`
	ClusterSubnetGroupSubnetID uint   `neo:"ignore"`
	AccountID                  string `gorm:"-"`
	Region                     string `gorm:"-"`

	Name *string
}

func (ClusterSubnetGroupSupportedPlatform) TableName added in v0.5.4

type ClusterSubnetGroupTag added in v0.5.4

type ClusterSubnetGroupTag struct {
	ID                   uint   `gorm:"primarykey"`
	ClusterSubnetGroupID uint   `neo:"ignore"`
	AccountID            string `gorm:"-"`
	Region               string `gorm:"-"`

	Key   *string
	Value *string
}

func (ClusterSubnetGroupTag) TableName added in v0.5.4

func (ClusterSubnetGroupTag) TableName() string

type ClusterTag

type ClusterTag struct {
	ID        uint   `gorm:"primarykey"`
	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`
	ClusterID uint   `neo:"ignore"`
	Key       *string
	Value     *string
}

func (ClusterTag) TableName added in v0.3.8

func (ClusterTag) TableName() string

type ClusterVpcSecurityGroupMembership

type ClusterVpcSecurityGroupMembership struct {
	ID                 uint   `gorm:"primarykey"`
	AccountID          string `gorm:"-"`
	Region             string `gorm:"-"`
	ClusterID          uint   `neo:"ignore"`
	Status             *string
	VpcSecurityGroupId *string
}

func (ClusterVpcSecurityGroupMembership) TableName added in v0.3.8

Jump to

Keyboard shortcuts

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