machinetemplate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package machinetemplate implements functions to manage the lifecycle of HCloud machine templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUQuantityFromInt

func GetCPUQuantityFromInt(cores int) (resource.Quantity, error)

GetCPUQuantityFromInt returns a resource quantity for CPU cores from an integer.

func GetMemoryQuantityFromFloat32

func GetMemoryQuantityFromFloat32(memory float32) (resource.Quantity, error)

GetMemoryQuantityFromFloat32 returns a resource quantity for memory in GB from a float32.

Types

type Service

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

Service defines struct with HCloudMachineTemplate scope to reconcile HCloud machine templates.

func NewService

func NewService(scope *scope.HCloudMachineTemplateScope) *Service

NewService outs a new service with HCloudMachineTemplate scope.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile implements reconcilement of HCloudMachinesTemplates.

Jump to

Keyboard shortcuts

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