sched

package
v9.4.46+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	PreVolumeCreate(req *csi.CreateVolumeRequest) (*csi.CreateVolumeRequest, error)
}

type FilterInterceptor

type FilterInterceptor struct {
	Filter
}

FilterInterceptor is a wrapper for the filter to be used an interceptor

func (*FilterInterceptor) SchedUnaryInterceptor

func (fi *FilterInterceptor) SchedUnaryInterceptor(
	ctx context.Context,
	req interface{},
	info *grpc.UnaryServerInfo,
	handler grpc.UnaryHandler,
) (interface{}, error)

SchedUnaryInterceptor calls the filter function based on the req

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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