nodespec

package
v0.0.0-...-2caf503 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package nodespec gives us access to provider-specific node specification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInstanceTypeNotFoundErr

func IsInstanceTypeNotFoundErr(err error) bool

IsInstanceTypeNotFoundErr asserts instanceTypeNotFoundErr.

func IsVMSizeNotFoundErr

func IsVMSizeNotFoundErr(err error) bool

IsVMSizeNotFoundErr asserts vmSizeNotFoundErr.

Types

type InstanceType

type InstanceType struct {
	CPUCores      int    `yaml:"cpu_cores"`
	Description   string `yaml:"description"`
	MemorySizeGB  int    `yaml:"memory_size_gb"`
	StorageSizeGB int    `yaml:"storage_size_gb"`
}

InstanceType describes an AWS instance type

type ProviderAWS

type ProviderAWS struct {
	// contains filtered or unexported fields
}

ProviderAWS contains all provider specific info

func NewAWS

func NewAWS() (*ProviderAWS, error)

NewAWS initiates a

func (*ProviderAWS) GetInstanceTypeDetails

func (p *ProviderAWS) GetInstanceTypeDetails(name string) (*InstanceType, error)

GetInstanceTypeDetails returns info on a certain instance type

type ProviderAzure

type ProviderAzure struct {
	// contains filtered or unexported fields
}

ProviderAzure contains all provider specific info

func NewAzureProvider

func NewAzureProvider() (*ProviderAzure, error)

NewAzureProvider initiates a new Azure provider with the information about VM sizes.

func (*ProviderAzure) GetVMSizeDetails

func (p *ProviderAzure) GetVMSizeDetails(name string) (*VMSize, error)

GetVMSizeDetails returns info on a certain VM size

type VMSize

type VMSize struct {
	Description          string  `yaml:"description"`
	MaxDataDiskCount     int     `yaml:"maxDataDiskCount"`
	MemoryInMB           float64 `yaml:"memoryInMb"`
	Name                 string  `yaml:"name"`
	NumberOfCores        int64   `yaml:"numberOfCores"`
	OSDiskSizeInMB       int64   `yaml:"osDiskSizeInMb"`
	ResourceDiskSizeInMB float64 `yaml:"resourceDiskSizeInMb"`
}

Jump to

Keyboard shortcuts

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