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 CommandValueFeature ¶
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 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 (Document) SupportsCommand ¶
func (document Document) SupportsCommand(command model.CommandKeyword) bool
func (Document) SupportsCommandValue ¶
func (document Document) SupportsCommandValue(command model.CommandKeyword, value string) bool
Click to show internal directories.
Click to hide internal directories.