sql

package
v1.127.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AclEntriesMatch

func AclEntriesMatch(desired *api.AclEntry, actual *api.AclEntry) bool

func AclEntryListsMatch

func AclEntryListsMatch(desired []*api.AclEntry, actual []*api.AclEntry) bool

func ActiveDirectoryConfigsMatch added in v1.124.0

func ActiveDirectoryConfigsMatch(desired *api.SqlActiveDirectoryConfig, actual *api.SqlActiveDirectoryConfig) bool

func AdvancedMachineFeaturesMatch added in v1.124.0

func AdvancedMachineFeaturesMatch(desired *api.AdvancedMachineFeatures, actual *api.AdvancedMachineFeatures) bool

func ApplySQLInstanceGCPDefaults added in v1.125.0

func ApplySQLInstanceGCPDefaults(in *krm.SQLInstance, out *api.DatabaseInstance, actual *api.DatabaseInstance)

func BackupConfigurationsMatch added in v1.124.0

func BackupConfigurationsMatch(desired *api.BackupConfiguration, actual *api.BackupConfiguration) bool

func BackupRetentionSettingsMatch added in v1.124.0

func BackupRetentionSettingsMatch(desired *api.BackupRetentionSettings, actual *api.BackupRetentionSettings) bool

func CloneAllocatedIpRangeKRMToGCP added in v1.124.0

func CloneAllocatedIpRangeKRMToGCP(in *krm.SQLInstance) string

func CloneBinLogCoordinatesKRMToGCP added in v1.124.0

func CloneBinLogCoordinatesKRMToGCP(in *krm.SQLInstance) *api.BinLogCoordinates

func ClonePreferredSecondaryZoneKRMToGCP added in v1.124.0

func ClonePreferredSecondaryZoneKRMToGCP(in *krm.SQLInstance) string

func ClonePreferredZoneKRMToGCP added in v1.124.0

func ClonePreferredZoneKRMToGCP(in *krm.SQLInstance) string

func DataCacheConfigsMatch added in v1.124.0

func DataCacheConfigsMatch(desired *api.DataCacheConfig, actual *api.DataCacheConfig) bool

func DatabaseFlagListsMatch added in v1.124.0

func DatabaseFlagListsMatch(desired []*api.DatabaseFlags, actual []*api.DatabaseFlags) bool

func DatabaseFlagsMatch added in v1.124.0

func DatabaseFlagsMatch(desired *api.DatabaseFlags, actual *api.DatabaseFlags) bool

func DenyMaintenancePeriodListsMatch added in v1.124.0

func DenyMaintenancePeriodListsMatch(desired []*api.DenyMaintenancePeriod, actual []*api.DenyMaintenancePeriod) bool

func DenyMaintenancePeriodsMatch added in v1.124.0

func DenyMaintenancePeriodsMatch(desired *api.DenyMaintenancePeriod, actual *api.DenyMaintenancePeriod) bool

func DiskEncryptionConfigurationsMatch added in v1.124.0

func DiskEncryptionConfigurationsMatch(desired *api.DiskEncryptionConfiguration, actual *api.DiskEncryptionConfiguration) bool

func InsightsConfigsMatch added in v1.124.0

func InsightsConfigsMatch(desired *api.InsightsConfig, actual *api.InsightsConfig) bool

func InstanceActiveDirectoryConfigGCPToKRM added in v1.124.0

func InstanceActiveDirectoryConfigGCPToKRM(in *api.SqlActiveDirectoryConfig) *krm.InstanceActiveDirectoryConfig

func InstanceActiveDirectoryConfigKRMToGCP added in v1.124.0

func InstanceActiveDirectoryConfigKRMToGCP(in *krm.InstanceActiveDirectoryConfig) *api.SqlActiveDirectoryConfig

func InstanceAdvancedMachineFeaturesGCPToKRM added in v1.124.0

func InstanceAdvancedMachineFeaturesGCPToKRM(in *api.AdvancedMachineFeatures) *krm.InstanceAdvancedMachineFeatures

func InstanceAdvancedMachineFeaturesKRMToGCP added in v1.124.0

func InstanceAdvancedMachineFeaturesKRMToGCP(in *krm.InstanceAdvancedMachineFeatures) *api.AdvancedMachineFeatures

func InstanceAuditConfigBucketRefGCPToKRM added in v1.124.0

