normalize

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0 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

This section is empty.

Variables

This section is empty.

Functions

func NewNormalizer

func NewNormalizer(opts *Options) (domain.Normalizer, error)

NewNormalizer ...

Types

type BootDiskGBOptions

type BootDiskGBOptions struct {
	Enable bool `mapstrucutre:"enable"`
	Min    int  `mapstrucutre:"min"`
	Max    int  `mapstrucutre:"max"`
}

BootDiskGBOptions ...

type DiskGBOptions

type DiskGBOptions struct {
	Enable    bool    `mapstrucutre:"enable"`
	Min       float64 `mapstrucutre:"min"`
	Max       float64 `mapstrucutre:"max"`
	IsInteger bool    `mapstrucutre:"isInteger"`
}

DiskGBOptions ...

type GPUOptions

type GPUOptions struct {
	Enable    bool `mapstrucutre:"enable"`
	IsInteger bool `mapstrucutre:"isInteger"`
}

GPUOptions ...

type Options

type Options struct {
	ExecutorBasePath string            `mapstructure:"executorBasePath"`
	DiskGB           DiskGBOptions     `mapstructure:"diskGB"`
	BootDiskGB       BootDiskGBOptions `mapstructure:"bootDiskGB"`
	GPU              GPUOptions        `mapstructure:"gpu"`
}

Options ...

func NewOptions

func NewOptions() *Options

NewOptions ...

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags ...

func (*Options) Validate

func (o *Options) Validate() error

Validate ...

Jump to

Keyboard shortcuts

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