resources

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeResource

type ComputeResource struct {
	Identification *ResourceIdentification
	Specs          *ComputeResourceSpecs
}

ComputeResource is the struct that contains the info of a compute resource

func (ComputeResource) GetAddress

func (r ComputeResource) GetAddress() string

GetAddress returns the address of the resource

func (ComputeResource) GetIdentification

func (r ComputeResource) GetIdentification() *ResourceIdentification

GetIdentification returns the identification of the resource

func (ComputeResource) IsSupported

func (r ComputeResource) IsSupported() bool

IsSupported returns true if the resource is supported, false otherwise

type ComputeResourceSpecs

type ComputeResourceSpecs struct {
	GpuTypes   []string
	HddStorage decimal.Decimal
	SsdStorage decimal.Decimal
	MemoryMb   int32
	VCPUs      int32
	CPUType    string
}

ComputeResourceSpecs is the struct that contains the specs of a compute resource

type DataImageResource

type DataImageResource struct {
	Identification *ResourceIdentification
	DataImageSpecs []*DataImageSpecs
}

DataImageResource is the struct that contains the info of a data image resource

func (DataImageResource) GetAddress

func (r DataImageResource) GetAddress() string

GetAddress returns the address of the resource

func (DataImageResource) GetIdentification

func (r DataImageResource) GetIdentification() *ResourceIdentification

GetIdentification returns the identification of the resource

func (DataImageResource) GetKey

func (r DataImageResource) GetKey() string

GetKey returns the key of the resource

type DataImageSpecs

type DataImageSpecs struct {
	DiskSizeGb float64
	DeviceName string
	VolumeType string
}

DataImageSpecs is the struct that contains the specs of a data image

type DataResource

type DataResource interface {
	GetIdentification() *ResourceIdentification
	GetAddress() string
	GetKey() string
}

DataResource is the interface that contains the info of a data resource

type EbsDataResource added in v0.3.0

type EbsDataResource struct {
	Identification *ResourceIdentification
	DataImageSpecs []*DataImageSpecs
	AwsId          string
}

func (EbsDataResource) GetAddress added in v0.3.0

func (r EbsDataResource) GetAddress() string

func (EbsDataResource) GetIdentification added in v0.3.0

func (r EbsDataResource) GetIdentification() *ResourceIdentification

func (EbsDataResource) GetKey added in v0.3.0

func (r EbsDataResource) GetKey() string

type Resource

type Resource interface {
	IsSupported() bool
	GetIdentification() *ResourceIdentification
	GetAddress() string
}

Resource is the interface that contains the info of a resource

type ResourceIdentification

type ResourceIdentification struct {
	// Indentification
	Name              string
	ResourceType      string
	Provider          providers.Provider
	Region            string
	Count             int64
	ReplicationFactor int32
	Address           string
}

ResourceIdentification is the struct that contains the identification of a resource

type UnsupportedResource

type UnsupportedResource struct {
	Identification *ResourceIdentification
}

UnsupportedResource is the struct that contains the info of an unsupported resource

func (UnsupportedResource) GetAddress

func (r UnsupportedResource) GetAddress() string

GetAddress returns the address of the resource

func (UnsupportedResource) GetIdentification

func (r UnsupportedResource) GetIdentification() *ResourceIdentification

GetIdentification returns the identification of the resource

func (UnsupportedResource) IsSupported

func (r UnsupportedResource) IsSupported() bool

IsSupported returns true if the resource is supported, false otherwise

Jump to

Keyboard shortcuts

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