Documentation ¶
Index ¶
- func FindEVSVolumeWithID(id string) (*data.EVSResource, bool)
- func GroupEcsEvsResource(ecs *data.ECSResource) (data.GroupResource, error)
- func GroupEcsEvsResources() error
- func GroupVRByTags()
- func LoadGhostResources()
- func LoadVirtualResources() error
- func Login() (*golangsdk.ProviderClient, error)
- func RunDefaultDataChain() error
- func RunPostProcessing()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindEVSVolumeWithID ¶
func FindEVSVolumeWithID(id string) (*data.EVSResource, bool)
FindEVSVolumeWithID returns an EVSResource based on id without prefix
func GroupEcsEvsResource ¶
func GroupEcsEvsResource(ecs *data.ECSResource) (data.GroupResource, error)
GroupEcsEvsResource creates groupResource from ecs and evs pairs
func GroupEcsEvsResources ¶
func GroupEcsEvsResources() error
GroupEcsEvsResources creates groupResources from ecs and evs pairs
func LoadGhostResources ¶
func LoadGhostResources()
LoadGhostResources creates GhostResources from Consumptions of VRs that are no longer present and have been terminated. Make sure to load all other resources first before loading the Ghosts.
func LoadVirtualResources ¶
func LoadVirtualResources() error
LoadVirtualResources loads all resources from the OTC and links them with cost. After that it will look for other costs that are not represented by VRs and add them as Ghosts.
func Login ¶
func Login() (*golangsdk.ProviderClient, error)
Login logs into OTC with provided config. Wrappes OTP request if enabled. Saves current Client
func RunDefaultDataChain ¶
func RunDefaultDataChain() error
RunDefaultDataChain combines VR func that are regularly used together to load and prepare data.
func RunPostProcessing ¶
func RunPostProcessing()
RunPostProcessing performs postprocessing work after all resources are loaded
Types ¶
This section is empty.