mock

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckHealthFunc

type CheckHealthFunc func(ctx context.Context) (int32, error)

type KolideService

type KolideService struct {
	RequestEnrollmentFunc        RequestEnrollmentFunc
	RequestEnrollmentFuncInvoked bool

	RequestConfigFunc        RequestConfigFunc
	RequestConfigFuncInvoked bool

	PublishLogsFunc        PublishLogsFunc
	PublishLogsFuncInvoked bool

	RequestQueriesFunc        RequestQueriesFunc
	RequestQueriesFuncInvoked bool

	PublishResultsFunc        PublishResultsFunc
	PublishResultsFuncInvoked bool

	CheckHealthFunc        CheckHealthFunc
	CheckHealthFuncInvoked bool
}

func (*KolideService) CheckHealth

func (s *KolideService) CheckHealth(ctx context.Context) (int32, error)

func (*KolideService) PublishLogs

func (s *KolideService) PublishLogs(ctx context.Context, nodeKey string, logType logger.LogType, logs []string) (string, string, bool, error)

func (*KolideService) PublishResults

func (s *KolideService) PublishResults(ctx context.Context, nodeKey string, results []distributed.Result) (string, string, bool, error)

func (*KolideService) RequestConfig

func (s *KolideService) RequestConfig(ctx context.Context, nodeKey string) (string, bool, error)

func (*KolideService) RequestEnrollment

func (s *KolideService) RequestEnrollment(ctx context.Context, enrollSecret string, hostIdentifier string, enrollDetails service.EnrollmentDetails) (string, bool, error)

func (*KolideService) RequestQueries

func (s *KolideService) RequestQueries(ctx context.Context, nodeKey string) (*distributed.GetQueriesResult, bool, error)

type PublishLogsFunc

type PublishLogsFunc func(ctx context.Context, nodeKey string, logType logger.LogType, logs []string) (string, string, bool, error)

type PublishResultsFunc

type PublishResultsFunc func(ctx context.Context, nodeKey string, results []distributed.Result) (string, string, bool, error)

type RequestConfigFunc

type RequestConfigFunc func(ctx context.Context, nodeKey string) (string, bool, error)

type RequestEnrollmentFunc

type RequestEnrollmentFunc func(ctx context.Context, enrollSecret string, hostIdentifier string, enrollDetails service.EnrollmentDetails) (string, bool, error)

type RequestQueriesFunc

type RequestQueriesFunc func(ctx context.Context, nodeKey string) (*distributed.GetQueriesResult, bool, error)

Jump to

Keyboard shortcuts

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