alloydb

package
v1.118.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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

func HasHTTPCode(err error, code int) bool

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

func IsNotFound(err error) bool

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(config *controller.Config) directbase.Model

func StartTimes_KRMToApi

func StartTimes_KRMToApi(ctx *MapContext, in []krm.ClusterStartTimes) []*api.GoogleTypeTimeOfDay

func ValueOf

func ValueOf[T any](p *T) T

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{})

Jump to

Keyboard shortcuts

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