rspec

package
v0.0.0-...-5c10511 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RspecTypeAdvertisement = "advertisement"
	RspecTypeManifest      = "manifest"
	RspecTypeRequest       = "request"
)
View Source
const (
	RspecLoginAuthenticationSSH = "ssh-keys"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Available

type Available struct {
	XMLName xml.Name `xml:"available"`
	Now     bool     `xml:"now,attr"`
}

type DiskImage

type DiskImage struct {
	XMLName xml.Name `xml:"disk_image"`
	Name    string   `xml:"name,attr"`
}

type HardwareType

type HardwareType struct {
	XMLName xml.Name `xml:"hardware_type"`
	Name    string   `xml:"name,attr"`
}

type Location

type Location struct {
	XMLName   xml.Name `xml:"location"`
	Country   string   `xml:"country,attr"`
	Latitude  string   `xml:"latitude,attr"`
	Longitude string   `xml:"longitude,attr"`
}

type Login

type Login struct {
	XMLName        xml.Name `xml:"login"`
	Authentication string   `xml:"authentication,attr"`
	Hostname       string   `xml:"hostname,attr"`
	Port           int      `xml:"port,attr"`
	Username       string   `xml:"username,attr"`
}

type Node

type Node struct {
	XMLName            xml.Name      `xml:"node"`
	ClientID           string        `xml:"client_id,attr,omitempty"`
	ComponentID        string        `xml:"component_id,attr,omitempty"`
	ComponentManagerID string        `xml:"component_manager_id,attr,omitempty"`
	ComponentName      string        `xml:"component_name,attr,omitempty"`
	SliverID           string        `xml:"sliver_id,attr,omitempty"`
	Exclusive          bool          `xml:"exclusive,attr"`
	HardwareType       *HardwareType `xml:"hardware_type,omitempty"`
	SliverType         SliverType    `xml:"sliver_type"`
	Services           *Services     `xml:"services,omitempty"`
	Available          *Available    `xml:"available,omitempty"`
	Location           *Location     `xml:"location,omitempty"`
}

type Rspec

type Rspec struct {
	XMLName xml.Name `xml:"http://www.geni.net/resources/rspec/3 rspec"`
	Type    string   `xml:"type,attr"`
	Nodes   []Node   `xml:"node"`
}

type Services

type Services struct {
	XMLName xml.Name `xml:"services"`
	Logins  []Login  `xml:"login"`
}

type SliverType

type SliverType struct {
	XMLName    xml.Name    `xml:"sliver_type"`
	Name       string      `xml:"name,attr"`
	DiskImages []DiskImage `xml:"disk_image"`
}

Jump to

Keyboard shortcuts

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