pod

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogsReader

type LogsReader interface {
	GetLogs(ctx context.Context, pod types.NamespacedName, container string) (io.ReadCloser, error)
}

func NewLogsReader

func NewLogsReader(clientset kubernetes.Interface) LogsReader

type MockLogsReader

type MockLogsReader struct {
	mock.Mock
}

MockLogsReader is an autogenerated mock type for the LogsReader type

func NewMockLogsReader

func NewMockLogsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLogsReader

NewMockLogsReader creates a new instance of MockLogsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockLogsReader) EXPECT

func (*MockLogsReader) GetLogs

func (_m *MockLogsReader) GetLogs(ctx context.Context, pod types.NamespacedName, container string) (io.ReadCloser, error)

GetLogs provides a mock function with given fields: ctx, pod, container

type MockLogsReader_Expecter

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

func (*MockLogsReader_Expecter) GetLogs

func (_e *MockLogsReader_Expecter) GetLogs(ctx interface{}, pod interface{}, container interface{}) *MockLogsReader_GetLogs_Call

GetLogs is a helper method to define mock.On call

  • ctx context.Context
  • pod types.NamespacedName
  • container string

type MockLogsReader_GetLogs_Call

type MockLogsReader_GetLogs_Call struct {
	*mock.Call
}

MockLogsReader_GetLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogs'

func (*MockLogsReader_GetLogs_Call) Return

func (*MockLogsReader_GetLogs_Call) Run

func (*MockLogsReader_GetLogs_Call) RunAndReturn added in v0.5.8

Jump to

Keyboard shortcuts

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