operatingsystem

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgOsImageSynced = "Operating System successfully synced to Site"
)

Variables

View Source
var (
	// ControllerOsImageStatusMap is a list of valid status for the Controller Os Image
	ControllerOsImageStatusMap = map[cwssaws.OsImageStatus]bool{
		cwssaws.OsImageStatus_ImageInProgress:    true,
		cwssaws.OsImageStatus_ImageUninitialized: true,
		cwssaws.OsImageStatus_ImageDisabled:      true,
		cwssaws.OsImageStatus_ImageReady:         true,
		cwssaws.OsImageStatus_ImageFailed:        true,
	}
)

Functions

This section is empty.

Types

type ManageOsImage

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

ManageOsImage is an activity wrapper for managing Image based OS lifecycle for a Site and allows injecting DB access

func NewManageOsImage

func NewManageOsImage(dbSession *cdb.Session, siteClientPool *sc.ClientPool) ManageOsImage

NewManageOsImage returns a new ManageOsImage activity

func (ManageOsImage) UpdateOperatingSystemStatusInDB

func (mskg ManageOsImage) UpdateOperatingSystemStatusInDB(ctx context.Context, osID uuid.UUID) error

UpdateOperatingSystemStatusInDB is helper function to write Operating System updates to DB

func (ManageOsImage) UpdateOsImagesInDB

func (mskg ManageOsImage) UpdateOsImagesInDB(ctx context.Context, siteID uuid.UUID, osImageInventory *cwssaws.OsImageInventory) ([]uuid.UUID, error)

UpdateOsImagesInDB takes information pushed by Site Agent for a collection of image based OSs associated with the Site and updates the DB

Jump to

Keyboard shortcuts

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