logs

package
v0.0.0-...-bc4752d Latest Latest
Warning

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

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

Documentation

Overview

Package logs is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Id                string
	Name              string
	CreationTimestamp time.Time
	LastKnown         time.Time
}

type ContainerLogType

type ContainerLogType string
const (
	ContainerLogTypeV1   ContainerLogType = "ContainerLog"
	ContainerLogTypeV2   ContainerLogType = "ContainerLogV2"
	ContainerLogTypeBoth ContainerLogType = "Both"
)

type InventoryOptions

type InventoryOptions struct {
	Timeinterval *TimeInterval
}

type LogOptions

type LogOptions struct {
	Timeinterval *TimeInterval
	LimitRows    *int
}

type MockLogService

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

MockLogService is a mock of Service interface.

func NewMockLogService

func NewMockLogService(ctrl *gomock.Controller) *MockLogService

NewMockLogService creates a new mock instance.

func (*MockLogService) ComponentContainerLog

func (m *MockLogService) ComponentContainerLog(ctx context.Context, appName, envName, componentName, replicaName, containerId string, options *LogOptions) (io.Reader, error)

ComponentContainerLog mocks base method.

func (*MockLogService) ComponentInventory

func (m *MockLogService) ComponentInventory(ctx context.Context, appName, envName, componentName string, options *InventoryOptions) ([]Pod, error)

ComponentInventory mocks base method.

func (*MockLogService) ComponentLog

func (m *MockLogService) ComponentLog(ctx context.Context, appName, envName, componentName string, options *LogOptions) (io.Reader, error)

ComponentLog mocks base method.

func (*MockLogService) ComponentPodLog

func (m *MockLogService) ComponentPodLog(ctx context.Context, appName, envName, componentName, replicaName string, options *LogOptions) (io.Reader, error)

ComponentPodLog mocks base method.

func (*MockLogService) EXPECT

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

func (*MockLogService) JobContainerLog

func (m *MockLogService) JobContainerLog(ctx context.Context, appName, envName, jobComponentName, jobName, replicaName, containerId string, options *LogOptions) (io.Reader, error)

JobContainerLog mocks base method.

func (*MockLogService) JobInventory

func (m *MockLogService) JobInventory(ctx context.Context, appName, envName, jobComponentName, jobName string, options *InventoryOptions) ([]Pod, error)

JobInventory mocks base method.

func (*MockLogService) JobLog

func (m *MockLogService) JobLog(ctx context.Context, appName, envName, jobComponentName, jobName string, options *LogOptions) (io.Reader, error)

JobLog mocks base method.

func (*MockLogService) JobPodLog

func (m *MockLogService) JobPodLog(ctx context.Context, appName, envName, jobComponentName, jobName, replicaName string, options *LogOptions) (io.Reader, error)

JobPodLog mocks base method.

func (*MockLogService) PipelineJobContainerLog

func (m *MockLogService) PipelineJobContainerLog(ctx context.Context, appName, pipelineJobName, replicaName, containerId string, options *LogOptions) (io.Reader, error)

PipelineJobContainerLog mocks base method.

func (*MockLogService) PipelineJobInventory

func (m *MockLogService) PipelineJobInventory(ctx context.Context, appName, pipelineJobName string, options *InventoryOptions) ([]Pod, error)

PipelineJobInventory mocks base method.

type MockLogServiceMockRecorder

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

MockLogServiceMockRecorder is the mock recorder for MockLogService.

func (*MockLogServiceMockRecorder) ComponentContainerLog

func (mr *MockLogServiceMockRecorder) ComponentContainerLog(ctx, appName, envName, componentName, replicaName, containerId, options interface{}) *gomock.Call

ComponentContainerLog indicates an expected call of ComponentContainerLog.

func (*MockLogServiceMockRecorder) ComponentInventory

func (mr *MockLogServiceMockRecorder) ComponentInventory(ctx, appName, envName, componentName, options interface{}) *gomock.Call

ComponentInventory indicates an expected call of ComponentInventory.

func (*MockLogServiceMockRecorder) ComponentLog

