github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/libnetwork/osl/sandbox.go (about)

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