Documentation
¶
Index ¶
- Constants
- Variables
- func CheckFileOverSSH(filePath string, user string, host string, privateKeyFilePath string, ...) bool
- func CheckLocalFile(filePath string) bool
- func ParseForecastTime(value string) (time.Duration, error)
- func ParseStartTime(value string) (time.Time, error)
- func PrepareLocalDir(filePath string)
- func PrintVersionInformation()
- type DataConfig
- type PathItem
- type TimeTemplateVariable
Constants ¶
View Source
const ConfigFileBasename = ".yaml"
Variables ¶
View Source
var ( Version = "Unknown version" BuildTime = "Unknown build time" GitCommit = "Unknown GitCommit" )
Functions ¶
func CheckFileOverSSH ¶
func CheckLocalFile ¶
func PrepareLocalDir ¶
func PrepareLocalDir(filePath string)
func PrintVersionInformation ¶
func PrintVersionInformation()
Types ¶
type DataConfig ¶
type DataConfig struct {
Default string `yaml:"default"`
FileName string `yaml:"file_name"`
FileNames []string `yaml:"file_names"`
Paths []PathItem `yaml:"paths"`
}
func LoadConfig ¶
func LoadConfig(configDir string, dataType string) (DataConfig, error)
type PathItem ¶
type PathItem struct {
PathType string `yaml:"type"`
LevelType string `yaml:"level"`
Path string `yaml:"path"`
}
func FindHpcFile ¶
func FindLocalFile ¶
type TimeTemplateVariable ¶
type TimeTemplateVariable struct {
StartTime time.Time
ForecastTime time.Duration
Year string
Month string
Day string
Hour string
Forecast string
Year4DV string
Month4DV string
Day4DV string
Hour4DV string
Year1HR string
Month1HR string
Day1HR string
Hour1HR string
Forecast1HR string
}
func GenerateTimeTemplateVariable ¶
func GenerateTimeTemplateVariable(startTime time.Time, forecastTime time.Duration) TimeTemplateVariable
Click to show internal directories.
Click to hide internal directories.