manager

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.6.0

type Config struct {
	SkipAgreementCheck bool
	SkipLoginRequired  bool
}

type DeviceFilters added in v0.3.1

type DeviceFilters struct {
	Manifest    string   // Path to the manifest file where devices are specified
	DeviceNames []string // The name of the device to download
}

DeviceFilters describes which devices should be filtered

type DeviceListConfig added in v0.4.0

type DeviceListConfig struct {
	DeviceFilters DeviceFilters
}

type DownloadConfig added in v0.3.1

type DownloadConfig struct {
	DeviceFilters DeviceFilters
	IncludeFonts  bool
}

type Manager

type Manager struct {
	Store *storage.Store
}

func NewManager added in v0.6.0

func NewManager(ctx context.Context, config Config) (Manager, context.Context, error)

func (*Manager) AcceptAgreement added in v0.6.0

func (m *Manager) AcceptAgreement(ctx context.Context, hash string) error

func (*Manager) CurrentSDKPath added in v0.4.0

func (m *Manager) CurrentSDKPath(_ context.Context, binary bool) error

func (*Manager) Download

func (m *Manager) Download(ctx context.Context, config DownloadConfig) error

func (*Manager) DownloadSDK added in v0.4.0

func (m *Manager) DownloadSDK(ctx context.Context, semverConstraint *semver.Constraints) error

func (*Manager) ListDevices added in v0.4.0

func (m *Manager) ListDevices(ctx context.Context, config DeviceListConfig) error

func (*Manager) ListSDKs added in v0.4.0

func (m *Manager) ListSDKs(ctx context.Context, semverConstraint *semver.Constraints) error

func (*Manager) LoginWithCredentials added in v0.4.0

func (m *Manager) LoginWithCredentials(ctx context.Context, username, password string) error

func (*Manager) LoginWithOauth added in v0.4.0

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

func (*Manager) SetSDK added in v0.4.0

func (m *Manager) SetSDK(ctx context.Context, semverConstraint *semver.Constraints) error

func (*Manager) ViewAgreement added in v0.6.0

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

Jump to

Keyboard shortcuts

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