automock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppliedSpecStorage

type AppliedSpecStorage struct {
	mock.Mock
}

AppliedSpecStorage is an autogenerated mock type for the AppliedSpecStorage type

func (*AppliedSpecStorage) Delete

func (_m *AppliedSpecStorage) Delete(namespace string, name string) error

Delete provides a mock function with given fields: namespace, name

func (*AppliedSpecStorage) ExpectOnGet

func (_m *AppliedSpecStorage) ExpectOnGet(namespace, name string, spec *controller.UsageSpec, found bool) *mock.Call

func (*AppliedSpecStorage) ExpectOnUpsert

func (_m *AppliedSpecStorage) ExpectOnUpsert(bUsage *v1alpha1.ServiceBindingUsage, applied bool) *mock.Call

func (*AppliedSpecStorage) Get

func (_m *AppliedSpecStorage) Get(namespace string, name string) (*controller.UsageSpec, bool, error)

Get provides a mock function with given fields: namespace, name

func (*AppliedSpecStorage) Upsert

func (_m *AppliedSpecStorage) Upsert(bUsage *v1alpha1.ServiceBindingUsage, applied bool) error

Upsert provides a mock function with given fields: bUsage, applied

type BindingLabelsFetcher

type BindingLabelsFetcher struct {
	mock.Mock
}

bindingLabelsFetcher is an autogenerated mock type for the bindingLabelsFetcher type

func (*BindingLabelsFetcher) ExpectErrorOnFetch

func (_m *BindingLabelsFetcher) ExpectErrorOnFetch(outError error) *mock.Call

func (*BindingLabelsFetcher) ExpectOnFetch

func (_m *BindingLabelsFetcher) ExpectOnFetch(inBinding *v1beta1.ServiceBinding, outLabels map[string]string) *mock.Call

func (*BindingLabelsFetcher) Fetch

func (_m *BindingLabelsFetcher) Fetch(svcBinding *v1beta1.ServiceBinding) (map[string]string, error)

Fetch provides a mock function with given fields: svcBinding

type BindingUsageChecker

type BindingUsageChecker struct {
	mock.Mock
}

BindingUsageChecker is an autogenerated mock type for the BindingUsageChecker type

func (*BindingUsageChecker) ExpectErrorOnValidateIfBindingUsageShouldBeProcessed

func (_m *BindingUsageChecker) ExpectErrorOnValidateIfBindingUsageShouldBeProcessed(sbuFromRetry bool, bUsage *v1alpha1.ServiceBindingUsage, err error) *mock.Call

func (*BindingUsageChecker) ExpectOnValidateIfBindingUsageShouldBeProcessed

func (_m *BindingUsageChecker) ExpectOnValidateIfBindingUsageShouldBeProcessed(sbuFromRetry bool, bUsage *v1alpha1.ServiceBindingUsage) *mock.Call

func (*BindingUsageChecker) ValidateIfBindingUsageShouldBeProcessed

func (_m *BindingUsageChecker) ValidateIfBindingUsageShouldBeProcessed(sbuFromRetry bool, bUsage *v1alpha1.ServiceBindingUsage) error

ValidateIfBindingUsageShouldBeProcessed provides a mock function with given fields: sbuFromRetry, bUsage

type DeploymentFinder

type DeploymentFinder struct {
	mock.Mock
}

DeploymentFinder is an autogenerated mock type for the DeploymentFinder type

func (*DeploymentFinder) FindDeploymentModifiedByServiceBindingUsage

func (_m *DeploymentFinder) FindDeploymentModifiedByServiceBindingUsage(namespace string, podPresetLabel string) (*v1beta2.Deployment, error)

FindDeploymentModifiedByServiceBindingUsage provides a mock function with given fields: namespace, podPresetLabel

type KindsSupervisors

type KindsSupervisors struct {
	mock.Mock
}

KindsSupervisors is an autogenerated mock type for the KindsSupervisors type

func (*KindsSupervisors) ExpectOnGet

func (*KindsSupervisors) ExpectOnHasSynced

func (_m *KindsSupervisors) ExpectOnHasSynced(synced bool) *mock.Call

func (*KindsSupervisors) Get

Get provides a mock function with given fields: kind

func (*KindsSupervisors) HasSynced

func (_m *KindsSupervisors) HasSynced() bool

HasSynced provides a mock function with given fields:

type KubelessFunctionFinder

