agent

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: ISC Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongVersion = errors.New("agent is running with a different version of plakar")
)

Functions

func ExecuteRPC

func ExecuteRPC(ctx *appcontext.AppContext, name []string, cmd subcommands.Subcommand, storeConfig map[string]string) (int, error)

Types

type Client

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

func NewClient

func NewClient(socketPath string, ignoreVersion bool) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) SendCommand

func (c *Client) SendCommand(ctx *appcontext.AppContext, name []string, cmd subcommands.Subcommand, storeConfig map[string]string) (int, error)

type FileLock added in v1.0.3

type FileLock struct {
	Path     string
	Attempts int
	// contains filtered or unexported fields
}

func LockedFile added in v1.0.3

func LockedFile(path string) (*FileLock, error)

func (*FileLock) Lock added in v1.0.3

func (lock *FileLock) Lock() error

func (*FileLock) Unlock added in v1.0.3

func (lock *FileLock) Unlock()

type Packet

type Packet struct {
	Type     string
	Data     []byte
	ExitCode int
	Eof      bool
	Err      string
}

Jump to

Keyboard shortcuts

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