openstack

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GBToMBConversion is the multiplier to convert GB to MB.
	GBToMBConversion = 1024
	// RegexMatchGroups is the expected number of groups in platform name regex.
	RegexMatchGroups = 3
	// IPv6Version is the version number for IPv6.
	IPv6Version = 6
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	ID              string                   `json:"id"`
	Name            string                   `json:"name"`
	Status          string                   `json:"status"`
	VMState         string                   `json:"OS-EXT-STS:vm_state"`
	Flavor          any                      `json:"flavor"`
	Addresses       map[string]interface{}   `json:"addresses"`
	Metadata        any                      `json:"metadata"`
	Image           any                      `json:"image"`
	ImageMetadata   any                      `json:"image_metadata"`
	AttachedVolumes []servers.AttachedVolume `json:"os-extended-volumes:volumes_attached"`
}

type Source

type Source struct {
	common.Config

	// OpenStack API data
	Servers  []Server
	Flavors  []flavors.Flavor
	Networks []networks.Network
	Volumes  []volumes.Volume
	Images   []images.Image

	// Gophercloud clients
	ComputeClient      *gophercloud.ServiceClient
	NetworkClient      *gophercloud.ServiceClient
	BlockStorageClient *gophercloud.ServiceClient
	ImageClient        *gophercloud.ServiceClient
}

func (*Source) Init

func (oss *Source) Init() error

func (*Source) Sync

func (oss *Source) Sync(nbi *inventory.NetboxInventory) error

Jump to

Keyboard shortcuts

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