chameleond

package
v0.0.0-...-3b47d42 Latest Latest
Warning

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

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

Documentation

Overview

Package chameleond provides commands for managing chameleond releases for btpeers.

Index

Constants

View Source
const (
	ChromeOSConnectivityTestArtifactsStorageBucket = "chromeos-connectivity-test-artifacts"
)

Variables

This section is empty.

Functions

func IsChromeOSReleaseVersionLessThan

func IsChromeOSReleaseVersionLessThan(a ChromeOSReleaseVersion, b ChromeOSReleaseVersion) bool

IsChromeOSReleaseVersionLessThan compares two ChromeOSReleaseVersion instances, returning true if the first version comes before the second.

Can be used to sort a slice of ChromeOSReleaseVersion instances.

func SelectChameleondBundleByCrosReleaseVersion

func SelectChameleondBundleByCrosReleaseVersion(config *labapi.BluetoothPeerChameleondConfig, dutCrosReleaseVersion string) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)

func SelectChameleondBundleForDut

func SelectChameleondBundleForDut(config *labapi.BluetoothPeerChameleondConfig, dutHostname, dutCrosReleaseVersion string) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)

func SetSharedManagerInstance

func SetSharedManagerInstance(m *Manager)

Types

type ChromeOSReleaseVersion

type ChromeOSReleaseVersion []int

func ParseChromeOSReleaseVersion

func ParseChromeOSReleaseVersion(version string) (ChromeOSReleaseVersion, error)

ParseChromeOSReleaseVersion parses the release version string from the lsb-release into its integral parts as a ChromeOSReleaseVersion instance.

func (ChromeOSReleaseVersion) String

func (v ChromeOSReleaseVersion) String() string

type Manager

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

func NewManager

func NewManager(ctx context.Context, managerConfig *ManagerConfig) (*Manager, error)

func SharedManagerInstance

func SharedManagerInstance() *Manager

func (*Manager) Config

func (*Manager) ConfigObject

func (m *Manager) ConfigObject() (string, *storage.ObjectHandle)

func (*Manager) DownloadChameleondBundle

func (m *Manager) DownloadChameleondBundle(ctx context.Context, bundleConfig *labapi.BluetoothPeerChameleondConfig_ChameleondBundle, dstDir string) (string, error)

func (*Manager) FetchConfig

func (m *Manager) FetchConfig(ctx context.Context) error

func (*Manager) InitializeNewBTPeerChameleondConfig

func (m *Manager) InitializeNewBTPeerChameleondConfig(ctx context.Context, forceOverwriteExisting bool) error

func (*Manager) UpdateConfig

func (*Manager) UploadChameleondBundle

func (m *Manager) UploadChameleondBundle(ctx context.Context, chameleondBundleFilePath, chameleondCommit, minDutReleaseVersion string) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)

type ManagerConfig

type ManagerConfig struct {
	StorageBucketName      string
	UseProdConfig          bool
	GCSCredentialsFilePath string
}

Jump to

Keyboard shortcuts

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