Documentation
¶
Index ¶
- Constants
- func ExpandHomeDir(p string) (string, error)
- func Fprintf(w io.Writer, format string, a ...any) (int, error)
- func GetClientVersion() string
- func GetDefaultDataRootDirPath() string
- func GetDefaultIRODSConfigPath() string
- func GetDefaultInstanceID() string
- func GetVersionJSON() (string, error)
- func GetVersionParts(version string) (int, int, int)
- func InitTerminalOutput()
- func Input(msg string) string
- func InputInt(msg string) int
- func InputPassword(msg string) string
- func InputYN(msg string) bool
- func IsNewerVersion(ver1 []int, ver2 []int) bool
- func ParsePoolServiceEndpoint(endpoint string) (string, string, error)
- func Print(a ...any) (n int, err error)
- func PrintErrorf(format string, a ...any) (int, error)
- func PrintInfof(format string, a ...any) (n int, err error)
- func PrintInfoln(a ...any) (n int, err error)
- func Printf(format string, a ...any) (n int, err error)
- func Println(a ...any) (n int, err error)
- type Config
- func NewConfigFromFile(config *Config, filePath string) (*Config, error)
- func NewConfigFromICommandsEnvDir(config *Config, dirPath string) (*Config, error)
- func NewConfigFromJSONFile(config *Config, jsonPath string) (*Config, error)
- func NewConfigFromYAML(config *Config, yamlBytes []byte) (*Config, error)
- func NewConfigFromYAMLFile(config *Config, yamlPath string) (*Config, error)
- func NewDefaultConfig() *Config
- func (config *Config) FixPathMappings()
- func (config *Config) FixSystemUserConfiguration() error
- func (config *Config) FromIRODSUrl(inputURL string) error
- func (config *Config) GetInstanceDataRootDirPath() string
- func (config *Config) GetLogFilePath() string
- func (config *Config) MakeLogDir() error
- func (config *Config) Validate() error
- type IRODSAccessURL
- type TerminalWriter
- type VersionInfo
Constants ¶
const ( ClientProgramName string = "irodsfs" FuseFSName string = "irodsfs" IRODSEnvironmentFileEnvKey string = "IRODS_ENVIRONMENT_FILE" ReadAheadMaxDefault int = 1024 * 128 // 128KB ReadWriteMaxDefault int = 1 * 1024 * 1024 // 1MB FilesystemTimeout time.Duration = 10 * time.Minute ConnectionMaxDefault int = 10 TCPBufferSizeDefault int = 4 * 1024 * 1024 // 4MB TCPBufferSizeStringDefault string = "4MB" ProfileServicePortDefault int = 11021 )
Variables ¶
This section is empty.
Functions ¶
func ExpandHomeDir ¶ added in v0.10.1
func GetClientVersion ¶
func GetClientVersion() string
GetClientVersion returns client version in string
func GetDefaultDataRootDirPath ¶ added in v0.8.0
func GetDefaultDataRootDirPath() string
GetDefaultDataRootDirPath returns default data root path
func GetDefaultIRODSConfigPath ¶ added in v0.10.1
func GetDefaultIRODSConfigPath() string
GetDefaultIRODSConfigPath returns default config path
func GetDefaultInstanceID ¶ added in v0.8.4
func GetDefaultInstanceID() string
GetDefaultInstanceID returns default instance id
func GetVersionJSON ¶
GetVersionJSON returns VersionInfo object in JSON string
func GetVersionParts ¶ added in v0.10.1
GetVersionParts returns version parts (major, minor, patch)
func InitTerminalOutput ¶ added in v0.10.3
func InitTerminalOutput()
func InputPassword ¶ added in v0.10.3
func IsNewerVersion ¶ added in v0.10.1
IsNewerVersion compares ver1 against ver2
func ParsePoolServiceEndpoint ¶ added in v0.7.3
ParsePoolServiceEndpoint parses endpoint string
func PrintInfoln ¶ added in v0.10.3
Types ¶
type Config ¶
type Config struct { irodsclient_config.Config PathMappings []irodsfs_common_vpath.VPathMapping `json:"path_mappings,omitempty" yaml:"path_mappings,omitempty"` ReadAheadMax int `json:"read_ahead_max,omitempty" yaml:"read_ahead_max,omitempty"` ReadWriteMax int `json:"read_write_max,omitempty" yaml:"read_write_max,omitempty"` NoPermissionCheck bool `json:"no_permission_check,omitempty" yaml:"no_permission_check,omitempty"` NoSetXattr bool `json:"no_set_xattr,omitempty" yaml:"no_set_xattr,omitempty"` UID int `json:"uid,omitempty" yaml:"uid,omitempty"` GID int `json:"gid,omitempty" yaml:"gid,omitempty"` SystemUser string `json:"system_user,omitempty" yaml:"system_user,omitempty"` MountPath string `json:"mount_path,omitempty" yaml:"mount_path,omitempty"` MetadataConnection irodsclient_fs.ConnectionConfig `json:"metadata_connection,omitempty" yaml:"metadata_connection,omitempty"` IOConnection irodsclient_fs.ConnectionConfig `json:"io_connection,omitempty" yaml:"io_connection,omitempty"` Cache irodsclient_fs.CacheConfig `json:"cache,omitempty" yaml:"cache,omitempty"` DataRootPath string `json:"data_root_path,omitempty" yaml:"data_root_path,omitempty"` LogPath string `json:"log_path,omitempty" yaml:"log_path,omitempty"` PoolEndpoint string `json:"pool_endpoint,omitempty" yaml:"pool_endpoint,omitempty"` Profile bool `json:"profile,omitempty" yaml:"profile,omitempty"` ProfileServicePort int `json:"profile_service_port,omitempty" yaml:"profile_service_port,omitempty"` Foreground bool `json:"foreground,omitempty" yaml:"foreground,omitempty"` LogLevel string `json:"log_level,omitempty" yaml:"log_level,omitempty"` Debug bool `json:"debug,omitempty" yaml:"debug,omitempty"` AllowOther bool `json:"allow_other,omitempty" yaml:"allow_other,omitempty"` Readonly bool `json:"readonly,omitempty" yaml:"readonly,omitempty"` ChildProcess bool `json:"childprocess,omitempty" yaml:"childprocess,omitempty"` WatchdogProcess bool `json:"watchdogprocess,omitempty" yaml:"watchdogprocess,omitempty"` WatchPID int `json:"watchpid,omitempty" yaml:"watchpid,omitempty"` InstanceID string `json:"instanceid,omitempty" yaml:"instanceid,omitempty"` FuseOptions []string `json:"fuse_options,omitempty" yaml:"fuse_options,omitempty"` }
Config holds the parameters list which can be configured
func NewConfigFromFile ¶ added in v0.10.1
NewConfigFromFile creates Config from file
func NewConfigFromICommandsEnvDir ¶ added in v0.10.1
NewConfigFromICommandsEnvDir creates Config from icommands environment dir (e.g., ~/.irods)
func NewConfigFromJSONFile ¶ added in v0.10.1
NewConfigFromJSONFile creates Config from JSON
func NewConfigFromYAML ¶
NewConfigFromYAML creates Config from YAML
func NewConfigFromYAMLFile ¶ added in v0.10.1
NewConfigFromYAMLFile creates Config from YAML
func (*Config) FixPathMappings ¶ added in v0.10.1
func (config *Config) FixPathMappings()
FixPathMappings fixes path mappings
func (*Config) FixSystemUserConfiguration ¶ added in v0.10.5
FixSystemUserConfiguration fixes system user configuration
func (*Config) FromIRODSUrl ¶ added in v0.10.1
FromIRODSUrl reads info from inputURL and updates config
func (*Config) GetInstanceDataRootDirPath ¶ added in v0.8.0
func (*Config) GetLogFilePath ¶ added in v0.8.0
GetLogFilePath returns log file path
func (*Config) MakeLogDir ¶ added in v0.8.0
MakeLogDir makes a log dir required
type IRODSAccessURL ¶ added in v0.10.1
type IRODSAccessURL struct { User string Password string Host string Port int Zone string Path string }
IRODSAccessURL is used to extract iRODS access information from iRODS Access URL (irods://host:port/zone/path)
func ParseIRODSUrl ¶ added in v0.10.1
func ParseIRODSUrl(inputURL string) (*IRODSAccessURL, error)
ParseIRODSUrl parses iRODS Access URL string and returns IRODSAccessURL struct
type TerminalWriter ¶ added in v0.10.3
type TerminalWriter struct {
// contains filtered or unexported fields
}
func GetTerminalWriter ¶ added in v0.10.3
func GetTerminalWriter() *TerminalWriter
func (*TerminalWriter) Lock ¶ added in v0.10.3
func (writer *TerminalWriter) Lock()
func (*TerminalWriter) Unlock ¶ added in v0.10.3
func (writer *TerminalWriter) Unlock()
type VersionInfo ¶
type VersionInfo struct { ClientVersion string `json:"clientVersion"` 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