totmanager

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package totmanager encapsulates all the required functions for ensuring tot mapping rules are followed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchesToMilestones

func BranchesToMilestones(branches []suschpb.Branch) ([]int, error)

func GetBeta

func GetBeta() int

func GetDev

func GetDev() int

func GetStable

func GetStable() int

func GetTot

func GetTot() int

GetTot returns the calculated ToT version. If the value is 0 then that means the ToT info was never fetched and the nil int value is being returned.

NOTE: Canary is ToT.

func IdentifyBranch

func IdentifyBranch(milestone int) (suschpb.Branch, error)

IdentifyBranch returns the branch which the given milestone maps to based on the current ToT.

func InitTotManager

func InitTotManager() error

InitTotManager fetch the chromeos version info from the overlays repo.

func IsTargetedBranch

func IsTargetedBranch(milestone int, branches []suschpb.Branch) (bool, suschpb.Branch, error)

IsTargetedBranch checks to see if the given milestone is targeted by the passed in branch target list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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