func InstanceAuditConfigBucketRefGCPToKRM(in string) *refs.StorageBucketRef

func InstanceAuditConfigBucketRefKRMToGCP added in v1.124.0

func InstanceAuditConfigBucketRefKRMToGCP(in *refs.StorageBucketRef) string

func InstanceAuthorizedNetworksGCPToKRM added in v1.123.0

func InstanceAuthorizedNetworksGCPToKRM(in []*api.AclEntry) []krm.InstanceAuthorizedNetworks

func InstanceAuthorizedNetworksKRMToGCP

func InstanceAuthorizedNetworksKRMToGCP(in []krm.InstanceAuthorizedNetworks) []*api.AclEntry

func InstanceBackupConfigurationGCPToKRM added in v1.124.0

func InstanceBackupConfigurationGCPToKRM(in *api.BackupConfiguration) *krm.InstanceBackupConfiguration

func InstanceBackupConfigurationKRMToGCP added in v1.124.0

func InstanceBackupConfigurationKRMToGCP(in *krm.InstanceBackupConfiguration) *api.BackupConfiguration

func InstanceBackupRetentionSettingsGCPToKRM added in v1.124.0

func InstanceBackupRetentionSettingsGCPToKRM(in *api.BackupRetentionSettings) *krm.InstanceBackupRetentionSettings

func InstanceBackupRetentionSettingsKRMToGCP added in v1.124.0

func InstanceBackupRetentionSettingsKRMToGCP(in *krm.InstanceBackupRetentionSettings) *api.BackupRetentionSettings

func InstanceDataCacheConfigGCPToKRM added in v1.124.0

func InstanceDataCacheConfigGCPToKRM(in *api.DataCacheConfig) *krm.InstanceDataCacheConfig

func InstanceDataCacheConfigKRMToGCP added in v1.124.0

func InstanceDataCacheConfigKRMToGCP(in *krm.InstanceDataCacheConfig) *api.DataCacheConfig

func InstanceDatabaseFlagsGCPToKRM added in v1.124.0

func InstanceDatabaseFlagsGCPToKRM(in []*api.DatabaseFlags) []krm.InstanceDatabaseFlags

func InstanceDatabaseFlagsKRMToGCP added in v1.124.0

func InstanceDatabaseFlagsKRMToGCP(in []krm.InstanceDatabaseFlags) []*api.DatabaseFlags

func InstanceDenyMaintenancePeriodsGCPToKRM added in v1.124.0

func InstanceDenyMaintenancePeriodsGCPToKRM(in []*api.DenyMaintenancePeriod) *krm.InstanceDenyMaintenancePeriod

func InstanceDenyMaintenancePeriodsKRMToGCP added in v1.124.0

func InstanceDenyMaintenancePeriodsKRMToGCP(in *krm.InstanceDenyMaintenancePeriod) []*api.DenyMaintenancePeriod

func InstanceEncryptionKMSCryptoKeyRefGCPToKRM added in v1.124.0

func InstanceEncryptionKMSCryptoKeyRefGCPToKRM(in *api.DiskEncryptionConfiguration) *refs.KMSCryptoKeyRef

func InstanceEncryptionKMSCryptoKeyRefKRMToGCP added in v1.124.0

func InstanceEncryptionKMSCryptoKeyRefKRMToGCP(in *refs.KMSCryptoKeyRef) *api.DiskEncryptionConfiguration

func InstanceInsightsConfigGCPToKRM added in v1.124.0

func InstanceInsightsConfigGCPToKRM(in *api.InsightsConfig) *krm.InstanceInsightsConfig

func InstanceInsightsConfigKRMToGCP added in v1.124.0

func InstanceInsightsConfigKRMToGCP(in *krm.InstanceInsightsConfig) *api.InsightsConfig

func InstanceIpConfigurationGCPToKRM added in v1.123.0

func InstanceIpConfigurationGCPToKRM(in *api.IpConfiguration) *krm.InstanceIpConfiguration

func InstanceIpConfigurationKRMToGCP

func InstanceIpConfigurationKRMToGCP(in *krm.InstanceIpConfiguration) *api.IpConfiguration

func InstanceLocationPreferenceGCPToKRM added in v1.123.0

func InstanceLocationPreferenceGCPToKRM(in *api.LocationPreference) *krm.InstanceLocationPreference

