compute

package
v0.0.0-...-eb49f3c Latest Latest
Warning

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

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

Documentation

Overview

Package compute provides structs and functions pertaining to compute resources.

Index

Constants

This section is empty.

Variables

View Source
var ErrESXEmpty = errors.New("ESX id is empty")
View Source
var ErrIPEmpty = errors.New("ip address is nil")
View Source
var ErrModelEmpty = errors.New("model is empty")
View Source
var ErrSerialEmpty = errors.New("serial number is nil")
View Source
var ErrServerIDEmtpy = errors.New("server id is empty")
View Source
var ErrVCenterEmpty = errors.New("VCenter id is empty")

Functions

This section is empty.

Types

type ESX

type ESX struct {
	zebra.NamedResource
	Credentials zebra.Credentials `json:"credentials"`
	ServerID    string            `json:"serverID"` //nolint:tagliatelle
	IP          net.IP            `json:"ip"`
}

An ESX represents an ESX server with credentials, an associated server, and IP.

func (*ESX) Validate

func (e *ESX) Validate(ctx context.Context) error

type Server

type Server struct {
	zebra.NamedResource
	Credentials  zebra.Credentials `json:"credentials"`
	SerialNumber string            `json:"serialNumber"`
	BoardIP      net.IP            `json:"boardIP"` //nolint:tagliatelle
	Model        string            `json:"model"`
}

A Server represents a server with credentials, a serial number, board IP, and model information.

func (*Server) Validate

func (s *Server) Validate(ctx context.Context) error

type VCenter

type VCenter struct {
	zebra.NamedResource
	Credentials zebra.Credentials `json:"credentials"`
	IP          net.IP            `json:"ip"`
}

A VCenter has credentials and an IP.

func (*VCenter) Validate

func (v *VCenter) Validate(ctx context.Context) error

type VM

type VM struct {
	zebra.NamedResource
	Credentials  zebra.Credentials `json:"credentials"`
	ESXID        string            `json:"esxID"`        //nolint:tagliatelle
	ManagementIP net.IP            `json:"managementIP"` //nolint:tagliatelle
	VCenterID    string            `json:"vCenterID"`    //nolint:tagliatelle
}

A VM is represented by a set of credentials, associated ESX ID, management IP, and VCenterID.

func (*VM) Validate

func (v *VM) Validate(ctx context.Context) error

Jump to

Keyboard shortcuts

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