github.com/qinghon/debinterface@v0.0.6/type.go (about)

     1  package debinterface
     2  
     3  import "net"
     4  
     5  type Bridge struct {
     6  	adp Interface
     7  	Script
     8  }
     9  type Script struct {
    10  	Interface
    11  	PreUp, Up, PostUp       []string
    12  	PreDown, Down, PostDown []string
    13  }
    14  type Address struct {
    15  	Interface
    16  	Address net.IP
    17  	Mask    net.IPMask
    18  }
    19  type PPP Interface
    20  
    21  func (b *Bridge) SetBridgeOpts(opts []string) {
    22  	b.Interface.SetBridgePorts("", "")
    23  
    24  }
    25  func (b *Bridge) GetBridgeOpts(opts []string) {
    26  
    27  }
    28  func (p *PPP) New() {
    29  
    30  }