daemonclient

package
v0.0.0-...-0a43815 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package daemonclient is a wrapper around a grpc client to talk to turbod

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonClient

type DaemonClient struct {
	// contains filtered or unexported fields
}

DaemonClient provides access to higher-level functionality from the daemon to a turbo run.

func New

func New(client *connector.Client) *DaemonClient

New creates a new instance of a DaemonClient.

func (*DaemonClient) GetChangedOutputs

func (d *DaemonClient) GetChangedOutputs(ctx context.Context, hash string, repoRelativeOutputGlobs []string) ([]string, int, error)

GetChangedOutputs implements runcache.OutputWatcher.GetChangedOutputs

func (*DaemonClient) NotifyOutputsWritten

func (d *DaemonClient) NotifyOutputsWritten(ctx context.Context, hash string, repoRelativeOutputGlobs hash.TaskOutputs, timeSaved int) error

NotifyOutputsWritten implements runcache.OutputWatcher.NotifyOutputsWritten

func (*DaemonClient) Status

func (d *DaemonClient) Status(ctx context.Context) (*Status, error)

Status returns the DaemonStatus from the daemon

type Status

type Status struct {
	UptimeMs uint64                       `json:"uptimeMs"`
	LogFile  turbopath.AbsoluteSystemPath `json:"logFile"`
	PidFile  turbopath.AbsoluteSystemPath `json:"pidFile"`
	SockFile turbopath.AbsoluteSystemPath `json:"sockFile"`
}

Status provides details about the daemon's status

Jump to

Keyboard shortcuts

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