Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Connection properties. Hostname string `json:"hostname"` Username string `json:"username"` Password string `json:"password"` Version string `json:"version"` // Generated after Connect Cookie *http.Cookie `json:"cookie"` // HTTP transport options. Note that the VerifyCertificate setting is // only used if you do not specify a HTTP transport yourself. VerifyCertificate bool `json:"verify_certificate"` Transport *http.Transport `json:"-"` }
type Firmware ¶
type Firmware struct { BootedImage string `json:"booted_image"` CurrentVersion string `json:"current_version"` DefaultImage string `json:"default_image"` PrimaryVersion string `json:"primary_version"` SecondaryVersion string `json:"secondary_version"` FirmwareDetails map[string]interface{} `json:"details"` // contains filtered or unexported fields }
type Interface ¶
type Interface struct { // Connection properties. Name string `json:"name"` Description string `json:"description"` AdminState string `json:"admin"` InterfaceDetails map[string]interface{} `json:"details"` // contains filtered or unexported fields }
func (*Interface) Create ¶
Create performs POST to create Interface configuration on the given Client object.
func (*Interface) Delete ¶
Delete performs PUT to remove/default Interface configuration from the given Client object.
func (*Interface) Get ¶
Get performs GET to retrieve Interface configuration from the given Client object.
type L2Interface ¶
type L2Interface struct { // Connection properties. Interface Interface `json:"interface"` Description string `json:"description"` VlanMode string `json:"vlan_mode"` VlanIds []interface{} `json:"vlan_ids"` VlanTag int `json:"vlan_tag"` TrunkAllowedAll bool `json:"trunk_allowed_all"` NativeVlanTag bool `json:"native_vlan_tag"` InterfaceDetails map[string]interface{} `json:"details"` // contains filtered or unexported fields }
func (*L2Interface) Create ¶
func (i *L2Interface) Create(c *Client) error
Create performs PATCH to update L2Interface configuration on the given Client object.
func (*L2Interface) Delete ¶
func (i *L2Interface) Delete(c *Client) error
Delete performs PUT to remove/default L2Interface configuration from the given Client object.
func (*L2Interface) Get ¶
func (i *L2Interface) Get(c *Client) error
Get performs GET to retrieve L2Interface configuration from the given Client object.
func (*L2Interface) GetStatus ¶
func (i *L2Interface) GetStatus() bool
GetStatus returns True if L2Interface exists on Client object or False if not.
type RequestError ¶
A custom error struct
type Vlan ¶
type Vlan struct { // Connection properties. VlanId int `json:"id"` Name string `json:"name"` Description string `json:"description"` AdminState string `json:"admin_state"` VlanDetails map[string]interface{} `json:"details"` // contains filtered or unexported fields }
func (*Vlan) Delete ¶
Delete performs DELETE to remove VLAN configuration from the given Client object.