Documentation ¶
Index ¶
- type Bridge
- type Bridges
- type BridgesImpl
- func (b BridgesImpl) CreateBridge(input *CreateBridgeInput) (*CreateBridgeOutput, error)
- func (b BridgesImpl) DeleteBridge(input *DeleteBridgeInput) (*DeleteBridgeOutput, error)
- func (b BridgesImpl) GetBridge(input *GetBridgeInput) (*GetBridgeOutput, error)
- func (b BridgesImpl) ListBridges(input *ListBridgesInput) (*ListBridgesOutput, error)
- func (b BridgesImpl) UpdateBridge(input *UpdateBridgeInput) (*UpdateBridgeOutput, error)
- type CreateBridgeInput
- type CreateBridgeOutput
- type CreateInterfaceInput
- type CreateInterfaceOutput
- type CreateVlanInput
- type CreateVlanOutput
- type DeleteBridgeInput
- type DeleteBridgeOutput
- type DeleteInterfaceInput
- type DeleteInterfaceOutput
- type GetBridgeInput
- type GetBridgeOutput
- type GetInterfaceInput
- type GetInterfaceOutput
- type Interface
- type Interfaces
- type InterfacesImpl
- func (i InterfacesImpl) Bridges() Bridges
- func (i InterfacesImpl) CreateInterface(input *CreateInterfaceInput) (*CreateInterfaceOutput, error)
- func (i InterfacesImpl) DeleteInterface(input *DeleteInterfaceInput) (*DeleteInterfaceOutput, error)
- func (i InterfacesImpl) GetInterface(input *GetInterfaceInput) (*GetInterfaceOutput, error)
- func (i InterfacesImpl) ListInterfaces(input *ListInterfacesInput) (ListInterfacesOutput, error)
- func (i InterfacesImpl) UpdateInterface(input *UpdateInterfaceInput) (*UpdateInterfaceOutput, error)
- func (i InterfacesImpl) Vlans() Vlans
- type ListBridgesInput
- type ListBridgesOutput
- type ListInterfacesInput
- type ListInterfacesOutput
- type ListVlanOutput
- type UpdateBridgeInput
- type UpdateBridgeOutput
- type UpdateInterfaceInput
- type UpdateInterfaceOutput
- type Vlans
- type VlansImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct { Id string `json:".id,omitempty"` ActualMtu string `json:"actual-mtu,omitempty"` AgeingTime string `json:"ageing-time,omitempty"` Arp string `json:"arp,omitempty"` ArpTimeout string `json:"arp-timeout,omitempty"` AutoMac string `json:"auto-mac,omitempty"` DhcpSnooping string `json:"dhcp-snooping,omitempty"` Disabled string `json:"disabled,omitempty"` FastForward string `json:"fast-forward,omitempty"` ForwardDelay string `json:"forward-delay,omitempty"` IgmpSnooping string `json:"igmp-snooping,omitempty"` L2Mtu string `json:"l2mtu,omitempty"` MacAddress string `json:"mac-address,omitempty"` MaxMessageAge string `json:"max-message-age,omitempty"` Mtu string `json:"mtu,omitempty"` Name string `json:"name,omitempty"` Priority string `json:"priority,omitempty"` ProtocolMode string `json:"protocol-mode,omitempty"` Running string `json:"running,omitempty"` TransmitHoldCount string `json:"transmit-hold-count,omitempty"` VlanFiltering string `json:"vlan-filtering,omitempty"` }
type Bridges ¶
type Bridges interface { ListBridges(input *ListBridgesInput) (*ListBridgesOutput, error) GetBridge(input *GetBridgeInput) (*GetBridgeOutput, error) CreateBridge(input *CreateBridgeInput) (*CreateBridgeOutput, error) UpdateBridge(input *UpdateBridgeInput) (*UpdateBridgeOutput, error) DeleteBridge(input *DeleteBridgeInput) (*DeleteBridgeOutput, error) }
type BridgesImpl ¶
type BridgesImpl struct {
Client *resty.Client
}
func (BridgesImpl) CreateBridge ¶
func (b BridgesImpl) CreateBridge(input *CreateBridgeInput) (*CreateBridgeOutput, error)
func (BridgesImpl) DeleteBridge ¶
func (b BridgesImpl) DeleteBridge(input *DeleteBridgeInput) (*DeleteBridgeOutput, error)
func (BridgesImpl) GetBridge ¶
func (b BridgesImpl) GetBridge(input *GetBridgeInput) (*GetBridgeOutput, error)
func (BridgesImpl) ListBridges ¶
func (b BridgesImpl) ListBridges(input *ListBridgesInput) (*ListBridgesOutput, error)
func (BridgesImpl) UpdateBridge ¶
func (b BridgesImpl) UpdateBridge(input *UpdateBridgeInput) (*UpdateBridgeOutput, error)
type CreateBridgeInput ¶
type CreateBridgeInput struct {
Id string
}
type CreateBridgeOutput ¶
type CreateBridgeOutput struct {
Bridge Bridge
}
type CreateInterfaceInput ¶
type CreateInterfaceOutput ¶
type CreateInterfaceOutput struct {
Interface Interface
}
type CreateVlanInput ¶
type CreateVlanInput struct { }
type CreateVlanOutput ¶
type CreateVlanOutput struct { }
type DeleteBridgeInput ¶
type DeleteBridgeInput struct {
Id string
}
type DeleteBridgeOutput ¶
type DeleteBridgeOutput struct {
Success bool
}
type DeleteInterfaceInput ¶
type DeleteInterfaceInput struct {
Id string
}
type DeleteInterfaceOutput ¶
type DeleteInterfaceOutput struct {
Success bool
}
type GetBridgeInput ¶
type GetBridgeInput struct {
Id string
}
type GetBridgeOutput ¶
type GetBridgeOutput Bridge
type GetInterfaceInput ¶
type GetInterfaceInput struct {
Id string
}
type GetInterfaceOutput ¶
type GetInterfaceOutput Interface
type Interface ¶
type Interface struct { Id string `json:".id,omitempty"` ActualMtu string `json:"actual-mtu,omitempty"` Disabled string `json:"disabled,omitempty"` FpRxByte string `json:"fp-rx-byte,omitempty"` FpRxPacket string `json:"fp-rx-packet,omitempty"` FpTxByte string `json:"fp-tx-byte,omitempty"` FpTxPacket string `json:"fp-tx-packet,omitempty"` LinkDowns string `json:"link-downs,omitempty"` Mtu string `json:"mtu,omitempty"` Name string `json:"name,omitempty"` Running string `json:"running,omitempty"` RxByte string `json:"rx-byte,omitempty"` RxDrop string `json:"rx-drop,omitempty"` RxError string `json:"rx-error,omitempty"` RxPacket string `json:"rx-packet,omitempty"` TxByte string `json:"tx-byte,omitempty"` TxDrop string `json:"tx-drop,omitempty"` TxError string `json:"tx-error,omitempty"` TxPacket string `json:"tx-packet,omitempty"` TxQueueDrop string `json:"tx-queue-drop,omitempty"` Type string `json:"type,omitempty"` }
type Interfaces ¶
type Interfaces interface { ListInterfaces(input *ListInterfacesInput) (ListInterfacesOutput, error) GetInterface(input *GetInterfaceInput) (*GetInterfaceOutput, error) CreateInterface(input *CreateInterfaceInput) (*CreateInterfaceOutput, error) UpdateInterface(input *UpdateInterfaceInput) (*UpdateInterfaceOutput, error) DeleteInterface(input *DeleteInterfaceInput) (*DeleteInterfaceOutput, error) Vlans() Vlans Bridges() Bridges }
type InterfacesImpl ¶
type InterfacesImpl struct {
Client *resty.Client
}
func (InterfacesImpl) Bridges ¶
func (i InterfacesImpl) Bridges() Bridges
func (InterfacesImpl) CreateInterface ¶
func (i InterfacesImpl) CreateInterface(input *CreateInterfaceInput) (*CreateInterfaceOutput, error)
func (InterfacesImpl) DeleteInterface ¶
func (i InterfacesImpl) DeleteInterface(input *DeleteInterfaceInput) (*DeleteInterfaceOutput, error)
func (InterfacesImpl) GetInterface ¶
func (i InterfacesImpl) GetInterface(input *GetInterfaceInput) (*GetInterfaceOutput, error)
func (InterfacesImpl) ListInterfaces ¶
func (i InterfacesImpl) ListInterfaces(input *ListInterfacesInput) (ListInterfacesOutput, error)
func (InterfacesImpl) UpdateInterface ¶
func (i InterfacesImpl) UpdateInterface(input *UpdateInterfaceInput) (*UpdateInterfaceOutput, error)
func (InterfacesImpl) Vlans ¶
func (i InterfacesImpl) Vlans() Vlans
type ListBridgesInput ¶
type ListBridgesInput struct{}
type ListBridgesOutput ¶
type ListBridgesOutput []Bridge
type ListInterfacesInput ¶
type ListInterfacesInput struct {
Type string `url:"type,omitempty"`
}
type ListInterfacesOutput ¶
type ListInterfacesOutput []Interface
type ListVlanOutput ¶
type ListVlanOutput struct {
Interfaces []Interface
}
type UpdateBridgeInput ¶
type UpdateBridgeInput struct {
Id string
}
type UpdateBridgeOutput ¶
type UpdateBridgeOutput struct {
Bridge Bridge
}
type UpdateInterfaceInput ¶
type UpdateInterfaceOutput ¶
type UpdateInterfaceOutput struct {
Interface Interface
}
type Vlans ¶
type Vlans interface { ListVlans() (*ListVlanOutput, error) CreateVlan(req *CreateVlanInput) (*CreateVlanOutput, error) }
type VlansImpl ¶
type VlansImpl struct {
Client *resty.Client
}
func (VlansImpl) CreateVlan ¶
func (v VlansImpl) CreateVlan(req *CreateVlanInput) (*CreateVlanOutput, error)
func (VlansImpl) ListVlans ¶
func (v VlansImpl) ListVlans() (*ListVlanOutput, error)
Click to show internal directories.
Click to hide internal directories.