Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InteractionInputCollection

Handle
📦 Aspire.Hosting v17.0.0

A collection of interaction inputs that supports both indexed and name-based access.

type InteractionInputCollection interface{}

Methods

methodToArray
Gets all inputs in declaration order.
ToArray() ([]*InteractionInput, error)
([]*InteractionInput, error)

A copy of the inputs in declaration order.

Returns ([]*InteractionInput, error).

methodGet
Get returns the input with the specified name, or nil if no input matches.
Get(name string) (*InteractionInput, error)
methodRequired
Required returns the input with the specified name, or an error if no input matches.
Required(name string) (*InteractionInput, error)
methodValue
Value returns the value of the input with the specified name, or an empty string if no input matches or it has no value.
Value(name string) (string, error)
methodRequiredValue
RequiredValue returns the value of the input with the specified name, or an error if no input matches.
RequiredValue(name string) (string, error)