Documentation
¶
Index ¶
- Constants
- func ErrorToStatus(err error) error
- func GetDefaultDataRootDirPath() string
- func GetDefaultInstanceID() string
- func GetServiceVersion() string
- func GetVersionJSON() (string, error)
- func IsDisconnectedError(err error) bool
- func IsFileHandleNotFoundError(err error) bool
- func IsIRODSFSClientInstanceNotFoundError(err error) bool
- func IsReloginRequiredError(err error) bool
- func IsSessionNotFoundError(err error) bool
- func NewFileHandleNotFoundError(handleID string) error
- func NewIRODSFSClientInstanceNotFoundError(instanceID string) error
- func NewSessionNotFoundError(sessionID string) error
- func ParsePoolServiceEndpoint(endpoint string) (string, string, error)
- func StatusToError(err error) 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) MakeLogDir() error
- func (config *Config) MakeWorkDirs() error
- func (config *Config) Validate() error
- type FileHandleNotFoundError
- type IRODSFSClientInstanceNotFoundError
- type SessionNotFoundError
- type VersionInfo
Constants ¶
const ( DataRootPathDefault string = "/var/lib/irodsfs_pool" DataCacheSizeMaxDefault int64 = 1024 * 1024 * 1024 * 20 // 20GB OperationTimeoutDefault int = 30 SessionTimeoutDefault int = 30 * 60 // 30 minutes ProfileServicePortDefault int = 12021 PrometheusExporterPortDefault int = 12022 )
Variables ¶
This section is empty.
Functions ¶
func ErrorToStatus ¶ added in v0.6.20
ErrorToStatus converts error to grpc status error
func GetDefaultDataRootDirPath ¶ added in v0.6.0
func GetDefaultDataRootDirPath() string
GetDefaultDataRootDirPath returns default data root path
func GetDefaultInstanceID ¶ added in v0.6.5
func GetDefaultInstanceID() string
GetDefaultInstanceID returns default instance id
func GetServiceVersion ¶
func GetServiceVersion() string
GetServiceVersion returns service version in string
func GetVersionJSON ¶
GetVersionJSON returns VersionInfo object in JSON string
func IsDisconnectedError ¶ added in v0.6.25
IsDisconnectedError returns true if connection is unavailable
func IsFileHandleNotFoundError ¶ added in v0.6.20
IsFileHandleNotFoundError evaluates if the given error is file handle not found error
func IsIRODSFSClientInstanceNotFoundError ¶ added in v0.6.20
IsIRODSFSClientInstanceNotFoundError evaluates if the given error is irods fs client instance not found error
func IsReloginRequiredError ¶ added in v0.6.20
IsReloginRequiredError returns true if relogin can solve the issue
func IsSessionNotFoundError ¶ added in v0.6.20
IsSessionNotFoundError evaluates if the given error is session not found error
func NewFileHandleNotFoundError ¶ added in v0.6.20
NewFileHandleNotFoundError creates an error for file handle not found error
func NewIRODSFSClientInstanceNotFoundError ¶ added in v0.6.20
NewIRODSFSClientInstanceNotFoundError creates IRODSFSClientInstanceNotFoundError struct
func NewSessionNotFoundError ¶ added in v0.6.20
NewSessionNotFoundError creates SessionNotFoundError struct
func ParsePoolServiceEndpoint ¶ added in v0.5.6
ParsePoolServiceEndpoint parses endpoint string
func StatusToError ¶ added in v0.6.20
StatusToError converts grpc status error to error
Types ¶
type Config ¶
type Config struct { ServiceEndpoint string `yaml:"service_endpoint" json:"service_endpoint"` DataCacheSizeMax int64 `yaml:"data_cache_size_max,omitempty" json:"data_cache_size_max,omitempty"` DataRootPath string `yaml:"data_root_path,omitempty" json:"data_root_path,omitempty"` CacheTimeoutSettings []irodsclient_fs.MetadataCacheTimeoutSetting `yaml:"cache_timeout_settings,omitempty" json:"cache_timeout_settings,omitempty"` OperationTimeout int `yaml:"operation_timeout,omitempty" json:"operation_timeout,omitempty"` SessionTimeout int `yaml:"session_timeout,omitempty" json:"session_timeout,omitempty"` LogPath string `yaml:"log_path,omitempty" json:"log_path,omitempty"` Profile bool `yaml:"profile,omitempty" json:"profile,omitempty"` ProfileServicePort int `yaml:"profile_service_port,omitempty" json:"profile_service_port,omitempty"` PrometheusExporterPort int `yaml:"prometheus_exporter_port,omitempty" json:"prometheus_exporter_port,omitempty"` Foreground bool `yaml:"foreground,omitempty" json:"foreground,omitempty"` Debug bool `yaml:"debug,omitempty" json:"debug,omitempty"` ChildProcess bool `yaml:"childprocess,omitempty" json:"childprocess,omitempty"` InstanceID string `yaml:"instanceid,omitempty" json:"instanceid,omitempty"` }
Config holds the parameters list which can be configured
func NewConfigFromJSON ¶ added in v0.8.0
NewConfigFromJSON creates Config from JSON
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) 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 FileHandleNotFoundError ¶ added in v0.6.20
type FileHandleNotFoundError struct {
HandleID string
}
FileHandleNotFoundError contains file handle not found error information
func (*FileHandleNotFoundError) Error ¶ added in v0.6.20
func (err *FileHandleNotFoundError) Error() string
Error returns error message
func (*FileHandleNotFoundError) Is ¶ added in v0.6.20
func (err *FileHandleNotFoundError) Is(other error) bool
Is tests type of error
func (*FileHandleNotFoundError) ToString ¶ added in v0.6.20
func (err *FileHandleNotFoundError) ToString() string
ToString stringifies the object
type IRODSFSClientInstanceNotFoundError ¶ added in v0.6.20
type IRODSFSClientInstanceNotFoundError struct {
InstanceID string
}
IRODSFSClientInstanceNotFoundError contains irods fs client instance not found error information
func (*IRODSFSClientInstanceNotFoundError) Error ¶ added in v0.6.20
func (err *IRODSFSClientInstanceNotFoundError) Error() string
Error returns error message
func (*IRODSFSClientInstanceNotFoundError) Is ¶ added in v0.6.20
func (err *IRODSFSClientInstanceNotFoundError) Is(other error) bool
Is tests type of error
func (*IRODSFSClientInstanceNotFoundError) ToString ¶ added in v0.6.20
func (err *IRODSFSClientInstanceNotFoundError) ToString() string
ToString stringifies the object
type SessionNotFoundError ¶ added in v0.6.20
type SessionNotFoundError struct {
SessionID string
}
SessionNotFoundError contains session not found error information
func (*SessionNotFoundError) Error ¶ added in v0.6.20
func (err *SessionNotFoundError) Error() string
Error returns error message
func (*SessionNotFoundError) Is ¶ added in v0.6.20
func (err *SessionNotFoundError) Is(other error) bool
Is tests type of error
func (*SessionNotFoundError) ToString ¶ added in v0.6.20
func (err *SessionNotFoundError) ToString() string
ToString stringifies the object
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