Documentation ¶
Index ¶
- Variables
- func NewClient(db *database.Database, log *zap.Logger, projectID string) (resource.ClientInterface, error)
- type Client
- type DBInstance
- type DBInstanceAclEntry
- type DBInstanceDatabaseFlag
- type DBInstanceIpMapping
- type DBInstanceReplicaName
- type DBInstanceSettingsAuthorizedGaeApplication
- type DBInstanceSuspensionReason
Constants ¶
This section is empty.
Variables ¶
View Source
var DatabaseInstanceTables = []interface{}{ &DBInstance{}, &DBInstanceIpMapping{}, &DBInstanceDatabaseFlag{}, &DBInstanceAclEntry{}, }
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CollectResource ¶
type DBInstance ¶
type DBInstance struct { ID uint `gorm:"primarykey"` ProjectID string BackendType string ConnectionName string CurrentDiskSize int64 DatabaseVersion string DiskEncryptionConfigurationKind string DiskEncryptionConfigurationKmsKeyName string DiskEncryptionStatusKind string DiskEncryptionStatusKmsKeyVersionName string Etag string FailoverReplicaAvailable bool FailoverReplicaName string GceZone string InstanceType string IpAddresses []*DBInstanceIpMapping `gorm:"constraint:OnDelete:CASCADE;"` Ipv6Address string Kind string MasterInstanceName string MaxDiskSize int64 Name string OnPremisesConfigurationCaCertificate string OnPremisesConfigurationClientCertificate string OnPremisesConfigurationClientKey string OnPremisesConfigurationDumpFilePath string OnPremisesConfigurationHostPort string OnPremisesConfigurationKind string OnPremisesConfigurationPassword string OnPremisesConfigurationUsername string Project string Region string ReplicaConfigurationFailoverTarget bool ReplicaConfigurationKind string MysqlReplicaConfigurationCaCertificate string MysqlReplicaConfigurationClientCertificate string MysqlReplicaConfigurationClientKey string MysqlReplicaConfigurationConnectRetryInterval int64 MysqlReplicaConfigurationDumpFilePath string MysqlReplicaConfigurationKind string MysqlReplicaConfigurationMasterHeartbeatPeriod int64 MysqlReplicaConfigurationPassword string MysqlReplicaConfigurationSslCipher string MysqlReplicaConfigurationUsername string MysqlReplicaConfigurationVerifyServerCertificate bool ReplicaNames []*DBInstanceReplicaName `gorm:"constraint:OnDelete:CASCADE;"` RootPassword string ScheduledMaintenanceCanDefer bool ScheduledMaintenanceCanReschedule bool ScheduledMaintenanceStartTime string SelfLink string //ServerCaCertCert string ServerCaCertSerialNumber string ServerCaCertCommonName string ServerCaCertCreateTime string ServerCaCertExpirationTime string ServerCaCertInstance string ServerCaCertKind string ServerCaCertSelfLink string ServerCaCertSha1Fingerprint string ServiceAccountEmailAddress string SettingsActivationPolicy string SettingsAuthorizedGaeApplications []*DBInstanceSettingsAuthorizedGaeApplication `gorm:"constraint:OnDelete:CASCADE;"` SettingsAvailabilityType string SettingsBackupConfigurationBinaryLogEnabled bool SettingsBackupConfigurationEnabled bool SettingsBackupConfigurationKind string SettingsBackupConfigurationLocation string SettingsBackupConfigurationPointInTimeRecoveryEnabled bool SettingsBackupConfigurationReplicationLogArchivingEnabled bool SettingsBackupConfigurationStartTime string SettingsCrashSafeReplicationEnabled bool SettingsDataDiskSizeGb int64 SettingsDataDiskType string SettingsDatabaseFlags []*DBInstanceDatabaseFlag `gorm:"constraint:OnDelete:CASCADE;"` SettingsDatabaseReplicationEnabled bool SettingsIpConfigAuthorizedNetworks []*DBInstanceAclEntry `gorm:"constraint:OnDelete:CASCADE;"` SettingsIpConfigIpv4Enabled bool SettingsIpConfigPrivateNetwork string SettingsIpConfigRequireSsl bool SettingsKind string SettingsLocationPreferenceFollowGaeApplication string SettingsLocationPreferenceKind string SettingsLocationPreferenceZone string SettingsMaintenanceWindowDay int64 SettingsMaintenanceWindowHour int64 SettingsMaintenanceWindowKind string SettingsMaintenanceWindowUpdateTrack string SettingsPricingPlan string SettingsReplicationType string SettingsSettingsVersion int64 SettingsStorageAutoResize bool SettingsStorageAutoResizeLimit int64 SettingsTier string State string SuspensionReason []*DBInstanceSuspensionReason `gorm:"constraint:OnDelete:CASCADE;"` }
func (DBInstance) TableName ¶
func (DBInstance) TableName() string
type DBInstanceAclEntry ¶
type DBInstanceAclEntry struct { ID uint `gorm:"primarykey"` ProjectID string `gorm:"-"` DBInstanceID uint `neo:"ignore"` ExpirationTime string Kind string Name string Value string }
func (DBInstanceAclEntry) TableName ¶
func (DBInstanceAclEntry) TableName() string
type DBInstanceDatabaseFlag ¶
type DBInstanceDatabaseFlag struct { ID uint `gorm:"primarykey"` ProjectID string `gorm:"-"` DBInstanceID uint `neo:"ignore"` Name string Value string }
func (DBInstanceDatabaseFlag) TableName ¶
func (DBInstanceDatabaseFlag) TableName() string
type DBInstanceIpMapping ¶
type DBInstanceIpMapping struct { ID uint `gorm:"primarykey"` ProjectID string `gorm:"-"` DBInstanceID uint `neo:"ignore"` IpAddress string TimeToRetire string Type string }
func (DBInstanceIpMapping) TableName ¶
func (DBInstanceIpMapping) TableName() string
type DBInstanceReplicaName ¶
func (DBInstanceReplicaName) TableName ¶
func (DBInstanceReplicaName) TableName() string
type DBInstanceSettingsAuthorizedGaeApplication ¶
type DBInstanceSettingsAuthorizedGaeApplication struct { ID uint `gorm:"primarykey"` DBInstanceID uint Value string }
func (DBInstanceSettingsAuthorizedGaeApplication) TableName ¶
func (DBInstanceSettingsAuthorizedGaeApplication) TableName() string
type DBInstanceSuspensionReason ¶
type DBInstanceSuspensionReason struct { ID uint `gorm:"primarykey"` DBInstanceID uint Value string }
func (DBInstanceSuspensionReason) TableName ¶
func (DBInstanceSuspensionReason) TableName() string
Click to show internal directories.
Click to hide internal directories.