provider

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Provider returns the Terraform provider for GNS3.

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 Link struct {
	LinkID string     `json:"link_id,omitempty"`
	Nodes  []LinkNode `json:"nodes"`
}

Link represents a GNS3 link between nodes.

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 Project

type Project struct {
	Name      string `json:"name"`
	ProjectID string `json:"project_id,omitempty"`
}

Project represents the structure for GNS3 project API requests/responses.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL