Documentation
¶
Overview ¶
Package DaemonClient is the build-side wrapper over the Watcher RPC daemon.
Index ¶
- Constants
- func Restart(bldRoot string, daemonDisabled bool, out io.Writer)
- func Stop(bldRoot string, daemonDisabled bool, out io.Writer)
- func StopWait(bldRoot string, daemonDisabled bool, out io.Writer)
- type Client
- func (cl *Client) GetBuildConfig(srcDir string) (BuildConfig.BufaConfig, map[string]string, bool)
- func (cl *Client) GetBuildHash(combined, srcDir string) (string, bool)
- func (cl *Client) GetDirtyHash(srcDir string) string
- func (cl *Client) GetDirtySkipHash(srcDir string) string
- func (cl *Client) GetRootConfig() (BuildConfig.RootConfig, bool)
- func (cl *Client) GetSrcHash(srcDir string) string
- func (cl *Client) SetBuildConfig(srcDir string, buildConfig BuildConfig.BufaConfig)
- func (cl *Client) SetBuildHash(combined, buildHash string)
- func (cl *Client) SetDirtyHash(srcDir, hash string)
- func (cl *Client) SetDirtySkipHash(srcDir, skipHash string)
- func (cl *Client) SetPathBuildHash(srcDir, combined string)
- func (cl *Client) SetRootConfig(cfg BuildConfig.RootConfig)
- func (cl *Client) SetSrcHash(srcDir, hash string)
Constants ¶
View Source
const SockName = "bufa-d.sock"
Exported for bufa nuke's build-root verification: the sock is the one legal file there.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A nil rpc handle means "no daemon": every method returns a miss/no-op, so callers never nil-check.
func (*Client) GetBuildConfig ¶
func (cl *Client) GetBuildConfig(srcDir string) (BuildConfig.BufaConfig, map[string]string, bool)
func (*Client) GetBuildHash ¶
func (*Client) GetDirtyHash ¶
func (*Client) GetDirtySkipHash ¶
func (*Client) GetRootConfig ¶
func (cl *Client) GetRootConfig() (BuildConfig.RootConfig, bool)
func (*Client) GetSrcHash ¶
func (*Client) SetBuildConfig ¶
func (cl *Client) SetBuildConfig(srcDir string, buildConfig BuildConfig.BufaConfig)
func (*Client) SetBuildHash ¶
func (*Client) SetDirtyHash ¶
func (*Client) SetDirtySkipHash ¶
func (*Client) SetPathBuildHash ¶
func (*Client) SetRootConfig ¶
func (cl *Client) SetRootConfig(cfg BuildConfig.RootConfig)
func (*Client) SetSrcHash ¶
Click to show internal directories.
Click to hide internal directories.