Documentation ¶
Index ¶
- Constants
- Variables
- func CheckFileOverSSH(filePath string, user string, host string, privateKeyFilePath string, ...) bool
- func CheckForecastTime(value string) (time.Duration, error)
- func CheckLocalFile(filePath string) bool
- func CheckStartTime(value string) (time.Time, error)
- func PrepareLocalDir(filePath string)
- func PrintVersionInformation()
- type DataConfig
- type PathItem
- type TemplateVariable
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 ¶ added in v0.5.0
func PrintVersionInformation()
Types ¶
type DataConfig ¶
type DataConfig struct { Default string `yaml:"default"` FileName string `yaml:"file_name"` 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 ¶ added in v0.5.0
func FindLocalFile ¶
type TemplateVariable ¶
type TemplateVariable struct { Year string Month string Day string Hour string Forecast string Year4DV string Month4DV string Day4DV string Hour4DV string }
func GenerateTemplateVariable ¶
func GenerateTemplateVariable(startTime time.Time, forecastTime time.Duration) TemplateVariable
Source Files ¶
Click to show internal directories.
Click to hide internal directories.