func InstanceLocationPreferenceKRMToGCP added in v1.123.0

func InstanceLocationPreferenceKRMToGCP(in *krm.InstanceLocationPreference) *api.LocationPreference

func InstanceMaintenanceWindowGCPToKRM added in v1.124.0

func InstanceMaintenanceWindowGCPToKRM(in *api.MaintenanceWindow) *krm.InstanceMaintenanceWindow

func InstanceMaintenanceWindowKRMToGCP added in v1.124.0

func InstanceMaintenanceWindowKRMToGCP(in *krm.InstanceMaintenanceWindow) *api.MaintenanceWindow

func InstanceMasterInstanceRefGCPToKRM added in v1.124.0

func InstanceMasterInstanceRefGCPToKRM(in string) *refs.SQLInstanceRef

func InstanceMasterInstanceRefKRMToGCP added in v1.124.0

func InstanceMasterInstanceRefKRMToGCP(in *refs.SQLInstanceRef) string

func InstanceMysqlReplicaConfigurationGCPToKRM added in v1.124.0

func InstanceMysqlReplicaConfigurationGCPToKRM(in *api.MySqlReplicaConfiguration) *krm.InstanceReplicaConfiguration

func InstanceMysqlReplicaConfigurationKRMToGCP added in v1.124.0

func InstanceMysqlReplicaConfigurationKRMToGCP(in *krm.InstanceReplicaConfiguration) *api.MySqlReplicaConfiguration

func InstancePasswordKRMToGCP added in v1.124.0

func InstancePasswordKRMToGCP(in *refsv1beta1secret.Legacy) string

func InstancePasswordValidationPolicyGCPToKRM added in v1.124.0

func InstancePasswordValidationPolicyGCPToKRM(in *api.PasswordValidationPolicy) *krm.InstancePasswordValidationPolicy

func InstancePasswordValidationPolicyKRMToGCP added in v1.124.0

func InstancePasswordValidationPolicyKRMToGCP(in *krm.InstancePasswordValidationPolicy) *api.PasswordValidationPolicy

func InstancePrivateNetworkRefKRMToGCP added in v1.124.0

func InstancePrivateNetworkRefKRMToGCP(in *refs.ComputeNetworkRef) string

func InstancePrivateNetworkRefRefGCPToKRM added in v1.124.0

func InstancePrivateNetworkRefRefGCPToKRM(in string) *refs.ComputeNetworkRef

func InstancePscConfigGCPToKRM added in v1.123.0

func InstancePscConfigGCPToKRM(in *api.PscConfig) []krm.InstancePscConfig

func InstancePscConfigKRMToGCP

func InstancePscConfigKRMToGCP(in []krm.InstancePscConfig) *api.PscConfig

func InstanceReplicaConfigurationGCPToKRM added in v1.124.0

func InstanceReplicaConfigurationGCPToKRM(in *api.ReplicaConfiguration) *krm.InstanceReplicaConfiguration

func InstanceReplicaConfigurationKRMToGCP added in v1.124.0

func InstanceReplicaConfigurationKRMToGCP(in *krm.InstanceReplicaConfiguration) *api.ReplicaConfiguration

func InstanceRootPasswordKRMToGCP added in v1.124.0

func InstanceRootPasswordKRMToGCP(in *refsv1beta1secret.Legacy) string

func InstanceSettingsGCPToKRM added in v1.124.0

func InstanceSettingsGCPToKRM(in *api.Settings) krm.InstanceSettings

func InstanceSettingsKRMToGCP added in v1.124.0

func InstanceSettingsKRMToGCP(in krm.InstanceSettings, labels map[string]string) *api.Settings

func InstanceSqlServerAuditConfigGCPToKRM added in v1.124.0

func InstanceSqlServerAuditConfigGCPToKRM(in *api.SqlServerAuditConfig) *krm.InstanceSqlServerAuditConfig

func InstanceSqlServerAuditConfigKRMToGCP added in v1.124.0

func InstanceSqlServerAuditConfigKRMToGCP(in *krm.InstanceSqlServerAuditConfig) *api.SqlServerAuditConfig

func InstancesMatch added in v1.124.0

func InstancesMatch(desired *api.DatabaseInstance, actual *api.DatabaseInstance) bool

func IpConfigurationsMatch

