Documentation ¶
Overview ¶
Package core provides functionality for managing core functionalities in Keploy.
Index ¶
- func GetPortToSendToKernel(_ context.Context, rules []config.BypassRule) []uint
- type App
- type AppInfo
- type Core
- func (c *Core) GetContainerIP(_ context.Context, id uint64) (string, error)
- func (c *Core) GetIncoming(ctx context.Context, id uint64, opts models.IncomingOptions) (<-chan *models.TestCase, error)
- func (c *Core) GetOutgoing(ctx context.Context, id uint64, opts models.OutgoingOptions) (<-chan *models.Mock, error)
- func (c *Core) Hook(ctx context.Context, id uint64, opts models.HookOptions) error
- func (c *Core) MockOutgoing(ctx context.Context, id uint64, opts models.OutgoingOptions) error
- func (c *Core) Run(ctx context.Context, id uint64, _ models.RunOptions) models.AppError
- func (c *Core) Setup(ctx context.Context, cmd string, opts models.SetupOptions) (uint64, error)
- type DestInfo
- type HookCfg
- type Hooks
- type NetworkAddress
- type OutgoingInfo
- type Proxy
- type ProxyOptions
- type Session
- type Sessions
- type TestBenchInfo
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPortToSendToKernel ¶
func GetPortToSendToKernel(_ context.Context, rules []config.BypassRule) []uint
Types ¶
type Core ¶
type Core struct { Proxy // embedding the Proxy interface to transfer the proxy methods to the core object Hooks // embedding the Hooks interface to transfer the hooks methods to the core object Tester // embedding the Tester interface to transfer the tester methods to the core object // contains filtered or unexported fields }
func (*Core) GetContainerIP ¶
func (*Core) GetIncoming ¶
func (*Core) GetOutgoing ¶
func (*Core) MockOutgoing ¶
type NetworkAddress ¶
type OutgoingInfo ¶
type Proxy ¶
type Proxy interface { StartProxy(ctx context.Context, opts ProxyOptions) error Record(ctx context.Context, id uint64, mocks chan<- *models.Mock, opts models.OutgoingOptions) error Mock(ctx context.Context, id uint64, opts models.OutgoingOptions) error SetMocks(ctx context.Context, id uint64, filtered []*models.Mock, unFiltered []*models.Mock) error GetConsumedMocks(ctx context.Context, id uint64) ([]string, error) }
Proxy listens on all available interfaces and forwards traffic to the destination
type ProxyOptions ¶
type Sessions ¶
type Sessions struct {
// contains filtered or unexported fields
}
func NewSessions ¶
func NewSessions() *Sessions
type TestBenchInfo ¶
Directories ¶
Path | Synopsis |
---|---|
Package app provides functionality for managing applications.
|
Package app provides functionality for managing applications. |
Package hooks provides functionality for managing hooks.
|
Package hooks provides functionality for managing hooks. |
conn
Package conn provides functionality for handling connections.
|
Package conn provides functionality for handling connections. |
structs
Package structs provides data structures for hooks.
|
Package structs provides data structures for hooks. |
Package proxy provides functionality for handling proxies.
|
Package proxy provides functionality for handling proxies. |
integrations
Package integrations provides functionality for integrating different types of services.
|
Package integrations provides functionality for integrating different types of services. |
integrations/generic
Package generic provides functionality for decoding generic dependencies.
|
Package generic provides functionality for decoding generic dependencies. |
integrations/grpc
Package grpc provides functionality for integrating with gRPC outgoing calls.
|
Package grpc provides functionality for integrating with gRPC outgoing calls. |
integrations/http
Package http provides functionality for handling HTTP outgoing calls.
|
Package http provides functionality for handling HTTP outgoing calls. |
integrations/mongo
Package mongo provides functionality for working with MongoDB outgoing calls.
|
Package mongo provides functionality for working with MongoDB outgoing calls. |
integrations/mysql
Package mysql provides the MySQL integration.
|
Package mysql provides the MySQL integration. |
integrations/mysql/recorder
Package recorder is used to record the MySQL traffic between the client and the server.
|
Package recorder is used to record the MySQL traffic between the client and the server. |
integrations/mysql/replayer
Package replayer is used to mock the MySQL traffic between the client and the server.
|
Package replayer is used to mock the MySQL traffic between the client and the server. |
integrations/mysql/utils
Package utils provides utility functions for MySQL packets
|
Package utils provides utility functions for MySQL packets |
integrations/mysql/wire
Package wire provides encoding and decoding operation of MySQL packets.
|
Package wire provides encoding and decoding operation of MySQL packets. |
integrations/mysql/wire/phase
Package phase contains the encoding and decoding functions for the different phases of the MySQL protocol.
|
Package phase contains the encoding and decoding functions for the different phases of the MySQL protocol. |
integrations/mysql/wire/phase/conn
Package conn provides decoding and encoding of connection phase mysql packets
|
Package conn provides decoding and encoding of connection phase mysql packets |
integrations/mysql/wire/phase/query
Package query provides functions to decode MySQL command phase packets.
|
Package query provides functions to decode MySQL command phase packets. |
integrations/mysql/wire/phase/query/preparedstmt
Package preparedstmt provides functionality for decoding prepared statement packets.
|
Package preparedstmt provides functionality for decoding prepared statement packets. |
integrations/mysql/wire/phase/query/rowscols
Package rowscols provides encoding and decoding of MySQL row & column packets.
|
Package rowscols provides encoding and decoding of MySQL row & column packets. |
integrations/mysql/wire/phase/query/utility
Package utility provides encoding and decoding of utility command packets.
|
Package utility provides encoding and decoding of utility command packets. |
integrations/postgres/v1
Package v1 provides functionality for decoding Postgres requests and responses.
|
Package v1 provides functionality for decoding Postgres requests and responses. |
integrations/redis
Package redis is the decode point for the redis application.
|
Package redis is the decode point for the redis application. |
integrations/scram
Package scram provides functionality for SCRAM authentication.
|
Package scram provides functionality for SCRAM authentication. |
integrations/util
Package util provides utility functions for the integration package.
|
Package util provides utility functions for the integration package. |
util
Package util provides utility functions for the proxy package.
|
Package util provides utility functions for the proxy package. |
Package tester provides functionality for testing keploy with itself
|
Package tester provides functionality for testing keploy with itself |
Click to show internal directories.
Click to hide internal directories.