sandbox.go 675 B

12345678910111213141516171819202122
  1. // Package osl describes structures and interfaces which abstract os entities
  2. package osl
  3. // SandboxType specify the time of the sandbox, this can be used to apply special configs
  4. type SandboxType int
  5. const (
  6. // SandboxTypeIngress indicates that the sandbox is for the ingress
  7. SandboxTypeIngress = iota
  8. // SandboxTypeLoadBalancer indicates that the sandbox is a load balancer
  9. SandboxTypeLoadBalancer = iota
  10. )
  11. type Iface struct {
  12. SrcName, DstPrefix string
  13. }
  14. // IfaceOption is a function option type to set interface options.
  15. type IfaceOption func(i *Interface) error
  16. // NeighOption is a function option type to set neighbor options.
  17. type NeighOption func(nh *neigh)