Documentation ¶
Index ¶
- func CompareAccountsIgnore() cmp.Option
- func CompareEventsIgnore() cmp.Option
- func NewDatabaseAccountName() v1.PostgreSQLResourceName
- func ReconcileStatusDBUser(want *v1.DatabaseAccount)
- func ReconcileWantDBFinalizer(want *v1.DatabaseAccount)
- func ReconcileWantSecretDatabaseDSN(want *corev1.Secret)
- func ReconcileWantSecretFinalizer(want *corev1.Secret)
- func ReconcileWantSecretInit(want *corev1.Secret)
- func ReconcileWantSecretNamePassword(want *corev1.Secret)
- type ControllerMockWrapper
- func (c *ControllerMockWrapper) CallCount(name string) (int, bool)
- func (c *ControllerMockWrapper) CallCountMap() map[string]int
- func (c *ControllerMockWrapper) CallCountReset()
- func (c *ControllerMockWrapper) GetDatabaseAccount() v1.DatabaseAccount
- func (c *ControllerMockWrapper) GetDatabaseAccountNamespacedName() types.NamespacedName
- func (c *ControllerMockWrapper) GetDatabaseAccountOriginal() v1.DatabaseAccount
- func (c *ControllerMockWrapper) GetExpectDatabaseAccount(ff ...ReconcileModDBFunc) v1.DatabaseAccount
- func (c *ControllerMockWrapper) GetExpectSecret(ff ...ReconcileModSecretFunc) corev1.Secret
- func (c *ControllerMockWrapper) GetSecret() corev1.Secret
- func (c *ControllerMockWrapper) IncCallCount(name string)
- func (c *ControllerMockWrapper) Init()
- func (c *ControllerMockWrapper) InitDatabaseAccount(f func(dba *v1.DatabaseAccount))
- func (c *ControllerMockWrapper) InitSecrets(f func(secret *corev1.Secret))
- type ReconcileModDBFunc
- type ReconcileModSecretFunc
- type ReconcilePreModfunc
- type ReconcileTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAccountsIgnore ¶
func CompareEventsIgnore ¶
func NewDatabaseAccountName ¶
func NewDatabaseAccountName() v1.PostgreSQLResourceName
NewDatabaseAccountName returns a newly generated database/username.
func ReconcileStatusDBUser ¶
func ReconcileStatusDBUser(want *v1.DatabaseAccount)
func ReconcileWantDBFinalizer ¶
func ReconcileWantDBFinalizer(want *v1.DatabaseAccount)
func ReconcileWantSecretInit ¶
Types ¶
type ControllerMockWrapper ¶
type ControllerMockWrapper struct {
Secret, OriginalSecret *corev1.Secret
DBAccount, OriginalDBAccount *v1.DatabaseAccount
Client *v1test.MockClient
// contains filtered or unexported fields
}
func NewControllerMockWrapper ¶
func NewControllerMockWrapper(t *testing.T, start time.Time, client *v1test.MockClient) *ControllerMockWrapper
func (*ControllerMockWrapper) CallCount ¶
func (c *ControllerMockWrapper) CallCount(name string) (int, bool)
func (*ControllerMockWrapper) CallCountMap ¶
func (c *ControllerMockWrapper) CallCountMap() map[string]int
func (*ControllerMockWrapper) CallCountReset ¶
func (c *ControllerMockWrapper) CallCountReset()
func (*ControllerMockWrapper) GetDatabaseAccount ¶
func (c *ControllerMockWrapper) GetDatabaseAccount() v1.DatabaseAccount
func (*ControllerMockWrapper) GetDatabaseAccountNamespacedName ¶
func (c *ControllerMockWrapper) GetDatabaseAccountNamespacedName() types.NamespacedName
func (*ControllerMockWrapper) GetDatabaseAccountOriginal ¶
func (c *ControllerMockWrapper) GetDatabaseAccountOriginal() v1.DatabaseAccount
func (*ControllerMockWrapper) GetExpectDatabaseAccount ¶
func (c *ControllerMockWrapper) GetExpectDatabaseAccount(ff ...ReconcileModDBFunc) v1.DatabaseAccount
func (*ControllerMockWrapper) GetExpectSecret ¶
func (c *ControllerMockWrapper) GetExpectSecret(ff ...ReconcileModSecretFunc) corev1.Secret
func (*ControllerMockWrapper) GetSecret ¶
func (c *ControllerMockWrapper) GetSecret() corev1.Secret
func (*ControllerMockWrapper) IncCallCount ¶
func (c *ControllerMockWrapper) IncCallCount(name string)
func (*ControllerMockWrapper) Init ¶
func (c *ControllerMockWrapper) Init()
func (*ControllerMockWrapper) InitDatabaseAccount ¶
func (c *ControllerMockWrapper) InitDatabaseAccount(f func(dba *v1.DatabaseAccount))
func (*ControllerMockWrapper) InitSecrets ¶
func (c *ControllerMockWrapper) InitSecrets(f func(secret *corev1.Secret))
type ReconcileModDBFunc ¶
type ReconcileModDBFunc func(want *v1.DatabaseAccount)
func ReconcileWantDBName ¶
func ReconcileWantDBName(name v1.PostgreSQLResourceName) ReconcileModDBFunc
func ReconcileWantReady ¶
func ReconcileWantReady(ready bool) ReconcileModDBFunc
func ReconcileWantStage ¶
func ReconcileWantStage(wantStage v1.DatabaseAccountCreateStage) ReconcileModDBFunc
type ReconcileModSecretFunc ¶
func ReconcileWantSecretDataValue ¶
func ReconcileWantSecretDataValue(key, value string) ReconcileModSecretFunc
func ReconcileWantSecretOwnerRefs ¶
func ReconcileWantSecretOwnerRefs(dbAccount v1.DatabaseAccount) ReconcileModSecretFunc
type ReconcilePreModfunc ¶
type ReconcilePreModfunc func(obj *v1.DatabaseAccount)
type ReconcileTarget ¶
type ReconcileTarget interface { ReconcileModDBFunc | ReconcileModSecretFunc }
Click to show internal directories.
Click to hide internal directories.