Documentation
¶
Index ¶
- func CreateAccountFromCurrentUserAndHome() (*types.IRODSAccount, error)
- func CreateAccountFromDir(envDirPath string, uid int) (*types.IRODSAccount, error)
- func DecodePasswordFile(path string, uid int) (string, error)
- func DecodePasswordString(encodedPassword string, uid int) string
- func EncodePasswordFile(path string, s string, uid int) error
- func EncodePasswordString(s string, uid int) string
- func ReadPasswordFromDir(envDirPath string, uid int) (string, error)
- func SaveAccountToCurrentUserAndHome(account *types.IRODSAccount) error
- func SaveAccountToDir(envDirPath string, uid int, account *types.IRODSAccount) error
- type ICommandsEnvironment
- func CreateICommandsEnvironmentFromAccount(account *types.IRODSAccount) (*ICommandsEnvironment, error)
- func CreateICommandsEnvironmentFromDir(envDirPath string) (*ICommandsEnvironment, error)
- func CreateICommandsEnvironmentFromFile(envPath string) (*ICommandsEnvironment, error)
- func CreateICommandsEnvironmentFromJSON(jsonBytes []byte) (*ICommandsEnvironment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccountFromCurrentUserAndHome ¶
func CreateAccountFromCurrentUserAndHome() (*types.IRODSAccount, error)
CreateAccountFromCurrentUserAndHome creates IRODSAccount from a home dir
func CreateAccountFromDir ¶
func CreateAccountFromDir(envDirPath string, uid int) (*types.IRODSAccount, error)
CreateAccountFromDir creates IRODSAccount from a dir
func DecodePasswordFile ¶
DecodePasswordFile decodes password string in .irodsA file
func DecodePasswordString ¶
DecodePasswordString decodes password string in .irodsA file
func EncodePasswordFile ¶
EncodePasswordFile encodes password string and store in .irodsA file
func EncodePasswordString ¶
EncodePasswordString encodes password string to be stored in .irodsA file
func ReadPasswordFromDir ¶
ReadPassword decyphers password file (.irodsA)
func SaveAccountToCurrentUserAndHome ¶
func SaveAccountToCurrentUserAndHome(account *types.IRODSAccount) error
SaveAccountToCurrentUserAndHome creates environment file on a home dir
func SaveAccountToDir ¶
func SaveAccountToDir(envDirPath string, uid int, account *types.IRODSAccount) error
SaveAccountToDir creates environment file on a dir
Types ¶
type ICommandsEnvironment ¶
type ICommandsEnvironment struct {
AuthenticationFile string `json:"irods_authentication_file,omitempty"`
AuthenticationScheme string `json:"irods_authentication_scheme,omitempty"`
ClientServerNegotiation string `json:"irods_client_server_negotiation,omitempty"`
ClientServerPolicy string `json:"irods_client_server_policy,omitempty"`
ControlPlanePort int `json:"irods_control_plane_port,omitempty"`
ControlPlaneKey string `json:"irods_control_plane_key,omitempty"`
CurrentWorkingDir string `json:"irods_cwd,omitempty"`
Debug int `json:"irods_debug,omitempty"`
DefaultHashScheme string `json:"irods_default_hash_scheme,omitempty"`
Host string `json:"irods_host,omitempty"`
Port int `json:"irods_port,omitempty"`
Username string `json:"irods_user_name,omitempty"`
Zone string `json:"irods_zone_name,omitempty"`
DefaultResource string `json:"irods_default_resource,omitempty"`
EncryptionAlgorithm string `json:"irods_encryption_algorithm,omitempty"`
EncryptionKeySize int `json:"irods_encryption_key_size,omitempty"`
EncryptionNumHashRounds int `json:"irods_encryption_num_hash_rounds,omitempty"`
EncryptionSaltSize int `json:"irods_encryption_salt_size,omitempty"`
GSIServerDN string `json:"irods_gsi_server_dn,omitempty"`
Home string `json:"irods_home,omitempty"`
LogLevel int `json:"irods_log_level,omitempty"`
MatchHashPolicy string `json:"irods_match_hash_policy,omitempty"`
PluginsHome string `json:"irods_plugins_home,omitempty"`
SSLCACertificateFile string `json:"irods_ssl_ca_certificate_file,omitempty"`
SSLCACertificatePath string `json:"irods_ssl_ca_certificate_path,omitempty"`
SSLCertificateChainFile string `json:"irods_ssl_certificate_chain_file,omitempty"`
SSLCertificateKeyFile string `json:"irods_ssl_certificate_key_file,omitempty"`
SSLDHParamsFile string `json:"irods_ssl_dh_params_file,omitempty"`
SSLVerifyServer string `json:"irods_ssl_verify_server,omitempty"`
XMessageHost string `json:"irods_xmsg_host,omitempty"`
XMessagePort int `json:"irods_xmsg_port,omitempty"`
}
ICommandsEnvironment stores irods environment file (config file)
func CreateICommandsEnvironmentFromAccount ¶
func CreateICommandsEnvironmentFromAccount(account *types.IRODSAccount) (*ICommandsEnvironment, error)
CreateICommandsEnvironmentFromAccount creates ICommandsEnvironment from IRODSAccount
func CreateICommandsEnvironmentFromDir ¶
func CreateICommandsEnvironmentFromDir(envDirPath string) (*ICommandsEnvironment, error)
CreateICommandsEnvironmentFromDir creates ICommandsEnvironment from a dir
func CreateICommandsEnvironmentFromFile ¶
func CreateICommandsEnvironmentFromFile(envPath string) (*ICommandsEnvironment, error)
CreateICommandsEnvironmentFromFile creates ICommandsEnvironment from a file
func CreateICommandsEnvironmentFromJSON ¶
func CreateICommandsEnvironmentFromJSON(jsonBytes []byte) (*ICommandsEnvironment, error)
CreateICommandsEnvironmentFromJSON creates ICommandsEnvironment from JSON
func (*ICommandsEnvironment) ToAccount ¶
func (env *ICommandsEnvironment) ToAccount() *types.IRODSAccount
ToAccount creates IRODSAccount
func (*ICommandsEnvironment) ToFile ¶
func (env *ICommandsEnvironment) ToFile(envPath string) error
ToAccount creates IRODSAccount
func (*ICommandsEnvironment) ToJSON ¶
func (env *ICommandsEnvironment) ToJSON() ([]byte, error)
ToJSON converts to JSON bytes