Documentation
¶
Index ¶
- func MigrateClusterSubnetGroups(db *gorm.DB) error
- func MigrateClusters(db *gorm.DB) error
- func NewClient(session *session.Session, awsConfig *aws.Config, db *gorm.DB, log *zap.Logger, ...) resource.ClientInterface
- type Client
- type Cluster
- type ClusterDeferredMaintenanceWindow
- type ClusterIamRole
- type ClusterNode
- type ClusterParameterGroupStatus
- type ClusterParameterStatus
- type ClusterSecurityGroupMembership
- type ClusterSubnetGroup
- type ClusterSubnetGroupSubnet
- type ClusterSubnetGroupSupportedPlatform
- type ClusterSubnetGroupTag
- type ClusterTag
- type ClusterVpcSecurityGroupMembership
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateClusterSubnetGroups ¶ added in v0.5.4
func MigrateClusters ¶ added in v0.5.1
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CollectResource ¶
type Cluster ¶
type Cluster struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
AllowVersionUpgrade *bool
AutomatedSnapshotRetentionPeriod *int64
AvailabilityZone *string
ClusterAvailabilityStatus *string
ClusterCreateTime *time.Time
ClusterIdentifier *string
ClusterNodes []*ClusterNode `gorm:"constraint:OnDelete:CASCADE;"`
ClusterParameterGroups []*ClusterParameterGroupStatus `gorm:"constraint:OnDelete:CASCADE;"`
ClusterPublicKey *string
ClusterRevisionNumber *string
ClusterSecurityGroups []*ClusterSecurityGroupMembership `gorm:"constraint:OnDelete:CASCADE;"`
ClusterSnapshotCopyStatus *redshift.ClusterSnapshotCopyStatus `gorm:"embedded;embeddedPrefix:cluster_snapshot_copy_status_"`
ClusterStatus *string
ClusterSubnetGroupName *string
ClusterVersion *string
DBName *string
DataTransferProgress *redshift.DataTransferProgress `gorm:"embedded;embeddedPrefix:data_transfer_progress_"`
DeferredMaintenanceWindows []*ClusterDeferredMaintenanceWindow `gorm:"constraint:OnDelete:CASCADE;"`
ElasticIpStatus *redshift.ElasticIpStatus `gorm:"embedded;embeddedPrefix:elastic_ip_status_"`
ElasticResizeNumberOfNodeOptions *string
Encrypted *bool
Endpoint *redshift.Endpoint `gorm:"embedded;embeddedPrefix:endpoint_"`
EnhancedVpcRouting *bool
ExpectedNextSnapshotScheduleTime *time.Time
ExpectedNextSnapshotScheduleTimeStatus *string
HsmStatus *redshift.HsmStatus `gorm:"embedded;embeddedPrefix:hsm_status_"`
IamRoles []*ClusterIamRole `gorm:"constraint:OnDelete:CASCADE;"`
KmsKeyId *string
MaintenanceTrackName *string
ManualSnapshotRetentionPeriod *int64
MasterUsername *string
ModifyStatus *string
NextMaintenanceWindowStartTime *time.Time
NodeType *string
NumberOfNodes *int64
PendingActions *string
PendingModifiedValues *redshift.PendingModifiedValues `gorm:"embedded;embeddedPrefix:pending_modified_values_"`
PreferredMaintenanceWindow *string
PubliclyAccessible *bool
ResizeInfo *redshift.ResizeInfo `gorm:"embedded;embeddedPrefix:resize_info_"`
RestoreStatus *redshift.RestoreStatus `gorm:"embedded;embeddedPrefix:restore_status_"`
SnapshotScheduleIdentifier *string
SnapshotScheduleState *string
Tags []*ClusterTag `gorm:"constraint:OnDelete:CASCADE;"`
VpcId *string
VpcSecurityGroups []*ClusterVpcSecurityGroupMembership `gorm:"constraint:OnDelete:CASCADE;"`
}
type ClusterDeferredMaintenanceWindow ¶
type ClusterDeferredMaintenanceWindow struct {
ID uint `gorm:"primarykey"`
ClusterID uint
DeferMaintenanceEndTime *time.Time
DeferMaintenanceIdentifier *string
DeferMaintenanceStartTime *time.Time
}
func (ClusterDeferredMaintenanceWindow) TableName ¶ added in v0.3.8
func (ClusterDeferredMaintenanceWindow) TableName() string
type ClusterIamRole ¶
type ClusterIamRole struct {
ID uint `gorm:"primarykey"`
ClusterID uint
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"`
ClusterID uint
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"`
ClusterID uint
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"`
ClusterParameterGroupStatusID uint
ParameterApplyErrorDescription *string
ParameterApplyStatus *string
ParameterName *string
}
func (ClusterParameterStatus) TableName ¶ added in v0.3.8
func (ClusterParameterStatus) TableName() string
type ClusterSecurityGroupMembership ¶
type ClusterSecurityGroupMembership struct {
ID uint `gorm:"primarykey"`
ClusterID uint
ClusterSecurityGroupName *string
Status *string
}
func (ClusterSecurityGroupMembership) TableName ¶ added in v0.3.8
func (ClusterSecurityGroupMembership) TableName() string
type ClusterSubnetGroup ¶ added in v0.5.4
type ClusterSubnetGroup struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
Name *string
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
AvailabilityZoneName *string
AvailabilityZoneSupportedPlatforms []*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
Name *string
}
func (ClusterSubnetGroupSupportedPlatform) TableName ¶ added in v0.5.4
func (ClusterSubnetGroupSupportedPlatform) TableName() string
type ClusterSubnetGroupTag ¶ added in v0.5.4
type ClusterSubnetGroupTag struct {
ID uint `gorm:"primarykey"`
ClusterSubnetGroupID uint
Key *string
Value *string
}
func (ClusterSubnetGroupTag) TableName ¶ added in v0.5.4
func (ClusterSubnetGroupTag) TableName() string
type ClusterTag ¶
func (ClusterTag) TableName ¶ added in v0.3.8
func (ClusterTag) TableName() string
type ClusterVpcSecurityGroupMembership ¶
type ClusterVpcSecurityGroupMembership struct {
ID uint `gorm:"primarykey"`
ClusterID uint
Status *string
VpcSecurityGroupId *string
}
func (ClusterVpcSecurityGroupMembership) TableName ¶ added in v0.3.8
func (ClusterVpcSecurityGroupMembership) TableName() string
Click to show internal directories.
Click to hide internal directories.