Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogsReader ¶
func NewLogsReader(clientset kubernetes.Interface) *logsReader
Types ¶
type LogsReader ¶
type LogsReader interface {
GetLogs(ctx context.Context, pod types.NamespacedName, container string) (io.ReadCloser, error)
}
type MockLogsReader ¶
MockLogsReader is an autogenerated mock type for the LogsReader type
func NewMockLogsReader ¶
func NewMockLogsReader(t mockConstructorTestingTNewMockLogsReader) *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.
func (*MockLogsReader) EXPECT ¶
func (_m *MockLogsReader) EXPECT() *MockLogsReader_Expecter
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 ¶
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 (_c *MockLogsReader_GetLogs_Call) Return(_a0 io.ReadCloser, _a1 error) *MockLogsReader_GetLogs_Call
func (*MockLogsReader_GetLogs_Call) Run ¶
func (_c *MockLogsReader_GetLogs_Call) Run(run func(ctx context.Context, pod types.NamespacedName, container string)) *MockLogsReader_GetLogs_Call
Click to show internal directories.
Click to hide internal directories.