Documentation
¶
Overview ¶
Package egress enforces outbound policy and brokers sandbox credentials.
Index ¶
- Constants
- func TrustEnvironment() []string
- type Dependencies
- type Firewall
- func (f *Firewall) Config() types.EgressConfig
- func (f *Firewall) Register(id string, ips []string, policy Policy) error
- func (f *Firewall) Start(ctx context.Context) error
- func (f *Firewall) Stop()
- func (f *Firewall) TrustBundle(id, directory string) (string, error)
- func (f *Firewall) Unregister(id string)
- type Policy
Constants ¶
View Source
const TrustBundlePath = "/etc/beam/ca-certificates.crt"
Variables ¶
This section is empty.
Functions ¶
func TrustEnvironment ¶
func TrustEnvironment() []string
Types ¶
type Dependencies ¶
type Firewall ¶
type Firewall struct {
// contains filtered or unexported fields
}
func NewFirewall ¶
func NewFirewall(config types.EgressConfig, addresses []string, deps Dependencies) *Firewall
func (*Firewall) Config ¶
func (f *Firewall) Config() types.EgressConfig
func (*Firewall) TrustBundle ¶
TrustBundle writes public certificates only; the CA key never leaves memory.
func (*Firewall) Unregister ¶
Click to show internal directories.
Click to hide internal directories.