Documentation ¶
Overview ¶
Package configuration is used to configure the gopackagesdriver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WorkspaceConfigDir ¶
WorkspaceConfigDir returns the configuration directory in the workspace, if it exists.
Types ¶
type Params ¶
type Params struct { RulesGoRepositoryName string BazelBin string BazelFlags []string BazelQueryFlags []string BazelQueryScope string BazelBuildFlags []string WorkspaceRoot string }
Params is a struct to hold the values of parameters used by the driver. These typically come from the
type ProcessInfoFile ¶
type ProcessInfoFile struct { Path string Contents *pb.ProcessInfo }
func FindProcessInfoFiles ¶
func FindProcessInfoFiles(ctx context.Context, params *Params) ([]*ProcessInfoFile, error)
FindProcessInfoFiles returns all of the process info files in the config directory. This function can be used to connect to an active server.
func (*ProcessInfoFile) ProcessExists ¶
func (f *ProcessInfoFile) ProcessExists() bool
ProcessExists reports if the process referenced by the ProcessInfo file is active.
It does this using the approach in https://stackoverflow.com/questions/15204162/check-if-a-process-exists-in-go-way. As such, this may only work on UNIX-like systems.
Click to show internal directories.
Click to hide internal directories.