mocks

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityStore

type EntityStore struct {
	mock.Mock
}

EntityStore is an autogenerated mock type for the EntityStore type

func (*EntityStore) Add

func (_m *EntityStore) Add(ctx context.Context, entity entitystore.Entity) (string, error)

Add provides a mock function with given fields: ctx, entity

func (*EntityStore) Delete

func (_m *EntityStore) Delete(ctx context.Context, organizationID string, id string, entity entitystore.Entity) error

Delete provides a mock function with given fields: ctx, organizationID, id, entity

func (*EntityStore) Find added in v0.1.13

func (_m *EntityStore) Find(ctx context.Context, organizationID string, key string, opts entitystore.Options, entity entitystore.Entity) (bool, error)

Find provides a mock function with given fields: ctx, organizationID, key, opts, entity

func (*EntityStore) Get

func (_m *EntityStore) Get(ctx context.Context, organizationID string, key string, opts entitystore.Options, entity entitystore.Entity) error

Get provides a mock function with given fields: ctx, organizationID, key, opts, entity

func (*EntityStore) List

func (_m *EntityStore) List(ctx context.Context, organizationID string, opts entitystore.Options, entities interface{}) error

List provides a mock function with given fields: ctx, organizationID, opts, entities

func (*EntityStore) ListGlobal added in v0.1.18

func (_m *EntityStore) ListGlobal(ctx context.Context, opts entitystore.Options, entities interface{}) error

ListGlobal provides a mock function with given fields: ctx, opts, entities

func (*EntityStore) SoftDelete added in v0.1.13

func (_m *EntityStore) SoftDelete(ctx context.Context, entity entitystore.Entity) error

SoftDelete provides a mock function with given fields: ctx, entity

func (*EntityStore) Update

func (_m *EntityStore) Update(ctx context.Context, lastRevision uint64, entity entitystore.Entity) (int64, error)

Update provides a mock function with given fields: ctx, lastRevision, entity

func (*EntityStore) UpdateWithError

func (_m *EntityStore) UpdateWithError(ctx context.Context, e entitystore.Entity, err error)

UpdateWithError provides a mock function with given fields: ctx, e, err

type SecretInterface

type SecretInterface struct {
	mock.Mock
}

SecretInterface is an autogenerated mock type for the SecretInterface type

func (*SecretInterface) Create

func (_m *SecretInterface) Create(_a0 *v1.Secret) (*v1.Secret, error)

Create provides a mock function with given fields: _a0

func (*SecretInterface) Delete

func (_m *SecretInterface) Delete(name string, options *metav1.DeleteOptions) error

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

func (*SecretInterface) DeleteCollection

func (_m *SecretInterface) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error

DeleteCollection provides a mock function with given fields: options, listOptions

func (*SecretInterface) Get

func (_m *SecretInterface) Get(name string, options metav1.GetOptions) (*v1.Secret, error)

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

func (*SecretInterface) List

func (_m *SecretInterface) List(opts metav1.ListOptions) (*v1.SecretList, error)

List provides a mock function with given fields: opts

func (*SecretInterface) Patch

func (_m *SecretInterface) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1.Secret, error)

Patch provides a mock function with given fields: name, pt, data, subresources

func (*SecretInterface) Update

func (_m *SecretInterface) Update(_a0 *v1.Secret) (*v1.Secret, error)

Update provides a mock function with given fields: _a0

func (*SecretInterface) Watch

Watch provides a mock function with given fields: opts

Jump to

Keyboard shortcuts

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