Documentation ¶
Index ¶
- func AutomatedBackupPolicy_KRMToApi(ctx *MapContext, in *krm.ClusterAutomatedBackupPolicy) *api.AutomatedBackupPolicy
- func BackupSource_KRMFromApi(ctx *MapContext, in *api.BackupSource) []krm.ClusterBackupSourceStatus
- func ClusterSpecToApi(ctx *MapContext, in *krm.AlloyDBClusterSpec) *api.Cluster
- func ClusterStatusFromApi(ctx *MapContext, in *api.Cluster) *krm.AlloyDBClusterStatus
- func ContinuousBackupConfig_KRMToApi(ctx *MapContext, in *krm.ClusterContinuousBackupConfig) *api.ContinuousBackupConfig
- func ContinuousBackupInfo_KRMFromApi(ctx *MapContext, in *api.ContinuousBackupInfo) []krm.ClusterContinuousBackupInfoStatus
- func EncryptionConfig_KRMToApi(ctx *MapContext, in *krm.ClusterEncryptionConfig) *api.EncryptionConfig
- func EncryptionInfo_KRMFromApi(ctx *MapContext, in *api.EncryptionInfo) []krm.ClusterEncryptionInfoStatus
- func HasHTTPCode(err error, code int) bool
- func InitialUser_KRMToApi(ctx *MapContext, in *krm.ClusterInitialUser) *api.UserPassword
- func IsNotFound(err error) bool
- func LazyPtr[T comparable](t T) *T
- func MigrationSource_KRMFromApi(ctx *MapContext, in *api.MigrationSource) []krm.ClusterMigrationSourceStatus
- func NetworkConfig_KRMToApi(ctx *MapContext, in *krm.ClusterNetworkConfig) *api.NetworkConfig
- func NewModel(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error)
- func QuantityBasedRetention_KRMToApi(ctx *MapContext, in *krm.ClusterQuantityBasedRetention) *api.QuantityBasedRetention
- func StartTimes_KRMToApi(ctx *MapContext, in []krm.ClusterStartTimes) []*api.GoogleTypeTimeOfDay
- func TimeBasedRetention_KRMToApi(ctx *MapContext, in *krm.ClusterTimeBasedRetention) *api.TimeBasedRetention
- func Time_KRMToApi(ctx *MapContext, in *krm.ClusterStartTimes) *api.GoogleTypeTimeOfDay
- func ValueOf[T any](p *T) T
- func WeeklySchedule_KRMToApi(ctx *MapContext, in *krm.ClusterWeeklySchedule) *api.WeeklySchedule
- type MapContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutomatedBackupPolicy_KRMToApi ¶
func AutomatedBackupPolicy_KRMToApi(ctx *MapContext, in *krm.ClusterAutomatedBackupPolicy) *api.AutomatedBackupPolicy
func BackupSource_KRMFromApi ¶
func BackupSource_KRMFromApi(ctx *MapContext, in *api.BackupSource) []krm.ClusterBackupSourceStatus
func ClusterSpecToApi ¶
func ClusterSpecToApi(ctx *MapContext, in *krm.AlloyDBClusterSpec) *api.Cluster
func ClusterStatusFromApi ¶
func ClusterStatusFromApi(ctx *MapContext, in *api.Cluster) *krm.AlloyDBClusterStatus
func ContinuousBackupConfig_KRMToApi ¶
func ContinuousBackupConfig_KRMToApi(ctx *MapContext, in *krm.ClusterContinuousBackupConfig) *api.ContinuousBackupConfig
func ContinuousBackupInfo_KRMFromApi ¶
func ContinuousBackupInfo_KRMFromApi(ctx *MapContext, in *api.ContinuousBackupInfo) []krm.ClusterContinuousBackupInfoStatus
func EncryptionConfig_KRMToApi ¶
func EncryptionConfig_KRMToApi(ctx *MapContext, in *krm.ClusterEncryptionConfig) *api.EncryptionConfig
func EncryptionInfo_KRMFromApi ¶
func EncryptionInfo_KRMFromApi(ctx *MapContext, in *api.EncryptionInfo) []krm.ClusterEncryptionInfoStatus
func HasHTTPCode ¶
HasHTTPCode returns true if the given error is an HTTP response with the given code.
func InitialUser_KRMToApi ¶
func InitialUser_KRMToApi(ctx *MapContext, in *krm.ClusterInitialUser) *api.UserPassword
func IsNotFound ¶
IsNotFound returns true if the given error is an HTTP 404.
func LazyPtr ¶
func LazyPtr[T comparable](t T) *T
func MigrationSource_KRMFromApi ¶
func MigrationSource_KRMFromApi(ctx *MapContext, in *api.MigrationSource) []krm.ClusterMigrationSourceStatus
func NetworkConfig_KRMToApi ¶
func NetworkConfig_KRMToApi(ctx *MapContext, in *krm.ClusterNetworkConfig) *api.NetworkConfig
func NewModel ¶
func NewModel(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error)
func QuantityBasedRetention_KRMToApi ¶
func QuantityBasedRetention_KRMToApi(ctx *MapContext, in *krm.ClusterQuantityBasedRetention) *api.QuantityBasedRetention
func StartTimes_KRMToApi ¶
func StartTimes_KRMToApi(ctx *MapContext, in []krm.ClusterStartTimes) []*api.GoogleTypeTimeOfDay
func TimeBasedRetention_KRMToApi ¶
func TimeBasedRetention_KRMToApi(ctx *MapContext, in *krm.ClusterTimeBasedRetention) *api.TimeBasedRetention
func Time_KRMToApi ¶
func Time_KRMToApi(ctx *MapContext, in *krm.ClusterStartTimes) *api.GoogleTypeTimeOfDay
func WeeklySchedule_KRMToApi ¶
func WeeklySchedule_KRMToApi(ctx *MapContext, in *krm.ClusterWeeklySchedule) *api.WeeklySchedule
Types ¶
type MapContext ¶
type MapContext struct {
// contains filtered or unexported fields
}
func (*MapContext) Err ¶
func (c *MapContext) Err() error
func (*MapContext) Errorf ¶
func (c *MapContext) Errorf(msg string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.