Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallDriver ¶
InstallDriver downloads driver's repository, checkouts to a given commit, builds docker image and installs driver's image to bblfshd container. Requires bblfshd container running.
func RunBblfshd ¶
RunBblfshd pulls and runs bblfshd container with a given tag, waits until the port is ready and returns endpoint address and a closer that performs post-cleanup
Types ¶
type Driver ¶ added in v0.0.6
type Driver struct { // Address is a driver's GRPC address Address string // Pool contains docker client for further interaction with container Pool *dockertest.Pool // Resource contains container metadata Resource *dockertest.Resource }
Driver is a struct that eases interaction with driver container
func (*Driver) Exec ¶ added in v0.0.6
Exec executes given command inside the driver, sends output to Stdout and returns error if commands exit code != 0
func (*Driver) GetResults ¶ added in v0.0.6
GetResults reads result files inside the container Do not use it on large files!
type Image ¶ added in v0.0.6
Image is a struct that eases work with docker image and tag handling represented in form org/name:tag
func DownloadAndBuildDriver ¶ added in v0.0.6
DownloadAndBuildDriver creates directory in the temporary folder, clones driver's repository there, checkouts to a given commit and runs docker image build script. Arguments: language - name of the supported language(check docker/conf/drivers.json) commit - commit hash to checkout to