filereader

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AZ

type AZ struct {
	Name   string `yaml:"name"`
	Region string `yaml:"region"`
}

type FileInfo

type FileInfo struct {
	Regions  []Region  `yaml:"regions"`
	AZs      []AZ      `yaml:"azs"`
	Hosts    []Host    `yaml:"hosts"`
	VPCs     []VPC     `yaml:"tenants"`
	Networks []Network `yaml:"networks"`
	Subnets  []Subnet  `yaml:"subnets"`
	Routers  []Router  `yaml:"routers"`
	VMs      []VM      `yaml:"vms"`
}

type FileReader

type FileReader struct {
	Uuid         string
	UuidGenerate string
	Name         string
	RegionUuid   string
	// contains filtered or unexported fields
}

func NewFileReader

func NewFileReader(domain mysql.Domain) (*FileReader, error)

func (*FileReader) CheckAuth

func (f *FileReader) CheckAuth() error

func (*FileReader) ClearDebugLog

func (f *FileReader) ClearDebugLog()

func (*FileReader) GetCloudData

func (f *FileReader) GetCloudData() (model.Resource, error)

type Host

type Host struct {
	IP       string `yaml:"ip"`
	MemoryMb int    `yaml:"memory_mb"`
	VCPUs    int    `yaml:"vcpus"`
	AZ       string `yaml:"az"`
	Region   string `yaml:"region"`
}

type Network

type Network struct {
	Name           string `yaml:"name"`
	External       bool   `yaml:"external"`
	NetType        string `yaml:"net_type"`
	Shared         bool   `yaml:"shared"`
	SegmentationID int    `yaml:"segmentation_id"`
	VPC            string `yaml:"tenant_name"`
	AZ             string `yaml:"az"`
	Region         string `yaml:"region"`
}

type Port

type Port struct {
	IP     string `yaml:"ip_address"`
	Mac    string `yaml:"mac_address"`
	Subnet string `yaml:"subnet_name"`
}

type Region

type Region struct {
	Name string `yaml:"name"`
}

type Router

type Router struct {
	Name           string `yaml:"name"`
	GWLaunchServer string `yaml:"gw_launch_server"`
	VPC            string `yaml:"tenant_name"`
	Region         string `yaml:"region"`
	Ports          []Port `yaml:"ports"`
}

type Subnet

type Subnet struct {
	Name      string `yaml:"name"`
	CIDR      string `yaml:"cidr"`
	GatewayIP string `yaml:"gateway_ip"`
	Network   string `yaml:"network_name"`
}

type VM

type VM struct {
	Name         string `yaml:"name"`
	LaunchServer string `yaml:"launch_server"`
	VPC          string `yaml:"tenant_name"`
	AZ           string `yaml:"az"`
	Region       string `yaml:"region"`
	Ports        []Port `yaml:"ports"`
}

type VPC

type VPC struct {
	Name   string `yaml:"name"`
	Region string `yaml:"region"`
}

Jump to

Keyboard shortcuts

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