features

package
v0.0.0-...-3ea977d Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureConfig

type FeatureConfig struct {
	PerGPULabelFeatureFlag bool
}

FeatureConfig holds all the configuration values for all the feature flags.

func InitFlags

func InitFlags(cosGPUConfigJsonPath string) (*FeatureConfig, error)

InitFlags initializes the feature flags and return a FeatureConfig instance.

type GPUConfig

type GPUConfig struct {
	UseProto bool `json:"use-proto"`
}

GPUConfig represents the structure of the cos-gpu-config file.

func ReadCOSGPUConfig

func ReadCOSGPUConfig(path string) (*GPUConfig, error)

ReadCOSGPUConfig will read the cos-gpu-config.json file at the given path and parse the data to the GPUConfig instance. If the cos-gpu-config.json file doesn't exist, it will return a default GPUConfig instance.

Jump to

Keyboard shortcuts

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