drivercontract

package
v0.2.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package drivercontract owns the immutable, side-effect-free capability documents shared by selected-platform preflight and production drivers.

Index

Constants

View Source
const (
	PlatformAndroid      = "android"
	PlatformIOSSimulator = "ios-simulator"
	PlatformIOSPhysical  = "ios-physical"
	PlatformWeb          = "web"
)

Variables

This section is empty.

Functions

func CommandFeature

func CommandFeature(command string) string

func CommandValueFeature

func CommandValueFeature(command, value string) string

Types

type Document

type Document struct {
	Platform string
	// contains filtered or unexported fields
}

Document is one production driver's capability contract. Features returns a fresh map so callers cannot mutate the process-wide source of truth.

func Android

func Android() Document

func Documents

func Documents() []Document

Documents returns the exact capability documents consumed by the Android, iOS Simulator, iOS physical-device, and Web production drivers.

func IOSPhysical

func IOSPhysical() Document

func IOSSimulator

func IOSSimulator() Document

func Web

func Web() Document

func (Document) Features

func (document Document) Features() map[string]bool

func (Document) SupportsCommand

func (document Document) SupportsCommand(command model.CommandKeyword) bool

func (Document) SupportsCommandValue

func (document Document) SupportsCommandValue(command model.CommandKeyword, value string) bool

Jump to

Keyboard shortcuts

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