func IpConfigurationsMatch(desired *api.IpConfiguration, actual *api.IpConfiguration) bool

func LocationPreferencesMatch added in v1.123.0

func LocationPreferencesMatch(desired *api.LocationPreference, actual *api.LocationPreference) bool

func MaintenanceWindowsMatch added in v1.124.0

func MaintenanceWindowsMatch(desired *api.MaintenanceWindow, actual *api.MaintenanceWindow) bool

func MysqlReplicaConfigurationsMatch added in v1.124.0

func MysqlReplicaConfigurationsMatch(desired *api.MySqlReplicaConfiguration, actual *api.MySqlReplicaConfiguration) bool

func PasswordValidationPoliciesMatch added in v1.124.0

func PasswordValidationPoliciesMatch(desired *api.PasswordValidationPolicy, actual *api.PasswordValidationPolicy) bool

func PointersMatch

func PointersMatch[T any](desired *T, actual *T) bool

func PscConfigsMatch

func PscConfigsMatch(desired *api.PscConfig, actual *api.PscConfig) bool

func ReplicaConfigurationsMatch added in v1.124.0

func ReplicaConfigurationsMatch(desired *api.ReplicaConfiguration, actual *api.ReplicaConfiguration) bool

func ResolveSQLInstanceRefs added in v1.125.0

func ResolveSQLInstanceRefs(ctx context.Context, kube client.Reader, obj *krm.SQLInstance) error

func SQLInstanceCloneKRMToGCP added in v1.124.0

func SQLInstanceCloneKRMToGCP(in *krm.SQLInstance) (*api.InstancesCloneRequest, error)

func SQLInstanceFirstIpAddressGCPToKRM added in v1.124.0

func SQLInstanceFirstIpAddressGCPToKRM(in []*api.IpMapping) *string

func SQLInstanceGCPToKRM

func SQLInstanceGCPToKRM(in *api.DatabaseInstance) (*krm.SQLInstance, error)

func SQLInstanceIpAddressesGCPToKRM added in v1.124.0

func SQLInstanceIpAddressesGCPToKRM(in []*api.IpMapping) []krm.InstanceIpAddressStatus

func SQLInstanceKRMToGCP

func SQLInstanceKRMToGCP(in *krm.SQLInstance, actual *api.DatabaseInstance) (*api.DatabaseInstance, error)

func SQLInstancePrivateIpAddressGCPToKRM added in v1.124.0

func SQLInstancePrivateIpAddressGCPToKRM(in []*api.IpMapping) *string

func SQLInstancePublicIpAddressGCPToKRM added in v1.124.0

func SQLInstancePublicIpAddressGCPToKRM(in []*api.IpMapping) *string

func SQLInstanceServerCaCertGCPToKRM added in v1.124.0

func SQLInstanceServerCaCertGCPToKRM(in *api.SslCert) *krm.InstanceServerCaCertStatus

func SQLInstanceStatusGCPToKRM added in v1.124.0

func SQLInstanceStatusGCPToKRM(in *api.DatabaseInstance) (*krm.SQLInstanceStatus, error)

func SettingsMatch added in v1.124.0

func SettingsMatch(desired *api.Settings, actual *api.Settings) bool

func SqlServerAuditConfigsMatch added in v1.124.0

func SqlServerAuditConfigsMatch(desired *api.SqlServerAuditConfig, actual *api.SqlServerAuditConfig) bool

func StorageAutoResizesMatch added in v1.125.0

func StorageAutoResizesMatch(desired *bool, actual *bool) bool

Types

type AclEntriesByName added in v1.125.0

type AclEntriesByName []*api.AclEntry

AclEntriesByName implements sort.Interface for []*api.AclEntry based on the Name field.

func (AclEntriesByName) Len added in v1.125.0

func (a AclEntriesByName) Len() int

func (AclEntriesByName) Less added in v1.125.0

func (a AclEntriesByName) Less(i, j int) bool

func (AclEntriesByName) Swap added in v1.125.0

func (a AclEntriesByName) Swap(i, j int)

type SQLInstanceReconcileGate

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

func (*SQLInstanceReconcileGate) ShouldReconcile

func (r *SQLInstanceReconcileGate) ShouldReconcile(o *unstructured.Unstructured) bool

Jump to

Keyboard shortcuts

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