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 integration with MySQL outgoing.
|
Package mysql provides integration with MySQL outgoing. |
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.