local

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPollInterval

func WithPollInterval(tick time.Duration) containers.Option[Source]

WithPollInterval configures the interval in which we will restore the local fs.

Types

type Source

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

Source represents an implementation of an fs.FSSource for local updates on a FS.

func NewSource

func NewSource(logger *zap.Logger, dir string, opts ...containers.Option[Source]) (*Source, error)

NewSource constructs a Source.

func (*Source) Get

func (s *Source) Get() (fs.FS, error)

Get returns an fs.FS for the local filesystem.

func (*Source) String

func (s *Source) String() string

String returns an identifier string for the store type.

func (*Source) Subscribe

func (s *Source) Subscribe(ctx context.Context, ch chan<- fs.FS)

Subscribe feeds local fs.FS implementations onto the provided channel. It blocks until the provided context is cancelled.

Jump to

Keyboard shortcuts

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