provider

package
v0.0.12-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide(ctx context.Context, r routing.Router, containerdStore containerd.Store, filesChan <-chan string)

Provide provides content on this host to peers on the network. It listens for events from the containerd.Store and filesChan channel to trigger the advertisement. The function runs until the context is done or an error occurs.

Parameters: - ctx: The context.Context used for cancellation and deadline propagation. - r: The routing.Router used for advertising files. - containerdStore: The containerd.Store used for subscribing to events and advertising images. - filesChan: The channel that provides the files to be advertised.

Returns: None.

Types

This section is empty.

Jump to

Keyboard shortcuts

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