monkey

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: BSD-3-Clause Imports: 37 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetGitRepoMaxRetries      = 3
	GetGitRepoWaitBeforeRetry = 5 * time.Second
)
View Source
var NewPatrick = func(ctx context.Context, node peer.Node) (patrick.Client, error) {
	return patrickClient.New(ctx, node)
}

TODO: This sucks

This is a variable so that it can be overridden in tests

Functions

func Package

func Package() config.ProtoCommandIface

Types

type Monkey

type Monkey struct {
	Id      string
	Status  patrick.JobStatus
	LogCID  string
	Service *Service
	Job     *patrick.Job
	// contains filtered or unexported fields
}

func (*Monkey) Run

func (m *Monkey) Run()

func (*Monkey) RunJob

func (m *Monkey) RunJob() (err error)

type Service

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

func New

func New(ctx context.Context, cfg tauConfig.Config) (*Service, error)

func (*Service) Close

func (srv *Service) Close() error

func (*Service) Delete

func (s *Service) Delete(jid string)

func (*Service) Dev

func (s *Service) Dev() bool

func (*Service) Hoarder

func (s *Service) Hoarder() hoarderIface.Client

func (*Service) Node

func (s *Service) Node() peer.Node

func (*Service) Patrick

func (s *Service) Patrick() patrick.Client

func (*Service) ServiceHandler

func (m *Service) ServiceHandler(ctx context.Context, conn streams.Connection, body command.Body) (cr.Response, error)

Directories

Path Synopsis
fixtures

Jump to

Keyboard shortcuts

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