mocks

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Action string
	Err    error
	Data   []lager.Data
}

type MockCaching

type MockCaching struct {
	MockGetAppInfo  func(string) caching.AppInfo
	InstanceName    string
	EnvironmentName string
}

func (*MockCaching) GetAppInfo added in v1.2.0

func (c *MockCaching) GetAppInfo(appGuid string) caching.AppInfo

func (*MockCaching) GetEnvironmentName added in v1.1.0

func (c *MockCaching) GetEnvironmentName() string

func (*MockCaching) GetInstanceName

func (c *MockCaching) GetInstanceName() string

func (*MockCaching) Initialize

func (c *MockCaching) Initialize(loadApps bool)

type MockFirehoseClient

type MockFirehoseClient struct {
	MessageChan chan *events.Envelope
	ErrChan     chan error
}

func NewMockFirehoseClient

func NewMockFirehoseClient() *MockFirehoseClient

func (*MockFirehoseClient) CloseConsumer

func (c *MockFirehoseClient) CloseConsumer() error

func (*MockFirehoseClient) Connect

func (c *MockFirehoseClient) Connect() (<-chan *events.Envelope, <-chan error)

type MockLogger

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

func NewMockLogger

func NewMockLogger() *MockLogger

func (*MockLogger) Debug

func (m *MockLogger) Debug(action string, data ...lager.Data)

func (*MockLogger) Error

func (m *MockLogger) Error(action string, err error, data ...lager.Data)

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(action string, err error, data ...lager.Data)

func (*MockLogger) GetLogs

func (m *MockLogger) GetLogs(level lager.LogLevel) []Log

func (*MockLogger) Info

func (m *MockLogger) Info(action string, data ...lager.Data)

func (*MockLogger) RegisterSink

func (m *MockLogger) RegisterSink(lager.Sink)

func (*MockLogger) Session

func (m *MockLogger) Session(task string, data ...lager.Data) lager.Logger

func (*MockLogger) SessionName

func (m *MockLogger) SessionName() string

func (*MockLogger) WithData

func (m *MockLogger) WithData(lager.Data) lager.Logger

type MockOmsClient

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

func NewMockOmsClient

func NewMockOmsClient() *MockOmsClient

func (*MockOmsClient) GetPostedMessages

func (c *MockOmsClient) GetPostedMessages() map[string]string

func (*MockOmsClient) PostData

func (c *MockOmsClient) PostData(msg *[]byte, logType string) error

Jump to

Keyboard shortcuts

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