Documentation ¶
Index ¶
- type MockAccount
- func (ta *MockAccount) WithDeleteTimestamp(t metav1.Time) *MockAccount
- func (ta *MockAccount) WithFinalizer(f string) *MockAccount
- func (ta *MockAccount) WithFinalizers(f []string) *MockAccount
- func (ta *MockAccount) WithObjectMeta(om metav1.ObjectMeta) *MockAccount
- func (ta *MockAccount) WithSpecClaimRef(ref *corev1.ObjectReference) *MockAccount
- func (ta *MockAccount) WithSpecClassRef(ref *corev1.ObjectReference) *MockAccount
- func (ta *MockAccount) WithSpecProvider(name string) *MockAccount
- func (ta *MockAccount) WithSpecReclaimPolicy(policy corev1alpha1.ReclaimPolicy) *MockAccount
- func (ta *MockAccount) WithSpecStatusFromProperties(props *storage.AccountProperties) *MockAccount
- func (ta *MockAccount) WithSpecStorageAccountName(name string) *MockAccount
- func (ta *MockAccount) WithSpecStorageAccountSpec(spec *v1alpha1.StorageAccountSpec) *MockAccount
- func (ta *MockAccount) WithStatusCondition(c corev1alpha1.Condition) *MockAccount
- func (ta *MockAccount) WithStatusConnectionRef(ref string) *MockAccount
- func (ta *MockAccount) WithStatusFailedCondition(reason, msg string) *MockAccount
- func (ta *MockAccount) WithStatusSetBound(bound bool) *MockAccount
- func (ta *MockAccount) WithStorageAccountStatus(status *v1alpha1.StorageAccountStatus) *MockAccount
- func (ta *MockAccount) WithTypeMeta(tm metav1.TypeMeta) *MockAccount
- func (ta *MockAccount) WithUID(uid string) *MockAccount
- type MockContainer
- func (tc *MockContainer) WithDeleteTimestamp(t time.Time) *MockContainer
- func (tc *MockContainer) WithFailedCondition(reason, msg string) *MockContainer
- func (tc *MockContainer) WithFinalizer(f string) *MockContainer
- func (tc *MockContainer) WithFinalizers(f []string) *MockContainer
- func (tc *MockContainer) WithObjectMeta(om metav1.ObjectMeta) *MockContainer
- func (tc *MockContainer) WithReadyCondition() *MockContainer
- func (tc *MockContainer) WithSpecAccountRef(name string) *MockContainer
- func (tc *MockContainer) WithSpecClaimRef(ref *corev1.ObjectReference) *MockContainer
- func (tc *MockContainer) WithSpecClassRef(ref *corev1.ObjectReference) *MockContainer
- func (tc *MockContainer) WithSpecMetadata(meta map[string]string) *MockContainer
- func (tc *MockContainer) WithSpecNameFormat(f string) *MockContainer
- func (tc *MockContainer) WithSpecPAC(pac azblob.PublicAccessType) *MockContainer
- func (tc *MockContainer) WithSpecReclaimPolicy(p corev1alpha1.ReclaimPolicy) *MockContainer
- func (tc *MockContainer) WithStatusSetBound(bound bool) *MockContainer
- func (tc *MockContainer) WithTypeMeta(tm metav1.TypeMeta) *MockContainer
- func (tc *MockContainer) WithUID(uid string) *MockContainer
- func (tc *MockContainer) WithUnsetAllConditions() *MockContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccount ¶
MockAccount builder for testing account object
func NewMockAccount ¶
func NewMockAccount(ns, name string) *MockAccount
NewMockAccount creates new account wrapper
func (*MockAccount) WithDeleteTimestamp ¶
func (ta *MockAccount) WithDeleteTimestamp(t metav1.Time) *MockAccount
WithDeleteTimestamp sets metadata deletion timestamp
func (*MockAccount) WithFinalizer ¶
func (ta *MockAccount) WithFinalizer(f string) *MockAccount
WithFinalizer sets finalizer
func (*MockAccount) WithFinalizers ¶
func (ta *MockAccount) WithFinalizers(f []string) *MockAccount
WithFinalizers sets finalizers list
func (*MockAccount) WithObjectMeta ¶
func (ta *MockAccount) WithObjectMeta(om metav1.ObjectMeta) *MockAccount
WithObjectMeta sets ObjectMeta value
func (*MockAccount) WithSpecClaimRef ¶
func (ta *MockAccount) WithSpecClaimRef(ref *corev1.ObjectReference) *MockAccount
WithSpecClaimRef set class reference
func (*MockAccount) WithSpecClassRef ¶
func (ta *MockAccount) WithSpecClassRef(ref *corev1.ObjectReference) *MockAccount
WithSpecClassRef set class reference
func (*MockAccount) WithSpecProvider ¶
func (ta *MockAccount) WithSpecProvider(name string) *MockAccount
WithSpecProvider set a provider
func (*MockAccount) WithSpecReclaimPolicy ¶
func (ta *MockAccount) WithSpecReclaimPolicy(policy corev1alpha1.ReclaimPolicy) *MockAccount
WithSpecReclaimPolicy sets resource reclaim policy
func (*MockAccount) WithSpecStatusFromProperties ¶
func (ta *MockAccount) WithSpecStatusFromProperties(props *storage.AccountProperties) *MockAccount
WithSpecStatusFromProperties set storage account spec status from storage properties
func (*MockAccount) WithSpecStorageAccountName ¶
func (ta *MockAccount) WithSpecStorageAccountName(name string) *MockAccount
WithSpecStorageAccountName sets spec value
func (*MockAccount) WithSpecStorageAccountSpec ¶
func (ta *MockAccount) WithSpecStorageAccountSpec(spec *v1alpha1.StorageAccountSpec) *MockAccount
WithSpecStorageAccountSpec sets storage account specs
func (*MockAccount) WithStatusCondition ¶
func (ta *MockAccount) WithStatusCondition(c corev1alpha1.Condition) *MockAccount
WithStatusCondition sets status condition
func (*MockAccount) WithStatusConnectionRef ¶
func (ta *MockAccount) WithStatusConnectionRef(ref string) *MockAccount
WithStatusConnectionRef set connection references
func (*MockAccount) WithStatusFailedCondition ¶
func (ta *MockAccount) WithStatusFailedCondition(reason, msg string) *MockAccount
WithStatusFailedCondition sets and activates Failed condition
func (*MockAccount) WithStatusSetBound ¶
func (ta *MockAccount) WithStatusSetBound(bound bool) *MockAccount
WithStatusSetBound set status bound state
func (*MockAccount) WithStorageAccountStatus ¶
func (ta *MockAccount) WithStorageAccountStatus(status *v1alpha1.StorageAccountStatus) *MockAccount
WithStorageAccountStatus set storage account status
func (*MockAccount) WithTypeMeta ¶
func (ta *MockAccount) WithTypeMeta(tm metav1.TypeMeta) *MockAccount
WithTypeMeta sets TypeMeta value
func (*MockAccount) WithUID ¶
func (ta *MockAccount) WithUID(uid string) *MockAccount
WithUID sets UID value
type MockContainer ¶
MockContainer builder to create a continer object for testing
func NewMockContainer ¶
func NewMockContainer(ns, name string) *MockContainer
NewMockContainer new container builcer
func (*MockContainer) WithDeleteTimestamp ¶
func (tc *MockContainer) WithDeleteTimestamp(t time.Time) *MockContainer
WithDeleteTimestamp sets deletion timestamp value
func (*MockContainer) WithFailedCondition ¶
func (tc *MockContainer) WithFailedCondition(reason, msg string) *MockContainer
WithFailedCondition sets status failed condition
func (*MockContainer) WithFinalizer ¶
func (tc *MockContainer) WithFinalizer(f string) *MockContainer
WithFinalizer sets finalizer
func (*MockContainer) WithFinalizers ¶
func (tc *MockContainer) WithFinalizers(f []string) *MockContainer
WithFinalizers sets finalizers list
func (*MockContainer) WithObjectMeta ¶
func (tc *MockContainer) WithObjectMeta(om metav1.ObjectMeta) *MockContainer
WithObjectMeta sets ObjectMeta value
func (*MockContainer) WithReadyCondition ¶
func (tc *MockContainer) WithReadyCondition() *MockContainer
WithReadyCondition sets status ready condition
func (*MockContainer) WithSpecAccountRef ¶
func (tc *MockContainer) WithSpecAccountRef(name string) *MockContainer
WithSpecAccountRef sets spec account reference value
func (*MockContainer) WithSpecClaimRef ¶
func (tc *MockContainer) WithSpecClaimRef(ref *corev1.ObjectReference) *MockContainer
WithSpecClaimRef set class reference
func (*MockContainer) WithSpecClassRef ¶
func (tc *MockContainer) WithSpecClassRef(ref *corev1.ObjectReference) *MockContainer
WithSpecClassRef set class reference
func (*MockContainer) WithSpecMetadata ¶
func (tc *MockContainer) WithSpecMetadata(meta map[string]string) *MockContainer
WithSpecMetadata sets spec metadata value
func (*MockContainer) WithSpecNameFormat ¶
func (tc *MockContainer) WithSpecNameFormat(f string) *MockContainer
WithSpecNameFormat sets spec name format
func (*MockContainer) WithSpecPAC ¶
func (tc *MockContainer) WithSpecPAC(pac azblob.PublicAccessType) *MockContainer
WithSpecPAC sets spec public access type value
func (*MockContainer) WithSpecReclaimPolicy ¶
func (tc *MockContainer) WithSpecReclaimPolicy(p corev1alpha1.ReclaimPolicy) *MockContainer
WithSpecReclaimPolicy sets spec reclaim policy value
func (*MockContainer) WithStatusSetBound ¶
func (tc *MockContainer) WithStatusSetBound(bound bool) *MockContainer
WithStatusSetBound set status bound state
func (*MockContainer) WithTypeMeta ¶
func (tc *MockContainer) WithTypeMeta(tm metav1.TypeMeta) *MockContainer
WithTypeMeta sets TypeMeta value
func (*MockContainer) WithUID ¶
func (tc *MockContainer) WithUID(uid string) *MockContainer
WithUID sets UID value
func (*MockContainer) WithUnsetAllConditions ¶
func (tc *MockContainer) WithUnsetAllConditions() *MockContainer
WithUnsetAllConditions resets all status conditions