2015-07-02 05:00:48 +00:00
|
|
|
// Package osl describes structures and interfaces which abstract os entities
|
|
|
|
package osl
|
2015-04-13 18:40:42 +00:00
|
|
|
|
2018-05-18 21:10:14 +00:00
|
|
|
// SandboxType specify the time of the sandbox, this can be used to apply special configs
|
|
|
|
type SandboxType int
|
|
|
|
|
|
|
|
const (
|
|
|
|
// SandboxTypeIngress indicates that the sandbox is for the ingress
|
|
|
|
SandboxTypeIngress = iota
|
|
|
|
// SandboxTypeLoadBalancer indicates that the sandbox is a load balancer
|
|
|
|
SandboxTypeLoadBalancer = iota
|
|
|
|
)
|
|
|
|
|
2023-05-30 16:27:59 +00:00
|
|
|
type Iface struct {
|
|
|
|
SrcName, DstPrefix string
|
|
|
|
}
|
|
|
|
|
2023-04-27 23:45:15 +00:00
|
|
|
// IfaceOption is a function option type to set interface options.
|
2023-08-02 21:24:33 +00:00
|
|
|
type IfaceOption func(i *Interface) error
|
2023-04-27 23:45:15 +00:00
|
|
|
|
2023-04-28 07:34:42 +00:00
|
|
|
// NeighOption is a function option type to set neighbor options.
|
|
|
|
type NeighOption func(nh *neigh)
|