func (mr *MockLogServiceMockRecorder) ComponentLog(ctx, appName, envName, componentName, options interface{}) *gomock.Call

ComponentLog indicates an expected call of ComponentLog.

func (*MockLogServiceMockRecorder) ComponentPodLog

func (mr *MockLogServiceMockRecorder) ComponentPodLog(ctx, appName, envName, componentName, replicaName, options interface{}) *gomock.Call

ComponentPodLog indicates an expected call of ComponentPodLog.

func (*MockLogServiceMockRecorder) JobContainerLog

func (mr *MockLogServiceMockRecorder) JobContainerLog(ctx, appName, envName, jobComponentName, jobName, replicaName, containerId, options interface{}) *gomock.Call

JobContainerLog indicates an expected call of JobContainerLog.

func (*MockLogServiceMockRecorder) JobInventory

func (mr *MockLogServiceMockRecorder) JobInventory(ctx, appName, envName, jobComponentName, jobName, options interface{}) *gomock.Call

JobInventory indicates an expected call of JobInventory.

func (*MockLogServiceMockRecorder) JobLog

func (mr *MockLogServiceMockRecorder) JobLog(ctx, appName, envName, jobComponentName, jobName, options interface{}) *gomock.Call

JobLog indicates an expected call of JobLog.

func (*MockLogServiceMockRecorder) JobPodLog

func (mr *MockLogServiceMockRecorder) JobPodLog(ctx, appName, envName, jobComponentName, jobName, replicaName, options interface{}) *gomock.Call

JobPodLog indicates an expected call of JobPodLog.

func (*MockLogServiceMockRecorder) PipelineJobContainerLog

func (mr *MockLogServiceMockRecorder) PipelineJobContainerLog(ctx, appName, pipelineJobName, replicaName, containerId, options interface{}) *gomock.Call

PipelineJobContainerLog indicates an expected call of PipelineJobContainerLog.

func (*MockLogServiceMockRecorder) PipelineJobInventory

func (mr *MockLogServiceMockRecorder) PipelineJobInventory(ctx, appName, pipelineJobName, options interface{}) *gomock.Call

PipelineJobInventory indicates an expected call of PipelineJobInventory.

type Pod

type Pod struct {
	Name              string
	CreationTimestamp time.Time
	LastKnown         time.Time
	Containers        []Container
}

type Service

type Service interface {
	ComponentLog(ctx context.Context, appName, envName, componentName string, options *LogOptions) (io.Reader, error)
	ComponentPodLog(ctx context.Context, appName, envName, componentName, replicaName string, options *LogOptions) (io.Reader, error)
	ComponentContainerLog(ctx context.Context, appName, envName, componentName, replicaName, containerId string, options *LogOptions) (io.Reader, error)
	ComponentInventory(ctx context.Context, appName, envName, componentName string, options *InventoryOptions) ([]Pod, error)
	JobInventory(ctx context.Context, appName, envName, jobComponentName, jobName string, options *InventoryOptions) ([]Pod, error)
	JobLog(ctx context.Context, appName, envName, jobComponentName, jobName string, options *LogOptions) (io.Reader, error)
	JobPodLog(ctx context.Context, appName, envName, jobComponentName, jobName, replicaName string, options *LogOptions) (io.Reader, error)
	JobContainerLog(ctx context.Context, appName, envName, jobComponentName, jobName, replicaName, containerId string, options *LogOptions) (io.Reader, error)
	PipelineJobInventory(ctx context.Context, appName, pipelineJobName string, options *InventoryOptions) ([]Pod, error)
	PipelineJobContainerLog(ctx context.Context, appName, pipelineJobName string, replicaName, containerId string, options *LogOptions) (io.Reader, error)
}

func New

func New(logsClient *azquery.LogsClient, workspaceId string, logType ContainerLogType) Service

type TimeInterval

type TimeInterval struct {
	Start time.Time
	End   time.Time
}

func (TimeInterval) AzQueryTimeinterval

func (o TimeInterval) AzQueryTimeinterval() azquery.TimeInterval

Jump to

Keyboard shortcuts

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