fake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fake provides fake Crossplane resources for use in tests.

Index

Constants

This section is empty.

Variables

View Source
var GV = schema.GroupVersion{Group: "g", Version: "v"}

GV returns a mock schema.GroupVersion.

Functions

func GVK

GVK returns the mock GVK of the given object.

func SchemeWith

func SchemeWith(o ...runtime.Object) *runtime.Scheme

SchemeWith returns a scheme with list of `runtime.Object`s registered.

Types

type Bindable

type Bindable struct{ Phase v1alpha1.BindingPhase }

Bindable is a mock that implements Bindable interface.

func (*Bindable) GetBindingPhase

func (m *Bindable) GetBindingPhase() v1alpha1.BindingPhase

GetBindingPhase sets the BindingPhase.

func (*Bindable) SetBindingPhase

func (m *Bindable) SetBindingPhase(p v1alpha1.BindingPhase)

SetBindingPhase sets the BindingPhase.

type Claim

Claim is a mock that implements Claim interface.

func (*Claim) DeepCopyObject

func (m *Claim) DeepCopyObject() runtime.Object

DeepCopyObject returns a copy of the object as runtime.Object

func (*Claim) GetObjectKind

func (m *Claim) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

type ClaimReferencer

type ClaimReferencer struct{ Ref *corev1.ObjectReference }

ClaimReferencer is a mock that implements ClaimReferencer interface.

func (*ClaimReferencer) GetClaimReference

func (m *ClaimReferencer) GetClaimReference() *corev1.ObjectReference

GetClaimReference gets the ClaimReference.

func (*ClaimReferencer) SetClaimReference

func (m *ClaimReferencer) SetClaimReference(r *corev1.ObjectReference)

SetClaimReference sets the ClaimReference.

type Class

type Class struct {
	metav1.ObjectMeta
	Reclaimer
}

Class is a mock that implements Class interface.

func (*Class) DeepCopyObject

func (m *Class) DeepCopyObject() runtime.Object

DeepCopyObject returns a copy of the object as runtime.Object

func (*Class) GetObjectKind

func (m *Class) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

type ClassReferencer

type ClassReferencer struct{ Ref *corev1.ObjectReference }

ClassReferencer is a mock that implements ClassReferencer interface.

func (*ClassReferencer) GetClassReference

func (m *ClassReferencer) GetClassReference() *corev1.ObjectReference

GetClassReference gets the ClassReference.

func (*ClassReferencer) SetClassReference

func (m *ClassReferencer) SetClassReference(r *corev1.ObjectReference)

SetClassReference sets the ClassReference.

type ClassSelector

type ClassSelector struct{ Sel *metav1.LabelSelector }

ClassSelector is a mock that implements ClassSelector interface.

func (*ClassSelector) GetClassSelector

func (m *ClassSelector) GetClassSelector() *metav1.LabelSelector

GetClassSelector gets the ClassSelector.

func (*ClassSelector) SetClassSelector

func (m *ClassSelector) SetClassSelector(s *metav1.LabelSelector)

SetClassSelector sets the ClassSelector.

type Conditioned

type Conditioned struct{ Conditions []v1alpha1.Condition }

Conditioned is a mock that implements Conditioned interface.

func (*Conditioned) GetCondition

func (m *Conditioned) GetCondition(ct v1alpha1.ConditionType) v1alpha1.Condition

GetCondition get the Condition with the given ConditionType.

func (*Conditioned) SetConditions

func (m *Conditioned) SetConditions(c ...v1alpha1.Condition)

SetConditions sets the Conditions.

type ConnectionSecretWriterTo

type ConnectionSecretWriterTo struct{ Ref *v1alpha1.SecretReference }

ConnectionSecretWriterTo is a mock that implements ConnectionSecretWriterTo interface.

func (*ConnectionSecretWriterTo) GetWriteConnectionSecretToReference

func (m *ConnectionSecretWriterTo) GetWriteConnectionSecretToReference() *v1alpha1.SecretReference

GetWriteConnectionSecretToReference gets the WriteConnectionSecretToReference.

func (*ConnectionSecretWriterTo) SetWriteConnectionSecretToReference

func (m *ConnectionSecretWriterTo) SetWriteConnectionSecretToReference(r *v1alpha1.SecretReference)

SetWriteConnectionSecretToReference sets the WriteConnectionSecretToReference.

type CredentialsSecretReferencer

type CredentialsSecretReferencer struct{ Ref v1alpha1.SecretKeySelector }

CredentialsSecretReferencer is a mock that satisfies CredentialsSecretReferencer interface.

func (*CredentialsSecretReferencer) GetCredentialsSecretReference

func (m *CredentialsSecretReferencer) GetCredentialsSecretReference() v1alpha1.SecretKeySelector

GetCredentialsSecretReference gets CredentialsSecretReference.

func (*CredentialsSecretReferencer) SetCredentialsSecretReference

func (m *CredentialsSecretReferencer) SetCredentialsSecretReference(r v1alpha1.SecretKeySelector)

SetCredentialsSecretReference sets CredentialsSecretReference.

type LocalConnectionSecretWriterTo

type LocalConnectionSecretWriterTo struct {
	Ref *v1alpha1.LocalSecretReference
}