type KubelessFunctionFinder struct {
	mock.Mock
}

KubelessFunctionFinder is an autogenerated mock type for the KubelessFunctionFinder type

func (*KubelessFunctionFinder) FindFunctionModifiedByServiceBindingUsage

func (_m *KubelessFunctionFinder) FindFunctionModifiedByServiceBindingUsage(fnNs string, usageName string) (*v1beta1.Function, error)

FindFunctionModifiedByServiceBindingUsage provides a mock function with given fields: fnNs, usageName

type KubernetesResourceSupervisor

type KubernetesResourceSupervisor struct {
	mock.Mock
}

KubernetesResourceSupervisor is an autogenerated mock type for the KubernetesResourceSupervisor type

func (*KubernetesResourceSupervisor) EnsureLabelsCreated

func (_m *KubernetesResourceSupervisor) EnsureLabelsCreated(resourceNs string, resourceName string, usageName string, labels map[string]string) error

EnsureLabelsCreated provides a mock function with given fields: resourceNs, resourceName, usageName, usageVer, labels

func (*KubernetesResourceSupervisor) EnsureLabelsDeleted

func (_m *KubernetesResourceSupervisor) EnsureLabelsDeleted(resourceNs string, resourceName string, usageName string) error

EnsureLabelsDeleted provides a mock function with given fields: resourceNs, resourceName, usageName

func (*KubernetesResourceSupervisor) ExpectOnEnsureLabelsCreated

func (_m *KubernetesResourceSupervisor) ExpectOnEnsureLabelsCreated(ns string, resourceName string, usageName string, labels map[string]string) *mock.Call

func (*KubernetesResourceSupervisor) ExpectOnHasSynced

func (_m *KubernetesResourceSupervisor) ExpectOnHasSynced(synced bool) *mock.Call

func (*KubernetesResourceSupervisor) GetInjectedLabels

func (_m *KubernetesResourceSupervisor) GetInjectedLabels(resourceNs string, resourceName string, usageName string) (map[string]string, error)

GetInjectedLabels provides a mock function with given fields: resourceNs, resourceName, usageName

func (*KubernetesResourceSupervisor) HasSynced

func (_m *KubernetesResourceSupervisor) HasSynced() bool

HasSynced provides a mock function with given fields:

type PodPresetModifier

type PodPresetModifier struct {
	mock.Mock
}

PodPresetModifier is an autogenerated mock type for the PodPresetModifier type

func (*PodPresetModifier) EnsurePodPresetDeleted

func (_m *PodPresetModifier) EnsurePodPresetDeleted(name string, namespace string) error

EnsurePodPresetDeleted provides a mock function with given fields: name, namespace

func (*PodPresetModifier) ExpectOnUpsertPodPreset

func (_m *PodPresetModifier) ExpectOnUpsertPodPreset(newPodPreset *settingsV1alpha1.PodPreset) *mock.Call

func (*PodPresetModifier) UpsertPodPreset

func (_m *PodPresetModifier) UpsertPodPreset(newPodPreset *v1alpha1.PodPreset) error

UpsertPodPreset provides a mock function with given fields: newPodPreset

type UsageBindingAnnotationTracer

type UsageBindingAnnotationTracer struct {
	mock.Mock
}

UsageBindingAnnotationTracer is an autogenerated mock type for the UsageBindingAnnotationTracer type

func (*UsageBindingAnnotationTracer) DeleteAnnotationAboutBindingUsage

func (_m *UsageBindingAnnotationTracer) DeleteAnnotationAboutBindingUsage(objMeta *v1.ObjectMeta, usageName string) error

DeleteAnnotationAboutBindingUsage provides a mock function with given fields: objMeta, usageName

func (*UsageBindingAnnotationTracer) GetInjectedLabels

func (_m *UsageBindingAnnotationTracer) GetInjectedLabels(objMeta v1.ObjectMeta, usageName string) (map[string]string, error)

GetInjectedLabels provides a mock function with given fields: objMeta, usageName

func (*UsageBindingAnnotationTracer) SetAnnotationAboutBindingUsage

func (_m *UsageBindingAnnotationTracer) SetAnnotationAboutBindingUsage(objMeta *v1.ObjectMeta, usageName string, labels map[string]string) error

SetAnnotationAboutBindingUsage provides a mock function with given fields: objMeta, usageName, usageVer, labels

Jump to

Keyboard shortcuts

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