machine

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultArch      = "m2"
	DefaultOSVersion = "15"
)

Variables

This section is empty.

Functions

func ReplaceMachine

func ReplaceMachine(h *mac.HostInformation) error

This function will use the information from the dedicated host holding the mac machine will check if stack exists if exists will get the lock value from it

Types

type Request

type Request struct {
	// Prefix for the resources related to mac
	// this is relevant in case of an orchestration with multiple
	// macs on the same stack
	Prefix           string
	Region           *string
	AvailabilityZone *string
	Version          string
	Architecture     string
	Airgap           bool
	// If timeout is set a severless scheduled task will be created to self destroy the resources
	Timeout string
	// contains filtered or unexported fields
}

func (*Request) CreateAirgapMacMachine

func (r *Request) CreateAirgapMacMachine(h *mac.HostInformation) error

this creates the stack for the mac machine

func (*Request) CreateAndLockMacMachine

func (r *Request) CreateAndLockMacMachine(h *mac.HostInformation) error

This create the machine and set as locked....meaning that it will return a way for it to be used (i.e mac action)

func (*Request) CreateAvailableMacMachine

func (r *Request) CreateAvailableMacMachine(h *mac.HostInformation) error

This create the machine and set it as ready to be used (i.e when mac-pool action) in this case machines are added to the pool as ready to be used by request

func (*Request) ManageRequest

func (r *Request) ManageRequest(h *mac.HostInformation) error

Run the bootstrap script creating new access credentials for the user When the machine is requested it will have different user access Wil include the code to join the cicd if any integration is set Also machine will be in use from now on, so it will be locked

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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