Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericResource ¶
type GenericResource struct { Address string Name string Region string Provider providers.Provider GPUTypes []string CPUTypes []string VCPUs int32 MemoryMb int32 Storage Storage ReplicationFactor int32 }
GenericResource is a struct that contains the information of a generic resource
func GetResource ¶
func GetResource(instanceType string, zone string, provider providers.Provider) (GenericResource, error)
GetResource returns a GenericResource from an instance type
func (GenericResource) GetAddress ¶
func (g GenericResource) GetAddress() string
GetAddress returns the address of the resource
func (GenericResource) GetIdentification ¶
func (g GenericResource) GetIdentification() *resources.ResourceIdentification
GetIdentification returns the identification of the resource
func (GenericResource) IsSupported ¶
func (g GenericResource) IsSupported() bool
IsSupported returns true if the resource is supported by carbonifer. At the moment, only GCP is supported.
Click to show internal directories.
Click to hide internal directories.