egress

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialSpec

type CredentialSpec struct {
	Name       string
	Host       string
	PathPrefix string
	HeaderName string
	Value      string
}

type ProxyInfo

type ProxyInfo struct {
	ID                string
	RunID             string
	SessionID         string
	HostPort          int
	ProxyURL          string
	ContainerProxyURL string
	Mode              string
	NetworkName       string
	ContainerID       string
	PID               int
	Status            string
	CreatedAt         string
	UpdatedAt         string
}

type Service

type Service struct {
	DB                *sql.DB
	Paths             store.Paths
	DefaultRunID      string
	DefaultSessionID  string
	DefaultToolCallID string
}

func (Service) AllowHost

func (s Service) AllowHost(host string) error

func (Service) Check

func (s Service) Check(runID, sessionID, dstIP, host string) (security.DecisionRecord, error)

func (Service) Close

func (s Service) Close(proxyID string) error

func (Service) CloseForSession

func (s Service) CloseForSession(sessionID string) error

func (Service) EnsureProxy

func (s Service) EnsureProxy() (ProxyInfo, error)

func (Service) EnsureSessionProxy

func (s Service) EnsureSessionProxy(runID, sessionID string) (ProxyInfo, error)

func (Service) InjectCredential

func (s Service) InjectCredential(runID, sessionID string, spec CredentialSpec) error

func (Service) Inspect

func (s Service) Inspect(proxyID string) (ProxyInfo, error)

func (Service) Serve

func (s Service) Serve(proxyID string) error

func (Service) ServeAt

func (s Service) ServeAt(proxyID, listenAddr string) error

func (Service) Status

func (s Service) Status() ([]ProxyInfo, error)

Jump to

Keyboard shortcuts

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