github.com/vishvananda/netlink@v1.1.0/conntrack_unspecified.go (about)

     1  // +build !linux
     2  
     3  package netlink
     4  
     5  // ConntrackTableType Conntrack table for the netlink operation
     6  type ConntrackTableType uint8
     7  
     8  // InetFamily Family type
     9  type InetFamily uint8
    10  
    11  // ConntrackFlow placeholder
    12  type ConntrackFlow struct{}
    13  
    14  // ConntrackFilter placeholder
    15  type ConntrackFilter struct{}
    16  
    17  // ConntrackTableList returns the flow list of a table of a specific family
    18  // conntrack -L [table] [options]          List conntrack or expectation table
    19  func ConntrackTableList(table ConntrackTableType, family InetFamily) ([]*ConntrackFlow, error) {
    20  	return nil, ErrNotImplemented
    21  }
    22  
    23  // ConntrackTableFlush flushes all the flows of a specified table
    24  // conntrack -F [table]            Flush table
    25  // The flush operation applies to all the family types
    26  func ConntrackTableFlush(table ConntrackTableType) error {
    27  	return ErrNotImplemented
    28  }
    29  
    30  // ConntrackDeleteFilter deletes entries on the specified table on the base of the filter
    31  // conntrack -D [table] parameters         Delete conntrack or expectation
    32  func ConntrackDeleteFilter(table ConntrackTableType, family InetFamily, filter *ConntrackFilter) (uint, error) {
    33  	return 0, ErrNotImplemented
    34  }
    35  
    36  // ConntrackTableList returns the flow list of a table of a specific family using the netlink handle passed
    37  // conntrack -L [table] [options]          List conntrack or expectation table
    38  func (h *Handle) ConntrackTableList(table ConntrackTableType, family InetFamily) ([]*ConntrackFlow, error) {
    39  	return nil, ErrNotImplemented
    40  }
    41  
    42  // ConntrackTableFlush flushes all the flows of a specified table using the netlink handle passed
    43  // conntrack -F [table]            Flush table
    44  // The flush operation applies to all the family types
    45  func (h *Handle) ConntrackTableFlush(table ConntrackTableType) error {
    46  	return ErrNotImplemented
    47  }
    48  
    49  // ConntrackDeleteFilter deletes entries on the specified table on the base of the filter using the netlink handle passed
    50  // conntrack -D [table] parameters         Delete conntrack or expectation
    51  func (h *Handle) ConntrackDeleteFilter(table ConntrackTableType, family InetFamily, filter *ConntrackFilter) (uint, error) {
    52  	return 0, ErrNotImplemented
    53  }