github.com/vishvananda/netlink@v1.3.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 // CustomConntrackFilter placeholder 15 type CustomConntrackFilter struct{} 16 17 // ConntrackFilter placeholder 18 type ConntrackFilter struct{} 19 20 // ConntrackTableList returns the flow list of a table of a specific family 21 // conntrack -L [table] [options] List conntrack or expectation table 22 func ConntrackTableList(table ConntrackTableType, family InetFamily) ([]*ConntrackFlow, error) { 23 return nil, ErrNotImplemented 24 } 25 26 // ConntrackTableFlush flushes all the flows of a specified table 27 // conntrack -F [table] Flush table 28 // The flush operation applies to all the family types 29 func ConntrackTableFlush(table ConntrackTableType) error { 30 return ErrNotImplemented 31 } 32 33 // ConntrackDeleteFilter deletes entries on the specified table on the base of the filter 34 // conntrack -D [table] parameters Delete conntrack or expectation 35 // 36 // Deprecated: use [ConntrackDeleteFilter] instead. 37 func ConntrackDeleteFilter(table ConntrackTableType, family InetFamily, filter *ConntrackFilter) (uint, error) { 38 return 0, ErrNotImplemented 39 } 40 41 // ConntrackDeleteFilters deletes entries on the specified table matching any of the specified filters 42 // conntrack -D [table] parameters Delete conntrack or expectation 43 func ConntrackDeleteFilters(table ConntrackTableType, family InetFamily, filters ...CustomConntrackFilter) (uint, error) { 44 return 0, ErrNotImplemented 45 } 46 47 // ConntrackTableList returns the flow list of a table of a specific family using the netlink handle passed 48 // conntrack -L [table] [options] List conntrack or expectation table 49 func (h *Handle) ConntrackTableList(table ConntrackTableType, family InetFamily) ([]*ConntrackFlow, error) { 50 return nil, ErrNotImplemented 51 } 52 53 // ConntrackTableFlush flushes all the flows of a specified table using the netlink handle passed 54 // conntrack -F [table] Flush table 55 // The flush operation applies to all the family types 56 func (h *Handle) ConntrackTableFlush(table ConntrackTableType) error { 57 return ErrNotImplemented 58 } 59 60 // ConntrackDeleteFilter deletes entries on the specified table on the base of the filter using the netlink handle passed 61 // conntrack -D [table] parameters Delete conntrack or expectation 62 // 63 // Deprecated: use [Handle.ConntrackDeleteFilters] instead. 64 func (h *Handle) ConntrackDeleteFilter(table ConntrackTableType, family InetFamily, filter *ConntrackFilter) (uint, error) { 65 return 0, ErrNotImplemented 66 } 67 68 // ConntrackDeleteFilters deletes entries on the specified table matching any of the specified filters using the netlink handle passed 69 // conntrack -D [table] parameters Delete conntrack or expectation 70 func (h *Handle) ConntrackDeleteFilters(table ConntrackTableType, family InetFamily, filters ...CustomConntrackFilter) (uint, error) { 71 return 0, ErrNotImplemented 72 }