Documentation
¶
Overview ¶
Package chameleond provides commands for managing chameleond releases for btpeers.
Index ¶
- Constants
- func IsChromeOSReleaseVersionLessThan(a ChromeOSReleaseVersion, b ChromeOSReleaseVersion) bool
- func SelectChameleondBundleByChameleondCommit(config *labapi.BluetoothPeerChameleondConfig, chameleondCommit string) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)
- func SelectChameleondBundleByCrosReleaseVersion(config *labapi.BluetoothPeerChameleondConfig, dutCrosReleaseVersion string) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)
- func SelectChameleondBundleByNextCommit(config *labapi.BluetoothPeerChameleondConfig) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)
- func SelectChameleondBundleForDut(config *labapi.BluetoothPeerChameleondConfig, ...) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)
- func SetSharedManagerInstance(m *Manager)
- type ChromeOSReleaseVersion
- type Manager
- func (m *Manager) Config() *labapi.BluetoothPeerChameleondConfig
- func (m *Manager) ConfigObject() (string, *storage.ObjectHandle)
- func (m *Manager) DownloadChameleondBundle(ctx context.Context, ...) (string, error)
- func (m *Manager) FetchConfig(ctx context.Context) error
- func (m *Manager) InitializeNewBTPeerChameleondConfig(ctx context.Context, forceOverwriteExisting bool) error
- func (m *Manager) UpdateConfig(ctx context.Context, config *labapi.BluetoothPeerChameleondConfig, ...) (*labapi.BluetoothPeerChameleondConfig, error)
- func (m *Manager) UploadChameleondBundle(ctx context.Context, ...) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)
- type ManagerConfig
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 SelectChameleondBundleByChameleondCommit ¶
func SelectChameleondBundleByChameleondCommit(config *labapi.BluetoothPeerChameleondConfig, chameleondCommit string) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)
func SelectChameleondBundleByCrosReleaseVersion ¶
func SelectChameleondBundleByCrosReleaseVersion(config *labapi.BluetoothPeerChameleondConfig, dutCrosReleaseVersion string) (*labapi.BluetoothPeerChameleondConfig_ChameleondBundle, error)
func SelectChameleondBundleByNextCommit ¶
func SelectChameleondBundleByNextCommit(config *labapi.BluetoothPeerChameleondConfig) (*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 (m *Manager) Config() *labapi.BluetoothPeerChameleondConfig
func (*Manager) ConfigObject ¶
func (m *Manager) ConfigObject() (string, *storage.ObjectHandle)
func (*Manager) DownloadChameleondBundle ¶
func (*Manager) InitializeNewBTPeerChameleondConfig ¶
func (*Manager) UpdateConfig ¶
func (m *Manager) UpdateConfig(ctx context.Context, config *labapi.BluetoothPeerChameleondConfig, forceUpdate bool) (*labapi.BluetoothPeerChameleondConfig, error)
func (*Manager) UploadChameleondBundle ¶
type ManagerConfig ¶
Click to show internal directories.
Click to hide internal directories.