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
Click to show internal directories.
Click to hide internal directories.