mock

package
v0.0.0-...-b019be7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallFunc

type CallFunc func(ctx context.Context, registry string, item string, req osquery.ExtensionPluginRequest) (*osquery.ExtensionResponse, error)

type CloseFunc

type CloseFunc func()

type DeregisterExtensionFunc

type DeregisterExtensionFunc func(ctx context.Context, uuid osquery.ExtensionRouteUUID) (*osquery.ExtensionStatus, error)

type ExtensionManager

type ExtensionManager struct {
	CloseFunc        CloseFunc
	CloseFuncInvoked bool

	PingFunc        PingFunc
	PingFuncInvoked bool

	CallFunc        CallFunc
	CallFuncInvoked bool

	ShutdownFunc        ShutdownFunc
	ShutdownFuncInvoked bool

	ExtensionsFunc        ExtensionsFunc
	ExtensionsFuncInvoked bool

	RegisterExtensionFunc        RegisterExtensionFunc
	RegisterExtensionFuncInvoked bool

	DeregisterExtensionFunc        DeregisterExtensionFunc
	DeregisterExtensionFuncInvoked bool

	OptionsFunc        OptionsFunc
	OptionsFuncInvoked bool

	QueryFunc        QueryFunc
	QueryFuncInvoked bool

	GetQueryColumnsFunc        GetQueryColumnsFunc
	GetQueryColumnsFuncInvoked bool
}

func (*ExtensionManager) Call

func (*ExtensionManager) Close

func (m *ExtensionManager) Close()

func (*ExtensionManager) DeregisterExtension

func (*ExtensionManager) Extensions

func (*ExtensionManager) GetQueryColumns

func (m *ExtensionManager) GetQueryColumns(ctx context.Context, sql string) (*osquery.ExtensionResponse, error)

func (*ExtensionManager) Options

func (*ExtensionManager) Ping

func (*ExtensionManager) Query

func (*ExtensionManager) RegisterExtension

func (*ExtensionManager) Shutdown

func (m *ExtensionManager) Shutdown(ctx context.Context) error

type ExtensionsFunc

type ExtensionsFunc func(ctx context.Context) (osquery.InternalExtensionList, error)

type GetQueryColumnsFunc

type GetQueryColumnsFunc func(ctx context.Context, sql string) (*osquery.ExtensionResponse, error)

type OptionsFunc

type OptionsFunc func(ctx context.Context) (osquery.InternalOptionList, error)

type PingFunc

type PingFunc func(ctx context.Context) (*osquery.ExtensionStatus, error)

type QueryFunc

type QueryFunc func(ctx context.Context, sql string) (*osquery.ExtensionResponse, error)

type ShutdownFunc

type ShutdownFunc func(ctx context.Context) error

Jump to

Keyboard shortcuts

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