gardener: github.com/gardener/gardener/pkg/mock/go/context Index | Files

package context

import "github.com/gardener/gardener/pkg/mock/go/context"

Package context is a generated GoMock package.

Package context is a generated GoMock package.

Index

Package Files

doc.go funcs.go mocks.go

type CancelFunc Uses

type CancelFunc interface {
    Do()
}

CancelFunc is an interface that allows mocking `CancelFunc`.

type Context Uses

type Context interface {
    context.Context
}

Context allows mocking context.Context. The interface is necessary due to an issue with golang/mock not being able to generate code for go's core context package.

type MockCancelFunc Uses

type MockCancelFunc struct {
    // contains filtered or unexported fields
}

MockCancelFunc is a mock of CancelFunc interface.

func NewMockCancelFunc Uses

func NewMockCancelFunc(ctrl *gomock.Controller) *MockCancelFunc

NewMockCancelFunc creates a new mock instance.

func (*MockCancelFunc) Do Uses

func (m *MockCancelFunc) Do()

Do mocks base method.

func (*MockCancelFunc) EXPECT Uses

func (m *MockCancelFunc) EXPECT() *MockCancelFuncMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockCancelFuncMockRecorder Uses

type MockCancelFuncMockRecorder struct {
    // contains filtered or unexported fields
}

MockCancelFuncMockRecorder is the mock recorder for MockCancelFunc.

func (*MockCancelFuncMockRecorder) Do Uses

func (mr *MockCancelFuncMockRecorder) Do() *gomock.Call

Do indicates an expected call of Do.

type MockContext Uses

type MockContext struct {
    // contains filtered or unexported fields
}

MockContext is a mock of Context interface.

func NewMockContext Uses

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) Deadline Uses

func (m *MockContext) Deadline() (time.Time, bool)

Deadline mocks base method.

func (*MockContext) Done Uses

func (m *MockContext) Done() <-chan struct{}

Done mocks base method.

func (*MockContext) EXPECT Uses

func (m *MockContext) EXPECT() *MockContextMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContext) Err Uses

func (m *MockContext) Err() error

Err mocks base method.

func (*MockContext) Value Uses

func (m *MockContext) Value(arg0 interface{}) interface{}

Value mocks base method.

type MockContextMockRecorder Uses

type MockContextMockRecorder struct {
    // contains filtered or unexported fields
}

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) Deadline Uses

func (mr *MockContextMockRecorder) Deadline() *gomock.Call

Deadline indicates an expected call of Deadline.

func (*MockContextMockRecorder) Done Uses

func (mr *MockContextMockRecorder) Done() *gomock.Call

Done indicates an expected call of Done.

func (*MockContextMockRecorder) Err Uses

func (mr *MockContextMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockContextMockRecorder) Value Uses

func (mr *MockContextMockRecorder) Value(arg0 interface{}) *gomock.Call

Value indicates an expected call of Value.

type MockWithTimeout Uses

type MockWithTimeout struct {
    // contains filtered or unexported fields
}

MockWithTimeout is a mock of WithTimeout interface.

func NewMockWithTimeout Uses

func NewMockWithTimeout(ctrl *gomock.Controller) *MockWithTimeout

NewMockWithTimeout creates a new mock instance.

func (*MockWithTimeout) Do Uses

func (m *MockWithTimeout) Do(arg0 context.Context, arg1 time.Duration) (context.Context, context.CancelFunc)

Do mocks base method.

func (*MockWithTimeout) EXPECT Uses

func (m *MockWithTimeout) EXPECT() *MockWithTimeoutMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockWithTimeoutMockRecorder Uses

type MockWithTimeoutMockRecorder struct {
    // contains filtered or unexported fields
}

MockWithTimeoutMockRecorder is the mock recorder for MockWithTimeout.

func (*MockWithTimeoutMockRecorder) Do Uses

func (mr *MockWithTimeoutMockRecorder) Do(arg0, arg1 interface{}) *gomock.Call

Do indicates an expected call of Do.

type WithTimeout Uses

type WithTimeout interface {
    Do(parent context.Context, timeout time.Duration) (context.Context, context.CancelFunc)
}

WithTimeout is an interface that allows mocking `WithTimeout`.

Package context imports 4 packages (graph) and is imported by 2 packages. Updated 2020-08-04. Refresh now. Tools for package owners.