github.com/vishvananda/netlink@v1.3.0/handle_unspecified.go (about)

     1  // +build !linux
     2  
     3  package netlink
     4  
     5  import (
     6  	"net"
     7  	"time"
     8  
     9  	"github.com/vishvananda/netns"
    10  )
    11  
    12  type Handle struct{}
    13  
    14  func NewHandle(nlFamilies ...int) (*Handle, error) {
    15  	return nil, ErrNotImplemented
    16  }
    17  
    18  func NewHandleAt(ns netns.NsHandle, nlFamilies ...int) (*Handle, error) {
    19  	return nil, ErrNotImplemented
    20  }
    21  
    22  func NewHandleAtFrom(newNs, curNs netns.NsHandle) (*Handle, error) {
    23  	return nil, ErrNotImplemented
    24  }
    25  
    26  func (h *Handle) Close() {}
    27  
    28  func (h *Handle) Delete() {}
    29  
    30  func (h *Handle) SupportsNetlinkFamily(nlFamily int) bool {
    31  	return false
    32  }
    33  
    34  func (h *Handle) SetSocketTimeout(to time.Duration) error {
    35  	return ErrNotImplemented
    36  }
    37  
    38  func (h *Handle) SetPromiscOn(link Link) error {
    39  	return ErrNotImplemented
    40  }
    41  
    42  func (h *Handle) SetPromiscOff(link Link) error {
    43  	return ErrNotImplemented
    44  }
    45  
    46  func (h *Handle) LinkSetUp(link Link) error {
    47  	return ErrNotImplemented
    48  }
    49  
    50  func (h *Handle) LinkSetDown(link Link) error {
    51  	return ErrNotImplemented
    52  }
    53  
    54  func (h *Handle) LinkSetMTU(link Link, mtu int) error {
    55  	return ErrNotImplemented
    56  }
    57  
    58  func (h *Handle) LinkSetName(link Link, name string) error {
    59  	return ErrNotImplemented
    60  }
    61  
    62  func (h *Handle) LinkSetAlias(link Link, name string) error {
    63  	return ErrNotImplemented
    64  }
    65  
    66  func (h *Handle) LinkSetHardwareAddr(link Link, hwaddr net.HardwareAddr) error {
    67  	return ErrNotImplemented
    68  }
    69  
    70  func (h *Handle) LinkSetVfHardwareAddr(link Link, vf int, hwaddr net.HardwareAddr) error {
    71  	return ErrNotImplemented
    72  }
    73  
    74  func (h *Handle) LinkSetVfVlan(link Link, vf, vlan int) error {
    75  	return ErrNotImplemented
    76  }
    77  
    78  func (h *Handle) LinkSetVfVlanQos(link Link, vf, vlan, qos int) error {
    79  	return ErrNotImplemented
    80  }
    81  
    82  func (h *Handle) LinkSetVfVlanQosProto(link Link, vf, vlan, qos, proto int) error {
    83  	return ErrNotImplemented
    84  }
    85  
    86  func (h *Handle) LinkSetVfTxRate(link Link, vf, rate int) error {
    87  	return ErrNotImplemented
    88  }
    89  
    90  func (h *Handle) LinkSetVfRate(link Link, vf, minRate, maxRate int) error {
    91  	return ErrNotImplemented
    92  }
    93  
    94  func (h *Handle) LinkSetMaster(link Link, master Link) error {
    95  	return ErrNotImplemented
    96  }
    97  
    98  func (h *Handle) LinkSetNoMaster(link Link) error {
    99  	return ErrNotImplemented
   100  }
   101  
   102  func (h *Handle) LinkSetMasterByIndex(link Link, masterIndex int) error {
   103  	return ErrNotImplemented
   104  }
   105  
   106  func (h *Handle) LinkSetNsPid(link Link, nspid int) error {
   107  	return ErrNotImplemented
   108  }
   109  
   110  func (h *Handle) LinkSetNsFd(link Link, fd int) error {
   111  	return ErrNotImplemented
   112  }
   113  
   114  func (h *Handle) LinkAdd(link Link) error {
   115  	return ErrNotImplemented
   116  }
   117  
   118  func (h *Handle) LinkDel(link Link) error {
   119  	return ErrNotImplemented
   120  }
   121  
   122  func (h *Handle) LinkByName(name string) (Link, error) {
   123  	return nil, ErrNotImplemented
   124  }
   125  
   126  func (h *Handle) LinkByAlias(alias string) (Link, error) {
   127  	return nil, ErrNotImplemented
   128  }
   129  
   130  func (h *Handle) LinkByIndex(index int) (Link, error) {
   131  	return nil, ErrNotImplemented
   132  }
   133  
   134  func (h *Handle) LinkList() ([]Link, error) {
   135  	return nil, ErrNotImplemented
   136  }
   137  
   138  func (h *Handle) LinkSetHairpin(link Link, mode bool) error {
   139  	return ErrNotImplemented
   140  }
   141  
   142  func (h *Handle) LinkSetGuard(link Link, mode bool) error {
   143  	return ErrNotImplemented
   144  }
   145  
   146  func (h *Handle) LinkSetFastLeave(link Link, mode bool) error {
   147  	return ErrNotImplemented
   148  }
   149  
   150  func (h *Handle) LinkSetLearning(link Link, mode bool) error {
   151  	return ErrNotImplemented
   152  }
   153  
   154  func (h *Handle) LinkSetRootBlock(link Link, mode bool) error {
   155  	return ErrNotImplemented
   156  }
   157  
   158  func (h *Handle) LinkSetFlood(link Link, mode bool) error {
   159  	return ErrNotImplemented
   160  }
   161  
   162  func (h *Handle) LinkSetTxQLen(link Link, qlen int) error {
   163  	return ErrNotImplemented
   164  }
   165  
   166  func (h *Handle) LinkSetGroup(link Link, group int) error {
   167  	return ErrNotImplemented
   168  }
   169  
   170  func (h *Handle) LinkSetGSOMaxSize(link Link, maxSize int) error {
   171  	return ErrNotImplemented
   172  }
   173  
   174  func (h *Handle) LinkSetGROMaxSize(link Link, maxSize int) error {
   175  	return ErrNotImplemented
   176  }
   177  
   178  func (h *Handle) LinkSetGSOIPv4MaxSize(link Link, maxSize int) error {
   179  	return ErrNotImplemented
   180  }
   181  
   182  func (h *Handle) LinkSetGROIPv4MaxSize(link Link, maxSize int) error {
   183  	return ErrNotImplemented
   184  }
   185  
   186  func (h *Handle) setProtinfoAttr(link Link, mode bool, attr int) error {
   187  	return ErrNotImplemented
   188  }
   189  
   190  func (h *Handle) AddrAdd(link Link, addr *Addr) error {
   191  	return ErrNotImplemented
   192  }
   193  
   194  func (h *Handle) AddrDel(link Link, addr *Addr) error {
   195  	return ErrNotImplemented
   196  }
   197  
   198  func (h *Handle) AddrList(link Link, family int) ([]Addr, error) {
   199  	return nil, ErrNotImplemented
   200  }
   201  
   202  func (h *Handle) ClassDel(class Class) error {
   203  	return ErrNotImplemented
   204  }
   205  
   206  func (h *Handle) ClassChange(class Class) error {
   207  	return ErrNotImplemented
   208  }
   209  
   210  func (h *Handle) ClassReplace(class Class) error {
   211  	return ErrNotImplemented
   212  }
   213  
   214  func (h *Handle) ClassAdd(class Class) error {
   215  	return ErrNotImplemented
   216  }
   217  
   218  func (h *Handle) ClassList(link Link, parent uint32) ([]Class, error) {
   219  	return nil, ErrNotImplemented
   220  }
   221  
   222  func (h *Handle) FilterDel(filter Filter) error {
   223  	return ErrNotImplemented
   224  }
   225  
   226  func (h *Handle) FilterAdd(filter Filter) error {
   227  	return ErrNotImplemented
   228  }
   229  
   230  func (h *Handle) FilterList(link Link, parent uint32) ([]Filter, error) {
   231  	return nil, ErrNotImplemented
   232  }
   233  
   234  func (h *Handle) NeighAdd(neigh *Neigh) error {
   235  	return ErrNotImplemented
   236  }
   237  
   238  func (h *Handle) NeighSet(neigh *Neigh) error {
   239  	return ErrNotImplemented
   240  }
   241  
   242  func (h *Handle) NeighAppend(neigh *Neigh) error {
   243  	return ErrNotImplemented
   244  }
   245  
   246  func (h *Handle) NeighDel(neigh *Neigh) error {
   247  	return ErrNotImplemented
   248  }
   249  
   250  func (h *Handle) NeighList(linkIndex, family int) ([]Neigh, error) {
   251  	return nil, ErrNotImplemented
   252  }
   253  
   254  func (h *Handle) NeighProxyList(linkIndex, family int) ([]Neigh, error) {
   255  	return nil, ErrNotImplemented
   256  }
   257  
   258  func (h *Handle) RouteAdd(route *Route) error {
   259  	return ErrNotImplemented
   260  }
   261  
   262  func (h *Handle) RouteAppend(route *Route) error {
   263  	return ErrNotImplemented
   264  }
   265  
   266  func (h *Handle) RouteChange(route *Route) error {
   267  	return ErrNotImplemented
   268  }
   269  
   270  func (h *Handle) RouteDel(route *Route) error {
   271  	return ErrNotImplemented
   272  }
   273  
   274  func (h *Handle) RouteGet(destination net.IP) ([]Route, error) {
   275  	return nil, ErrNotImplemented
   276  }
   277  
   278  func (h *Handle) RouteList(link Link, family int) ([]Route, error) {
   279  	return nil, ErrNotImplemented
   280  }
   281  
   282  func (h *Handle) RouteListFiltered(family int, filter *Route, filterMask uint64) ([]Route, error) {
   283  	return nil, ErrNotImplemented
   284  }
   285  
   286  func (h *Handle) RouteReplace(route *Route) error {
   287  	return ErrNotImplemented
   288  }
   289  
   290  func (h *Handle) RuleAdd(rule *Rule) error {
   291  	return ErrNotImplemented
   292  }
   293  
   294  func (h *Handle) RuleDel(rule *Rule) error {
   295  	return ErrNotImplemented
   296  }
   297  
   298  func (h *Handle) RuleList(family int) ([]Rule, error) {
   299  	return nil, ErrNotImplemented
   300  }