Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cloud ¶ added in v1.1.0
type Cloud struct { Name string `json:"name"` NodeType string `json:"node_type"` ComputeID string `json:"compute_id,omitempty"` NodeID string `json:"node_id,omitempty"` X int `json:"x,omitempty"` // ✅ Added X coordinate Y int `json:"y,omitempty"` // ✅ Added Y coordinate }
Cloud represents a GNS3 cloud node API request/response.
type DockerNode ¶ added in v1.2.0
type DockerNode struct { Name string `json:"name"` NodeType string `json:"node_type"` ComputeID string `json:"compute_id,omitempty"` Properties DockerProperties `json:"properties"` NodeID string `json:"node_id,omitempty"` X int `json:"x,omitempty"` // Added X coordinate Y int `json:"y,omitempty"` // Added Y coordinate }
DockerNode represents the JSON payload for creating a Docker node.
type DockerProperties ¶ added in v1.2.0
type DockerProperties struct { Image string `json:"image"` Environment *string `json:"environment,omitempty"` ConsoleType string `json:"console_type"` ExtraVolumes []string `json:"extra_volumes,omitempty"` // Moved inside properties }
DockerProperties holds Docker-specific options for a node.
type LinkNode ¶
type LinkNode struct { NodeID string `json:"node_id"` AdapterNumber int `json:"adapter_number"` PortNumber int `json:"port_number"` }
LinkNode represents a node in a GNS3 link.
type ProviderConfig ¶
type ProviderConfig struct {
Host string
}
ProviderConfig holds configuration for the provider.
type Switch ¶ added in v1.1.0
type Switch struct { Name string `json:"name"` NodeType string `json:"node_type"` ComputeID string `json:"compute_id,omitempty"` NodeID string `json:"node_id,omitempty"` X int `json:"x,omitempty"` // ✅ Added X coordinate Y int `json:"y,omitempty"` // ✅ Added Y coordinate }
Switch represents a GNS3 switch node API request/response.
Click to show internal directories.
Click to hide internal directories.