Documentation
¶
Index ¶
- Constants
- func GetDefaultDataRootDirPath() string
- func GetDefaultInstanceID() string
- func GetServiceVersion() string
- func GetVersionJSON() (string, error)
- func ParsePoolServiceEndpoint(endpoint string) (string, string, error)
- type Config
- func (config *Config) CleanWorkDirs() error
- func (config *Config) GetDataCacheRootDirPath() string
- func (config *Config) GetInstanceDataRootDirPath() string
- func (config *Config) GetLogFilePath() string
- func (config *Config) GetServiceEndpoint() string
- func (config *Config) GetTempRootDirPath() string
- func (config *Config) MakeLogDir() error
- func (config *Config) MakeWorkDirs() error
- func (config *Config) Validate() error
- type MetadataCacheTimeoutSetting
- type VersionInfo
Constants ¶
View Source
const ( DataCacheSizeMaxDefault int64 = 1024 * 1024 * 1024 * 20 // 20GB ProfileServicePortDefault int = 12021 PrometheusExporterPortDefault int = 12022 )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultDataRootDirPath ¶ added in v0.6.0
func GetDefaultDataRootDirPath() string
func GetDefaultInstanceID ¶ added in v0.6.5
func GetDefaultInstanceID() string
func GetServiceVersion ¶
func GetServiceVersion() string
GetServiceVersion returns service version in string
func GetVersionJSON ¶
GetVersionJSON returns VersionInfo object in JSON string
Types ¶
type Config ¶
type Config struct { ServiceEndpoint string `yaml:"service_endpoint"` DataCacheSizeMax int64 `yaml:"data_cache_size_max"` DataRootPath string `yaml:"data_root_path,omitempty"` CacheTimeoutSettings []MetadataCacheTimeoutSetting `yaml:"cache_timeout_settings,omitempty"` LogPath string `yaml:"log_path,omitempty"` Profile bool `yaml:"profile,omitempty"` ProfileServicePort int `yaml:"profile_service_port,omitempty"` PrometheusExporterPort int `yaml:"prometheus_exporter_port,omitempty"` Foreground bool `yaml:"foreground,omitempty"` Debug bool `yaml:"debug,omitempty"` ChildProcess bool `yaml:"childprocess,omitempty"` InstanceID string `yaml:"instanceid,omitempty"` }
Config holds the parameters list which can be configured
func NewConfigFromYAML ¶
NewConfigFromYAML creates Config from YAML
func (*Config) CleanWorkDirs ¶ added in v0.6.0
CleanWorkDirs cleans dirs used
func (*Config) GetDataCacheRootDirPath ¶ added in v0.6.0
func (*Config) GetInstanceDataRootDirPath ¶ added in v0.6.1
func (*Config) GetLogFilePath ¶ added in v0.6.0
GetLogFilePath returns log file path
func (*Config) GetServiceEndpoint ¶ added in v0.6.3
func (*Config) GetTempRootDirPath ¶ added in v0.6.0
func (*Config) MakeLogDir ¶ added in v0.6.0
MakeLogDir makes a log dir required
func (*Config) MakeWorkDirs ¶ added in v0.6.0
MakeWorkDirs makes dirs required
type MetadataCacheTimeoutSetting ¶ added in v0.2.1
type MetadataCacheTimeoutSetting struct { Path string `yaml:"path" json:"path"` Timeout irodsfs_common_utils.Duration `yaml:"timeout" json:"timeout"` Inherit bool `yaml:"inherit,omitempty" json:"inherit,omitempty"` }
MetadataCacheTimeoutSetting defines cache timeout for path
type VersionInfo ¶
type VersionInfo struct { ServiceVersion string `json:"serviceVersion"` GitCommit string `json:"gitCommit"` BuildDate string `json:"buildDate"` GoVersion string `json:"goVersion"` Compiler string `json:"compiler"` Platform string `json:"platform"` }
VersionInfo object contains version related info
Click to show internal directories.
Click to hide internal directories.