Help us shape the future of Go! Take the 2026 Go Developer Survey

DaemonClient

package
v0.221.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package DaemonClient is the build-side wrapper over the Watcher RPC daemon.

Index

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

func Restart

func Restart(bldRoot string, daemonDisabled bool, out io.Writer)

func Stop

func Stop(bldRoot string, daemonDisabled bool, out io.Writer)

func StopWait

func StopWait(bldRoot string, daemonDisabled bool, out io.Writer)

Stop that waits for the sock cleanup like Restart, so the caller can delete the build root without racing the dying daemon.

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 Connect

func Connect(bldRoot, srcRoot string, daemonDisabled, nsAlive bool, out io.Writer) *Client

func (*Client) GetBuildConfig

func (cl *Client) GetBuildConfig(srcDir string) (BuildConfig.BufaConfig, map[string]string, bool)

func (*Client) GetBuildHash

func (cl *Client) GetBuildHash(combined, srcDir string) (string, bool)

func (*Client) GetDirtyHash

func (cl *Client) GetDirtyHash(srcDir string) string

func (*Client) GetDirtySkipHash

func (cl *Client) GetDirtySkipHash(srcDir string) string

func (*Client) GetRootConfig

func (cl *Client) GetRootConfig() (BuildConfig.RootConfig, bool)

func (*Client) GetSrcHash

func (cl *Client) GetSrcHash(srcDir string) string

func (*Client) SetBuildConfig

func (cl *Client) SetBuildConfig(srcDir string, buildConfig BuildConfig.BufaConfig)

func (*Client) SetBuildHash

func (cl *Client) SetBuildHash(combined, buildHash string)

func (*Client) SetDirtyHash

func (cl *Client) SetDirtyHash(srcDir, hash string)

func (*Client) SetDirtySkipHash

func (cl *Client) SetDirtySkipHash(srcDir, skipHash string)

func (*Client) SetPathBuildHash

func (cl *Client) SetPathBuildHash(srcDir, combined string)

func (*Client) SetRootConfig

func (cl *Client) SetRootConfig(cfg BuildConfig.RootConfig)

func (*Client) SetSrcHash

func (cl *Client) SetSrcHash(srcDir, hash string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL