spec

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package spec provides CLI-layer helpers for resolving sichek spec/config files. All heavy lifting (path discovery, OSS download, backup, tracing) is handled by common.EnsureSpecFile; this package exposes intent-revealing wrappers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCfgFile

func EnsureCfgFile(configName string) (string, error)

EnsureCfgFile ensures the user-config YAML is available locally. Derives a cluster-specific name (e.g. "taihua_user_config.yaml") when empty, then falls back to DefaultUserCfgName.

func EnsureSpecFile

func EnsureSpecFile(specName string) (string, error)

EnsureSpecFile ensures the hardware-spec YAML is available locally. Derives a cluster-specific name (e.g. "taihua_spec.yaml") when empty, then falls back to DefaultSpecCfgName.

Types

This section is empty.

Jump to

Keyboard shortcuts

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