fileprefetcher

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 14 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

View Source
const (
	// prefix for labels and annotations used in file prefetcher feature
	// i.e. file-prefetcher.fluid.io/
	LabelAnnotationFilePrefetcherPrefix = "file-prefetcher." + common.LabelAnnotationPrefix

	// annotation to inject file prefetcher sidecar container
	// i.e. file-prefetcher.fluid.io/inject
	AnnotationFilePrefetcherInject = LabelAnnotationFilePrefetcherPrefix + "inject"

	// annotation to mark file prefetcher sidecar container has been injected
	// i.e. file-prefetcher.fluid.io/inject-done
	AnnotationFilePrefetcherInjectDone = LabelAnnotationFilePrefetcherPrefix + "inject-done"

	// annotation to set file prefetcher sidecar container's image
	// i.e. file-prefetcher.fluid.io/image
	AnnotationFilePrefetcherImage = LabelAnnotationFilePrefetcherPrefix + "image"

	// annotation to set file list to prefetch
	// i.e. file-prefetcher.fluid.io/file-list
	AnnotationFilePrefetcherFileList = LabelAnnotationFilePrefetcherPrefix + "file-list"

	// annotation to set if prefetch files asynchronously. When setting it to true,
	// app container will start up after file prefetcher finishes.
	// i.e. file-prefetcher.fluid.io/async-prefetch
	AnnotationFilePrefetcherAsync = LabelAnnotationFilePrefetcherPrefix + "async-prefetch"

	// annotation to set extra envs for file prefetcher
	// i.e. file-prefetcher.fluid.io/extra-envs
	AnnotationFilePrefetcherExtraEnvs = LabelAnnotationFilePrefetcherPrefix + "extra-envs"

	// annotation to set timeout for file prefetcher
	// i.e. file-prefetcher.fluid.io/prefetch-timeout-seconds
	AnnotationFilePrefetcherTimeoutSeconds = LabelAnnotationFilePrefetcherPrefix + "prefetch-timeout-seconds"
)
View Source
const Name string = "FilePrefetcher"

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(c client.Client, args string) (api.MutatingHandler, error)

Types

type FilePrefetcher

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

func (*FilePrefetcher) GetName

func (p *FilePrefetcher) GetName() string

func (*FilePrefetcher) Mutate

func (p *FilePrefetcher) Mutate(pod *corev1.Pod, runtimeInfos map[string]base.RuntimeInfoInterface) (shouldStop bool, err error)

Jump to

Keyboard shortcuts

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