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 ¶
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.
Click to show internal directories.
Click to hide internal directories.