nodeclient

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config           nodeconfig.Config
	Logger           *slog.Logger
	SnapshotUploader SnapshotUploader
	MediaMetrics     *sapientmedia.Metrics
}

func (*Client) ProbeSources

func (c *Client) ProbeSources(ctx context.Context, opts SourceProbeOptions) error

func (*Client) Run

func (c *Client) Run(ctx context.Context) error

func (*Client) RunOnce

func (c *Client) RunOnce(ctx context.Context) error

type S3SnapshotUploader

type S3SnapshotUploader struct{}

func (S3SnapshotUploader) UploadSnapshot

func (S3SnapshotUploader) UploadSnapshot(ctx context.Context, role nodeconfig.NodeRoleConfig, localPath string, taskID string, contentType string, now time.Time) (string, error)

type SnapshotUploader

type SnapshotUploader interface {
	UploadSnapshot(ctx context.Context, role nodeconfig.NodeRoleConfig, localPath string, taskID string, contentType string, now time.Time) (string, error)
}

type SourceProbeOptions

type SourceProbeOptions struct {
	Force             bool
	FailOnUnavailable bool
}

Jump to

Keyboard shortcuts

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