A Stargate with a Stargate Power Coupler Kit is a "stargate" peripheral on every side of its controller. Find it with peripheral.find("stargate").

By hand, Milky Way gates only:
rotateClockwise(n), rotateAntiClockwise(n) - turn the ring until symbol n is at the top.
lockChevron() - lock the next chevron on the symbol at the top.
getNextChevron() - the chevron the next lock lights, 1 to 9, or 0 when none can lock now.
engage() - with the point of origin locked last, reach out to the address.

A symbol at a time:
encodeSymbol(n) - turn to symbol n and lock it. Locking the point of origin reaches out.

A gate holds the chevrons a computer locked for a minute after the last thing it was asked.

Iris, Milky Way gates with an iris fitted:
closeIris(), openIris() - shut or open the iris. Asked the other way while it moves, it turns back from where it is.
getIrisState() - "none", "open", "closing", "closed" or "opening".
getIrisMaterial() - "titanium" or "trinium", nil with no iris.

Every gate:
close() - close the wormhole this gate opened.
abort() - let go of the locked chevrons.
translateAddress(address) - the symbols this gate dials for an address written in any glyphs, such as "pg:12-03-27-05-18-35-04", without the point of origin.
getState(), getChevronsLocked(), getLockedSymbols(), getCurrentSymbol(), isRingTurning(), getEnergy(), getLocalAddress(), getPointOfOrigin(), getSymbolName(n)

Events: stargate_ring_stopped (symbol), stargate_chevron_locked (chevron, symbol), stargate_incoming, stargate_wormhole_open ("outgoing" or "incoming"), stargate_wormhole_closed, stargate_dial_failed (reason), stargate_iris ("closing", "closed", "opening", "open" or "none"), stargate_iris_struck ("weak", "medium", "strong" or "huge").
