fakes

package
v0.160.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClock

type FakeClock struct {
	NowStub func() time.Time
	// contains filtered or unexported fields
}

func (*FakeClock) Invocations

func (fake *FakeClock) Invocations() map[string][][]interface{}

func (*FakeClock) Now

func (fake *FakeClock) Now() time.Time

func (*FakeClock) NowCallCount

func (fake *FakeClock) NowCallCount() int

func (*FakeClock) NowCalls

func (fake *FakeClock) NowCalls(stub func() time.Time)

func (*FakeClock) NowReturns

func (fake *FakeClock) NowReturns(result1 time.Time)

func (*FakeClock) NowReturnsOnCall

func (fake *FakeClock) NowReturnsOnCall(i int, result1 time.Time)

type FakeFlock added in v0.90.0

type FakeFlock struct {
	TryLockContextStub func(context.Context, time.Duration) (bool, error)

	TryRLockContextStub func(context.Context, time.Duration) (bool, error)

	UnlockStub func() error
	// contains filtered or unexported fields
}

func (*FakeFlock) Invocations added in v0.90.0

func (fake *FakeFlock) Invocations() map[string][][]interface{}

func (*FakeFlock) TryLockContext added in v0.90.0

func (fake *FakeFlock) TryLockContext(arg1 context.Context, arg2 time.Duration) (bool, error)

func (*FakeFlock) TryLockContextArgsForCall added in v0.90.0

func (fake *FakeFlock) TryLockContextArgsForCall(i int) (context.Context, time.Duration)

func (*FakeFlock) TryLockContextCallCount added in v0.90.0

func (fake *FakeFlock) TryLockContextCallCount() int

func (*FakeFlock) TryLockContextCalls added in v0.90.0

func (fake *FakeFlock) TryLockContextCalls(stub func(context.Context, time.Duration) (bool, error))

func (*FakeFlock) TryLockContextReturns added in v0.90.0

func (fake *FakeFlock) TryLockContextReturns(result1 bool, result2 error)

func (*FakeFlock) TryLockContextReturnsOnCall added in v0.90.0

func (fake *FakeFlock) TryLockContextReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeFlock) TryRLockContext added in v0.90.0

func (fake *FakeFlock) TryRLockContext(arg1 context.Context, arg2 time.Duration) (bool, error)

func (*FakeFlock) TryRLockContextArgsForCall added in v0.90.0

func (fake *FakeFlock) TryRLockContextArgsForCall(i int) (context.Context, time.Duration)

func (*FakeFlock) TryRLockContextCallCount added in v0.90.0

func (fake *FakeFlock) TryRLockContextCallCount() int

func (*FakeFlock) TryRLockContextCalls added in v0.90.0

func (fake *FakeFlock) TryRLockContextCalls(stub func(context.Context, time.Duration) (bool, error))

func (*FakeFlock) TryRLockContextReturns added in v0.90.0

func (fake *FakeFlock) TryRLockContextReturns(result1 bool, result2 error)

func (*FakeFlock) TryRLockContextReturnsOnCall added in v0.90.0

func (fake *FakeFlock) TryRLockContextReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeFlock) Unlock added in v0.90.0

func (fake *FakeFlock) Unlock() error

func (*FakeFlock) UnlockCallCount added in v0.90.0

func (fake *FakeFlock) UnlockCallCount() int

func (*FakeFlock) UnlockCalls added in v0.90.0

func (fake *FakeFlock) UnlockCalls(stub func() error)

func (*FakeFlock) UnlockReturns added in v0.90.0

func (fake *FakeFlock) UnlockReturns(result1 error)

func (*FakeFlock) UnlockReturnsOnCall added in v0.90.0

func (fake *FakeFlock) UnlockReturnsOnCall(i int, result1 error)

type FakeProvider added in v0.90.0

type FakeProvider struct {
	RetrieveStub func(context.Context) (aws.Credentials, error)
	// contains filtered or unexported fields
}

func (*FakeProvider) Invocations added in v0.90.0

func (fake *FakeProvider) Invocations() map[string][][]interface{}

func (*FakeProvider) Retrieve added in v0.90.0

func (fake *FakeProvider) Retrieve(arg1 context.Context) (aws.Credentials, error)

func (*FakeProvider) RetrieveArgsForCall added in v0.90.0

func (fake *FakeProvider) RetrieveArgsForCall(i int) context.Context

func (*FakeProvider) RetrieveCallCount added in v0.90.0

func (fake *FakeProvider) RetrieveCallCount() int

func (*FakeProvider) RetrieveCalls added in v0.90.0

func (fake *FakeProvider) RetrieveCalls(stub func(context.Context) (aws.Credentials, error))

func (*FakeProvider) RetrieveReturns added in v0.90.0

func (fake *FakeProvider) RetrieveReturns(result1 aws.Credentials, result2 error)

func (*FakeProvider) RetrieveReturnsOnCall added in v0.90.0

func (fake *FakeProvider) RetrieveReturnsOnCall(i int, result1 aws.Credentials, result2 error)

Jump to

Keyboard shortcuts

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