LocalConnectionSecretWriterTo is a mock that implements LocalConnectionSecretWriterTo interface.

func (*LocalConnectionSecretWriterTo) GetWriteConnectionSecretToReference

func (m *LocalConnectionSecretWriterTo) GetWriteConnectionSecretToReference() *v1alpha1.LocalSecretReference

GetWriteConnectionSecretToReference gets the WriteConnectionSecretToReference.

func (*LocalConnectionSecretWriterTo) SetWriteConnectionSecretToReference

func (m *LocalConnectionSecretWriterTo) SetWriteConnectionSecretToReference(r *v1alpha1.LocalSecretReference)

SetWriteConnectionSecretToReference sets the WriteConnectionSecretToReference.

type Managed

Managed is a mock that implements Managed interface.

func (*Managed) DeepCopyObject

func (m *Managed) DeepCopyObject() runtime.Object

DeepCopyObject returns a copy of the object as runtime.Object

func (*Managed) GetObjectKind

func (m *Managed) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

type ManagedResourceReferencer

type ManagedResourceReferencer struct{ Ref *corev1.ObjectReference }

ManagedResourceReferencer is a mock that implements ManagedResourceReferencer interface.

func (*ManagedResourceReferencer) GetResourceReference

func (m *ManagedResourceReferencer) GetResourceReference() *corev1.ObjectReference

GetResourceReference gets the ResourceReference.

func (*ManagedResourceReferencer) SetResourceReference

func (m *ManagedResourceReferencer) SetResourceReference(r *corev1.ObjectReference)

SetResourceReference sets the ResourceReference.

type Manager

type Manager struct {
	manager.Manager

	Client client.Client
	Scheme *runtime.Scheme
}

Manager is a mock object that satisfies manager.Manager interface.

func (*Manager) GetClient

func (m *Manager) GetClient() client.Client

GetClient returns the client.

func (*Manager) GetScheme

func (m *Manager) GetScheme() *runtime.Scheme

GetScheme returns the scheme.

type Object

type Object struct {
	metav1.ObjectMeta
	runtime.Object
}

Object is a mock that implements Object interface.

func (*Object) DeepCopyObject

func (o *Object) DeepCopyObject() runtime.Object

DeepCopyObject returns a copy of the object as runtime.Object

func (*Object) GetObjectKind

func (o *Object) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

type Provider

type Provider struct {
	metav1.ObjectMeta
	CredentialsSecretReferencer
}

Provider is a mock that satisfies Provider interface.

func (*Provider) DeepCopyObject

func (m *Provider) DeepCopyObject() runtime.Object

DeepCopyObject returns a deep copy of Provider as runtime.Object.

func (*Provider) GetObjectKind

func (m *Provider) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

type ProviderReferencer

type ProviderReferencer struct{ Ref *corev1.ObjectReference }

ProviderReferencer is a mock that implements ProviderReferencer interface.

func (*ProviderReferencer) GetProviderReference

func (m *ProviderReferencer) GetProviderReference() *corev1.ObjectReference

GetProviderReference gets the ProviderReference.

func (*ProviderReferencer) SetProviderReference

func (m *ProviderReferencer) SetProviderReference(p *corev1.ObjectReference)

SetProviderReference sets the ProviderReference.

type Reclaimer

type Reclaimer struct{ Policy v1alpha1.ReclaimPolicy }

Reclaimer is a mock that implements Reclaimer interface.

func (*Reclaimer) GetReclaimPolicy

func (m *Reclaimer) GetReclaimPolicy() v1alpha1.ReclaimPolicy

GetReclaimPolicy gets the ReclaimPolicy.

func (*Reclaimer) SetReclaimPolicy

func (m *Reclaimer) SetReclaimPolicy(p v1alpha1.ReclaimPolicy)

SetReclaimPolicy sets the ReclaimPolicy.

type Target

Target is a mock that implements Target interface.

func (*Target) DeepCopyObject

func (m *Target) DeepCopyObject() runtime.Object

DeepCopyObject returns a deep copy of Target as runtime.Object.

func (*Target) GetObjectKind

func (m *Target) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

type Trait

Trait is a mock that implements Trait interface.

func (*Trait) DeepCopyObject

func (t *Trait) DeepCopyObject() runtime.Object

DeepCopyObject returns a copy of the object as runtime.Object

func (*Trait) GetObjectKind

func (t *Trait) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

type Workload

Workload is a mock that implements Workload interface.

func (*Workload) DeepCopyObject

func (w *Workload) DeepCopyObject() runtime.Object

DeepCopyObject returns a copy of the object as runtime.Object

func (*Workload) GetObjectKind

func (w *Workload) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

type WorkloadReferencer

type WorkloadReferencer struct{ Ref v1alpha1.TypedReference }

A WorkloadReferencer references an OAM Workload type.

func (*WorkloadReferencer) GetWorkloadReference

func (w *WorkloadReferencer) GetWorkloadReference() v1alpha1.TypedReference

GetWorkloadReference gets the WorkloadReference.

func (*WorkloadReferencer) SetWorkloadReference

func (w *WorkloadReferencer) SetWorkloadReference(r v1alpha1.TypedReference)

SetWorkloadReference sets the WorkloadReference.

Jump to

Keyboard shortcuts

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