# Functions
AuthenticateBridgeType returns true if the passed token matches its IncomingToken, or returns false with an error.
AuthenticateExternalInitiator compares an auth against an initiator and returns true if the password hashes match.
MustParseBridgeName instantiates a new BridgeName, and panics if a bad input is provided.
NewBridgeType returns a bridge type authentication (with plaintext password) and a bridge type (with hashed password, for persisting).
NewExternalInitiator generates an ExternalInitiator from an auth.Token, hashing the password for storage.
ParseBridgeName returns a formatted Task type.
# Structs
NOTE: latestAnswer and updatedAt is the only metadata used.
BridgeType is used for external adapters and has fields for the name of the adapter and its URL.
BridgeTypeAuthentication is the record returned in response to a request to create a BridgeType.
BridgeTypeRequest is the incoming record used to create a BridgeType.
ExternalInitiator represents a user that can initiate runs remotely.
ExternalInitiatorRequest is the incoming record used to create an ExternalInitiator.
# Type aliases
BridgeName defines what Adapter a TaskSpec will use.