update_history

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateHistoryEntry

type UpdateHistoryEntry struct {
	// ReleaseDate is the release date string as scraped from the table (e.g. "April 15, 2025").
	ReleaseDate string

	// Version is the Office version string (e.g. "16.108").
	Version string

	// BusinessProSuiteDownload is the download URL for the full BusinessPro suite installer.
	BusinessProSuiteDownload string

	// SuiteDownload is the download URL for the standard Office suite installer.
	SuiteDownload string

	// WordUpdate is the download URL for the Word individual updater.
	WordUpdate string

	// ExcelUpdate is the download URL for the Excel individual updater.
	ExcelUpdate string

	// PowerPointUpdate is the download URL for the PowerPoint individual updater.
	PowerPointUpdate string

	// OutlookUpdate is the download URL for the Outlook individual updater.
	OutlookUpdate string

	// OneNoteUpdate is the download URL for the OneNote individual updater.
	OneNoteUpdate string

	// Archived indicates whether the download links are no longer available.
	Archived bool
}

UpdateHistoryEntry represents a single row from the Office for Mac update history table on the Microsoft Learn documentation page.

type UpdateHistoryResponse

type UpdateHistoryResponse struct {
	Entries []UpdateHistoryEntry
}

UpdateHistoryResponse holds the full Office for Mac update history.

type UpdateHistoryService

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

UpdateHistoryService fetches and parses the Office for Mac update history table from the Microsoft Learn documentation site.

Data is sourced from:

https://learn.microsoft.com/en-us/officeupdates/update-history-office-for-mac

The page is scraped using golang.org/x/net/html. Each table row becomes an UpdateHistoryEntry with the release date, version, and download URLs for the suite installer and individual app updaters.

func NewService

func NewService(c client.Client) *UpdateHistoryService

NewService creates a new UpdateHistoryService.

func (*UpdateHistoryService) GetUpdateHistoryV1

func (s *UpdateHistoryService) GetUpdateHistoryV1(ctx context.Context) (*UpdateHistoryResponse, error)

GetUpdateHistoryV1 fetches and parses the complete Office for Mac update history. It returns entries ordered as they appear on the Microsoft Learn page (newest first).

GET https://learn.microsoft.com/en-us/officeupdates/update-history-office-for-mac

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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