Documentation ¶
Index ¶
- Constants
- func GetChecksumDigestSize(checksumAlgorithm ChecksumAlgorithm) int
- func GetIRODSErrorCode(err error) common.ErrorCode
- func IsAPINotSupportedError(err error) bool
- func IsAuthError(err error) bool
- func IsCollectionNotEmptyError(err error) bool
- func IsConnectionConfigError(err error) bool
- func IsConnectionError(err error) bool
- func IsConnectionPoolFullError(err error) bool
- func IsFileAlreadyExistError(err error) bool
- func IsFileNotFoundError(err error) bool
- func IsIRODSError(err error) bool
- func IsPermanantFailure(err error) bool
- func IsResourceServerConnectionConfigError(err error) bool
- func IsTicketNotFoundError(err error) bool
- func IsUserNotFoundError(err error) bool
- func MakeIRODSChecksumString(algorithm ChecksumAlgorithm, checksum []byte) (string, error)
- func NewAPINotSupportedError(apiNumber common.APINumber) error
- func NewAuthError(config *IRODSAccount) error
- func NewCollectionNotEmptyError(p string) error
- func NewConnectionConfigError(config *IRODSAccount) error
- func NewConnectionError() error
- func NewConnectionPoolFullError(requested int, max int) error
- func NewFileAlreadyExistError(p string) error
- func NewFileNotFoundError(p string) error
- func NewResourceServerConnectionConfigError(config *IRODSRedirectionInfo) error
- func NewTicketNotFoundError(ticket string) error
- func NewUserNotFoundError(name string) error
- type APINotSupportedError
- type AuthError
- type AuthScheme
- type CSNegotiation
- type CSNegotiationPolicyRequest
- type CSNegotiationResult
- type ChecksumAlgorithm
- type CollectionNotEmptyError
- type ColumnType
- type ConnectionConfigError
- type ConnectionError
- type ConnectionPoolFullError
- type DataObjectLockCommand
- type DataObjectLockType
- type DataType
- type Duration
- type EncryptionAlgorithm
- type FileAlreadyExistError
- type FileNotFoundError
- type FileOpenFlag
- type FileOpenMode
- func (mode FileOpenMode) GetFlag() int
- func (mode FileOpenMode) GetFlagSeekToEnd() (int, bool)
- func (mode FileOpenMode) IsOpeningExisting() bool
- func (mode FileOpenMode) IsRead() bool
- func (mode FileOpenMode) IsReadOnly() bool
- func (mode FileOpenMode) IsWrite() bool
- func (mode FileOpenMode) IsWriteOnly() bool
- func (mode FileOpenMode) SeekToEnd() bool
- func (mode FileOpenMode) Truncate() bool
- type IRODSAccess
- type IRODSAccessInheritance
- type IRODSAccessLevelType
- type IRODSAccount
- func CreateIRODSAccount(host string, port int, user string, zone string, authScheme AuthScheme, ...) (*IRODSAccount, error)
- func CreateIRODSAccountForTicket(host string, port int, user string, zone string, authScheme AuthScheme, ...) (*IRODSAccount, error)
- func CreateIRODSProxyAccount(host string, port int, clientUser string, clientZone string, proxyUser string, ...) (*IRODSAccount, error)
- func (account *IRODSAccount) FixAuthConfiguration()
- func (account *IRODSAccount) GetRedacted() *IRODSAccount
- func (account *IRODSAccount) SetCSNegotiation(requireNegotiation bool, requirePolicy CSNegotiationPolicyRequest)
- func (account *IRODSAccount) SetSSLConfiguration(sslConf *IRODSSSLConfig)
- func (account *IRODSAccount) UseProxyAccess() bool
- func (account *IRODSAccount) UseTicket() bool
- func (account *IRODSAccount) Validate() error
- type IRODSChecksum
- type IRODSCollection
- type IRODSColumn
- type IRODSDataObject
- type IRODSError
- type IRODSFileHandle
- type IRODSFileLockHandle
- type IRODSFileOpenRedirectionHandle
- type IRODSMeta
- type IRODSMetaItemType
- type IRODSProcess
- type IRODSQuota
- type IRODSRedirectionInfo
- type IRODSReplica
- type IRODSResource
- type IRODSSSLConfig
- type IRODSTicket
- type IRODSTicketForAnonymousAccess
- type IRODSUser
- type IRODSUserType
- type IRODSVersion
- type IRODSZone
- type ObjectType
- type ResourceServerConnectionConfigError
- type SSLVerifyServer
- type TicketNotFoundError
- type TicketType
- type TransferDataBlock
- type UserNotFoundError
- type Whence
Constants ¶
const ( // PamTTLDefault is a default value for Pam TTL PamTTLDefault int = 0 // sever decides UsernameRegexString string = "^((\\w|[-.@])+)$" HashSchemeDefault string = "SHA256" )
Variables ¶
This section is empty.
Functions ¶
func GetChecksumDigestSize ¶ added in v0.14.0
func GetChecksumDigestSize(checksumAlgorithm ChecksumAlgorithm) int
GetChecksumDigestSize returns checksum digest size
func GetIRODSErrorCode ¶ added in v0.5.1
GetIRODSErrorCode returns iRODS error code if the error is iRODSError
func IsAPINotSupportedError ¶ added in v0.15.0
IsAPINotSupportedError checks if the given error is APINotSupportedError
func IsAuthError ¶ added in v0.12.7
IsAuthError evaluates if the given error is authentication failure
func IsCollectionNotEmptyError ¶ added in v0.5.10
IsCollectionNotEmptyError evaluates if the given error is collection not empty error
func IsConnectionConfigError ¶ added in v0.12.7
IsConnectionConfigError evaluates if the given error is connection config error
func IsConnectionError ¶ added in v0.12.7
IsConnectionError evaluates if the given error is connection error
func IsConnectionPoolFullError ¶ added in v0.12.7
IsConnectionPoolFullError evaluates if the given error is connection full error
func IsFileAlreadyExistError ¶ added in v0.12.15
IsFileAlreadyExistError checks if the given error is FileAlreadyExistError
func IsFileNotFoundError ¶
IsFileNotFoundError checks if the given error is FileNotFoundError
func IsIRODSError ¶ added in v0.5.1
IsIRODSError checks if the given error is IRODSError
func IsPermanantFailure ¶ added in v0.12.17
IsPermanantFailure returns if given error is permanent failure
func IsResourceServerConnectionConfigError ¶ added in v0.14.0
IsResourceServerConnectionConfigError evaluates if the given error is resource server connection config error
func IsTicketNotFoundError ¶ added in v0.12.14
IsTicketNotFoundError checks if the given error is TicketNotFoundError
func IsUserNotFoundError ¶ added in v0.12.14
IsUserNotFoundError checks if the given error is UserNotFoundError
func MakeIRODSChecksumString ¶ added in v0.14.8
func MakeIRODSChecksumString(algorithm ChecksumAlgorithm, checksum []byte) (string, error)
MakeIRODSChecksumString makes iRODS checksum string
func NewAPINotSupportedError ¶ added in v0.15.0
NewAPINotSupportedError creates an error for api not supported
func NewAuthError ¶ added in v0.12.7
func NewAuthError(config *IRODSAccount) error
NewAuthError creates an error for auth
func NewCollectionNotEmptyError ¶ added in v0.5.10
NewCollectionNotEmptyError creates an error for collection not empty
func NewConnectionConfigError ¶ added in v0.12.7
func NewConnectionConfigError(config *IRODSAccount) error
NewConnectionConfigError creates a connection config error
func NewConnectionError ¶ added in v0.12.7
func NewConnectionError() error
NewConnectionError creates an error for connection poll full
func NewConnectionPoolFullError ¶ added in v0.12.7
NewConnectionPoolFullError creates an error for connection poll full
func NewFileAlreadyExistError ¶ added in v0.12.15
NewFileAlreadyExistError creates an error for file already exist
func NewFileNotFoundError ¶
NewFileNotFoundError creates an error for file not found
func NewResourceServerConnectionConfigError ¶ added in v0.14.0
func NewResourceServerConnectionConfigError(config *IRODSRedirectionInfo) error
NewResourceServerConnectionConfigError creates a resource server connection config error
func NewTicketNotFoundError ¶ added in v0.12.14
NewTicketNotFoundError creates an error for ticket not found
func NewUserNotFoundError ¶ added in v0.12.14
NewUserNotFoundError creates an error for user not found
Types ¶
type APINotSupportedError ¶ added in v0.15.0
APINotSupportedError contains api not supported error information
func (*APINotSupportedError) Error ¶ added in v0.15.0
func (err *APINotSupportedError) Error() string
Error returns error message
func (*APINotSupportedError) Is ¶ added in v0.15.0
func (err *APINotSupportedError) Is(other error) bool
Is tests type of error
func (*APINotSupportedError) ToString ¶ added in v0.15.0
func (err *APINotSupportedError) ToString() string
ToString stringifies the object
type AuthError ¶ added in v0.12.14
type AuthError struct {
Config *IRODSAccount
}
AuthError contains auth error information
type AuthScheme ¶
type AuthScheme string
AuthScheme defines Authentication Scheme
const ( // AuthSchemeNative uses Native authentication scheme AuthSchemeNative AuthScheme = "native" // AuthSchemeGSI uses GSI authentication scheme AuthSchemeGSI AuthScheme = "gsi" // AuthSchemePAM uses PAM authentication scheme AuthSchemePAM AuthScheme = "pam" // AuthSchemePAMPasswordAuthScheme uses PAM authentication scheme AuthSchemePAMPassword AuthScheme = "pam_password" // AuthSchemeUnknown is unknown scheme AuthSchemeUnknown AuthScheme = "" )
func GetAuthScheme ¶
func GetAuthScheme(authScheme string) AuthScheme
GetAuthScheme returns AuthScheme value from string
func (AuthScheme) IsPAM ¶ added in v0.15.0
func (authScheme AuthScheme) IsPAM() bool
IsPAM checks if the auth scheme is pam or pam_password
type CSNegotiation ¶ added in v0.15.2
type CSNegotiation string
CSNegotiation defines to perform Negotiation or not
const ( // CSNegotiationRequestServerNegotiation presents negotiation is required CSNegotiationRequestServerNegotiation CSNegotiation = "request_server_negotiation" CSNegotiationOff CSNegotiation = "off" )
func GetCSNegotiation ¶ added in v0.15.2
func GetCSNegotiation(negotiation string) CSNegotiation
GetCSNegotiation returns CSNegotiation value from string
func (CSNegotiation) IsNegotiationRequired ¶ added in v0.15.2
func (negotiation CSNegotiation) IsNegotiationRequired() bool
IsNegotiationRequired checks if negotiation is required
type CSNegotiationPolicyRequest ¶ added in v0.15.2
type CSNegotiationPolicyRequest string
CSNegotiationPolicyRequest defines Negotiation policy request
const ( // CSNegotiationPolicyRequestTCP requests Plain TCP connection CSNegotiationPolicyRequestTCP CSNegotiationPolicyRequest = "CS_NEG_REFUSE" // CSNegotiationPolicyRequestSSL requests SSL connection CSNegotiationPolicyRequestSSL CSNegotiationPolicyRequest = "CS_NEG_REQUIRE" // CSNegotiationPolicyRequestDontCare requests any of TCP or SSL connection CSNegotiationPolicyRequestDontCare CSNegotiationPolicyRequest = "CS_NEG_DONT_CARE" )
func GetCSNegotiationPolicyRequest ¶ added in v0.15.2
func GetCSNegotiationPolicyRequest(request string) CSNegotiationPolicyRequest
GetCSNegotiationPolicyRequest returns CSNegotiationPolicyRequest value from string
type CSNegotiationResult ¶ added in v0.15.2
type CSNegotiationResult string
CSNegotiationResult defines Negotiation result
const ( // CSNegotiationFailure presents negotiation is failed CSNegotiationFailure CSNegotiationResult = "CS_NEG_FAILURE" // CSNegotiationUseTCP uses Plain TCP connection CSNegotiationUseTCP CSNegotiationResult = "CS_NEG_USE_TCP" // CSNegotiationUseSSL uses SSL connection CSNegotiationUseSSL CSNegotiationResult = "CS_NEG_USE_SSL" )
func GetCSNegotiationResult ¶ added in v0.15.2
func GetCSNegotiationResult(policy string) CSNegotiationResult
GetCSNegotiationResult returns CSNegotiationResult value from string
func PerformCSNegotiation ¶
func PerformCSNegotiation(clientRequest CSNegotiationPolicyRequest, serverRequest CSNegotiationPolicyRequest) CSNegotiationResult
PerformCSNegotiation performs CSNegotiation and returns the policy determined
type ChecksumAlgorithm ¶ added in v0.12.6
type ChecksumAlgorithm string
ChecksumAlgorithm determines checksum algorithm
const ( // ChecksumAlgorithmSHA1 is for SHA1 ChecksumAlgorithmSHA1 ChecksumAlgorithm = "SHA-1" // ChecksumAlgorithmSHA256 is for SHA256 ChecksumAlgorithmSHA256 ChecksumAlgorithm = "SHA-256" // ChecksumAlgorithmSHA512 is for SHA512 ChecksumAlgorithmSHA512 ChecksumAlgorithm = "SHA-512" // ChecksumAlgorithmADLER32 is for ADLER32 ChecksumAlgorithmADLER32 ChecksumAlgorithm = "ADLER-32" // ChecksumAlgorithmMD5 is for MD5 ChecksumAlgorithmMD5 ChecksumAlgorithm = "MD5" // ChecksumAlgorithmUnknown is for unknown algorithm ChecksumAlgorithmUnknown ChecksumAlgorithm = "" )
func GetChecksumAlgorithm ¶ added in v0.14.0
func GetChecksumAlgorithm(checksumAlgorithm string) ChecksumAlgorithm
GetChecksumAlgorithm returns checksum algorithm from string
func ParseIRODSChecksumString ¶ added in v0.14.8
func ParseIRODSChecksumString(checksumString string) (ChecksumAlgorithm, []byte, error)
ParseIRODSChecksumString parses iRODS checksum string
type CollectionNotEmptyError ¶ added in v0.5.10
type CollectionNotEmptyError struct {
Path string
}
CollectionNotEmptyError contains collection not empty error information
func (*CollectionNotEmptyError) Error ¶ added in v0.5.10
func (err *CollectionNotEmptyError) Error() string
Error returns error message
func (*CollectionNotEmptyError) Is ¶ added in v0.12.14
func (err *CollectionNotEmptyError) Is(other error) bool
Is tests type of error
func (*CollectionNotEmptyError) ToString ¶ added in v0.12.14
func (err *CollectionNotEmptyError) ToString() string
ToString stringifies the object
type ColumnType ¶
type ColumnType string
ColumnType is a type of iRODS Column
const ( // ColumnTypeInteger is for integer column ColumnTypeInteger ColumnType = "Integer" // ColumnTypeString is for string column ColumnTypeString ColumnType = "String" // ColumnTypeDateTime is for datetime column ColumnTypeDateTime ColumnType = "DateTime" )
type ConnectionConfigError ¶ added in v0.12.14
type ConnectionConfigError struct {
Config *IRODSAccount
}
ConnectionConfigError contains connection config error information
func (*ConnectionConfigError) Error ¶ added in v0.12.14
func (err *ConnectionConfigError) Error() string
Error returns error message
func (*ConnectionConfigError) Is ¶ added in v0.12.14
func (err *ConnectionConfigError) Is(other error) bool
Is tests type of error
func (*ConnectionConfigError) ToString ¶ added in v0.12.14
func (err *ConnectionConfigError) ToString() string
ToString stringifies the object
type ConnectionError ¶ added in v0.12.14
type ConnectionError struct { }
ConnectionError contains connection error information
func (*ConnectionError) Error ¶ added in v0.12.14
func (err *ConnectionError) Error() string
Error returns error message
func (*ConnectionError) Is ¶ added in v0.12.14
func (err *ConnectionError) Is(other error) bool
Is tests type of error
func (*ConnectionError) ToString ¶ added in v0.12.14
func (err *ConnectionError) ToString() string
ToString stringifies the object
type ConnectionPoolFullError ¶ added in v0.12.14
ConnectionPoolFullError contains connection pool full error information
func (*ConnectionPoolFullError) Error ¶ added in v0.12.14
func (err *ConnectionPoolFullError) Error() string
Error returns error message
func (*ConnectionPoolFullError) Is ¶ added in v0.12.14
func (err *ConnectionPoolFullError) Is(other error) bool
Is tests type of error
func (*ConnectionPoolFullError) ToString ¶ added in v0.12.14
func (err *ConnectionPoolFullError) ToString() string
ToString stringifies the object
type DataObjectLockCommand ¶ added in v0.12.8
type DataObjectLockCommand string
DataObjectLockCommand is a type for data object lock command
const ( // DataObjectLockCommandSetLock is for set lock command DataObjectLockCommandSetLock DataObjectLockCommand = "setLockCmd" // DataObjectLockCommandSetLockWait is for set lock wait command DataObjectLockCommandSetLockWait DataObjectLockCommand = "setLockWaitCmd" // DataObjectLockCommandGetLock is for get lock command DataObjectLockCommandGetLock DataObjectLockCommand = "getLockCmd" )
type DataObjectLockType ¶ added in v0.12.8
type DataObjectLockType string
DataObjectLockType is a type for data object lock type
const ( // DataObjectLockTypeRead is for read lock DataObjectLockTypeRead DataObjectLockType = "readLockType" // DataObjectLockTypeWrite is for write lock DataObjectLockTypeWrite DataObjectLockType = "writeLockType" // DataObjectLockTypeWrite is for write lock DataObjectLockTypeUnlock DataObjectLockType = "unlockType" )
func (DataObjectLockType) GetFileOpenMode ¶ added in v0.12.8
func (t DataObjectLockType) GetFileOpenMode() FileOpenMode
GetFileOpenMode returns FileOpenMode
type DataType ¶ added in v0.9.4
type DataType string
DataType is a type for data type
const ( GENERIC_DT DataType = "generic" TEXT_DT DataType = "text" ASCII_TEXT_DT DataType = "ascii text" // *.txt ASCII_COMPRESSED_LEMPEL_ZIV_DT DataType = "ascii compressed Lempel-Ziv" // *.z, *.zip, *.gz ASCII_COMPRESSED_HUFFMAN_DT DataType = "ascii compressed Huffman" // *.z, *.zip, *.gz EBCDIC_TEXT_DT DataType = "ebcdic text" // *.txt EBCDIC_COMPRESSED_LEMPEL_ZIV_DT DataType = "ebcdic compressed Lempel-Ziv" // *.z, *.zip, *.gz EBCDIC_COMPRESSED_HUFFMAN_DT DataType = "ebcdic compressed Huffman" // *.z, *.zip, *.gz IMAGE_DT DataType = "image" TIFF_IMAGE_DT DataType = "tiff image" // *.tif, *.tiff UUENCODED_TIFF_DT DataType = "uuencoded tiff" // *.uu GIF_IMAGE_DT DataType = "gif image" // *.gif JPEG_IMAGE_DT DataType = "jpeg image" // *.jpeg, *.jpg PBM_IMAGE_DT DataType = "pbm image" // *.pbm FIG_IMAGE_DT DataType = "fig image" // *.fig FITS_IMAGE_DT DataType = "FITS image" // *.fits, *.fit DICOM_IMAGE_DT DataType = "DICOM image" // *.IMA, *.ima PRINT_FORMAT_DT DataType = "print-format" LATEX_FORMAT_DT DataType = "LaTeX format" // *.tex TROFF_FORMAT_DT DataType = "Troff format" // *.trf, *.trof POSTSCRIPT_FORMAT_DT DataType = "Postscript format" // *.ps DVI_FORMAT_DT DataType = "DVI format" // *.dvi WORD_FORMAT_DT DataType = "Word format" // *.doc, *.rtf PROGRAM_CODE_DT DataType = "program code" SQL_SCRIPT_DT DataType = "SQL script" // *.sql C_CODE_DT DataType = "C code" // *.c C_INCLUDE_FILE_DT DataType = "C include file" // *.c FORTRAN_CODE_DT DataType = "fortran code" // *.f OBJECT_CODE_DT DataType = "object code" // *.o LIBRARY_CODE_DT DataType = "library code" // *.a DATA_FILE_DT DataType = "data file" // *.dat HTML_FILE_DT DataType = "html" // *.htm, *.html SGML_FILE_DT DataType = "SGML File" // *.sgm, *.sgml WAVE_AUDIO_DT DataType = "Wave Audio" // *.wav TAR_FILE_DT DataType = "tar file" // *.tar COMPRESSED_TAR_FILE_DT DataType = "compressed tar file" // *.tz, *.tgz, *.zip JAVA_CODE_DT DataType = "java code" // *.jav, *.java PERL_SCRIPT_DT DataType = "perl script" // *.pl TCL_SCRIPT_DT DataType = "tcl script" // *.tcl LINK_CODE_DT DataType = "link code" // *.o SHADOW_OBJECT_DT DataType = "shadow object" DATABASE_SHADOW_OBJECT_DT DataType = "database shadow object" DIRECTORY_SHADOW_OBJECT_DT DataType = "directory shadow object" DATABASE_DT DataType = "database" STREAMS_DT DataType = "streams" AUDIO_STREAMS_DT DataType = "audio streams" REAL_AUDIO_DT DataType = "realAudio" // *.ra VIDEO_STREAMS_DT DataType = "video streams" REAL_VIDEO_DT DataType = "realVideo" // *.rv MPEG_DT DataType = "MPEG" // *.mpeg, *.mpg AVI_DT DataType = "AVI" // *.avi PNG_DT DataType = "PNG-Portable Network Graphics" // *.png MP3_DT DataType = "MP3 - MPEG Audio" // *.mp3, *.mpa WMV_DT DataType = "WMV-Windows Media Video" // *.wmv BMP_DT DataType = "BMP -Bit Map" // *.bmp CSS_DT DataType = "CSS-Cascading Style Sheet" XML_DT DataType = "xml" // *.xml SLIDE_DT DataType = "Slide" POWER_POINT_SLIDE_DT DataType = "Power Point Slide" // *.ppt SPREAD_SHEET_DT DataType = "Spread Sheet" EXCEL_SPREAD_SHEET_DT DataType = "Excel Spread Sheet" // *.xls DOCUMENT_DT DataType = "Document" MSWORD_DOCUMENT_DT DataType = "MSWord Document" // *.doc, *.rtf PDF_DOCUMENT_DT DataType = "PDF Document" // *.pdf EXECUTABLE_DT DataType = "Executable" NT_EXECUTABLE_DT DataType = "NT Executable" SOLARIS_EXECUTABLE_DT DataType = "Solaris Executable" AIX_EXECUTABLE_DT DataType = "AIX Executable" MAC_EXECUTABLE_DT DataType = "Mac Executable" MAC_OSX_EXECURABLE_DT DataType = "Mac OSX Executable" CRAY_EXECUTABLE_DT DataType = "Cray Executable" SGI_EXECUTABLE_DT DataType = "SGI Executable" DLL_DT DataType = "DLL" NT_DLL_DT DataType = "NT DLL" SOLARIS_DLL_DT DataType = "Solaris DLL" AIX_DLL_DT DataType = "AIX DLL" MAC_DLL_DT DataType = "Mac DLL" CRAY_DLL_DT DataType = "Cray DLL" SGI_DLL_DT DataType = "SGI DLL" MOVIE_DT DataType = "Movie" MPEG_MOVIE_DT DataType = "MPEG Movie" // *.mpeg, *.mpg MPEG3_MOVIE_DT DataType = "MPEG 3 Movie" // *.mpeg, *.mpg QUICKTIME_MOVIE_DT DataType = "Quicktime Movie" // *.mov COMPRESSED_FILE_DT DataType = "compressed file" COMPRESSED_MMCIF_FILE_DT DataType = "compressed mmCIF file" // *.cif, *.mmcif COMPRESSED_PDB_FILE_DT DataType = "compressed PDB file" // *.pdb BINARY_FILE_DT DataType = "binary file" URL_DT DataType = "URL" // *.htm, *.html NSF_AWARD_ABSTRACTS_DT DataType = "NSF Award Abstracts" EMAIL_DT DataType = "email" ORB_DATA_DT DataType = "orb data" DATASCOPE_DATA_DT DataType = "datascope data" DICOM_HEADER_DT DataType = "DICOM header" XML_SCHEMA_DT DataType = "XML Schema" // *.xsd TAR_BUNDLE_DT DataType = "tar bundle" DATABASE_OBJECT_DT DataType = "database object" MSO_DT DataType = "mso" GZIP_TAR_DT DataType = "gzipTar" // *.tar.gz BZIP2_TAR_DT DataType = "bzip2Tar" // *.tar.bz2 GZIP_FILE_DT DataType = "gzipFile" // *.gz BZIP2_FILE_DT DataType = "bzip2File" // *.bz2 ZIP_FILE_DT DataType = "zipFile" // *.zip GZIP_TAR_BUNDLE_DT DataType = "gzipTar bundle" BZIP2_TAR_BUNDLE_DT DataType = "bzip2Tar bundle" ZIP_FILE_BUNDLE_DT DataType = "zipFile bundle" MSSO_FILE_DT DataType = "msso file" )
type Duration ¶ added in v0.15.5
Duration is a replacement of time.Duration that supports JSON
func (*Duration) MarshalJSON ¶ added in v0.15.5
MarshalJSON ...
func (*Duration) UnmarshalJSON ¶ added in v0.15.5
UnmarshalJSON ...
func (*Duration) UnmarshalYAML ¶ added in v0.15.5
UnmarshalYAML ...
type EncryptionAlgorithm ¶ added in v0.14.0
type EncryptionAlgorithm string
EncryptionAlgorithm determines encryption algorithm
const ( // EncryptionAlgorithmAES256CBC is for AES-256-CBC EncryptionAlgorithmAES256CBC EncryptionAlgorithm = "AES-256-CBC" // EncryptionAlgorithmAES256CTR is for AES-256-CTR EncryptionAlgorithmAES256CTR EncryptionAlgorithm = "AES-256-CTR" // EncryptionAlgorithmAES256CFB is for AES-256-CFB EncryptionAlgorithmAES256CFB EncryptionAlgorithm = "AES-256-CFB" // EncryptionAlgorithmAES256OFB is for AES-256-OFB EncryptionAlgorithmAES256OFB EncryptionAlgorithm = "AES-256-OFB" // EncryptionAlgorithmDES256CBC is for DES-256-CBC EncryptionAlgorithmDES256CBC EncryptionAlgorithm = "DES-256-CBC" // EncryptionAlgorithmDES256CTR is for DES-256-CTR EncryptionAlgorithmDES256CTR EncryptionAlgorithm = "DES-256-CTR" // EncryptionAlgorithmDES256CFB is for DES-256-CFB EncryptionAlgorithmDES256CFB EncryptionAlgorithm = "DES-256-CFB" // EncryptionAlgorithmDES256OFB is for DES-256-OFB EncryptionAlgorithmDES256OFB EncryptionAlgorithm = "DES-256-OFB" // EncryptionAlgorithmUnknown is for unknown algorithm EncryptionAlgorithmUnknown EncryptionAlgorithm = "" )
func GetEncryptionAlgorithm ¶ added in v0.14.0
func GetEncryptionAlgorithm(encryptionAlgorithm string) EncryptionAlgorithm
GetEncryptionAlgorithm returns encryption algorithm from string
type FileAlreadyExistError ¶ added in v0.12.15
type FileAlreadyExistError struct {
Path string
}
FileAlreadyExistError contains file already exist error information
func (*FileAlreadyExistError) Error ¶ added in v0.12.15
func (err *FileAlreadyExistError) Error() string
Error returns error message
func (*FileAlreadyExistError) Is ¶ added in v0.12.15
func (err *FileAlreadyExistError) Is(other error) bool
Is tests type of error
func (*FileAlreadyExistError) ToString ¶ added in v0.12.15
func (err *FileAlreadyExistError) ToString() string
ToString stringifies the object
type FileNotFoundError ¶
type FileNotFoundError struct {
Path string
}
FileNotFoundError contains file not found error information
func (*FileNotFoundError) Error ¶
func (err *FileNotFoundError) Error() string
Error returns error message
func (*FileNotFoundError) Is ¶ added in v0.12.14
func (err *FileNotFoundError) Is(other error) bool
Is tests type of error
func (*FileNotFoundError) ToString ¶ added in v0.12.14
func (err *FileNotFoundError) ToString() string
ToString stringifies the object
type FileOpenFlag ¶
type FileOpenFlag int
FileOpenFlag is internally used value, derived from FileOpenMode
const ( // O_RDONLY is for read O_RDONLY FileOpenFlag = 0 // O_WRONLY is for write O_WRONLY FileOpenFlag = 1 // O_RDWR is for read and write O_RDWR FileOpenFlag = 2 // O_APPEND is for append (moving the file pointer to the file end) O_APPEND FileOpenFlag = 1024 // O_CREAT is for creating a file if not exists O_CREAT FileOpenFlag = 64 // O_EXCL ... O_EXCL FileOpenFlag = 128 // O_TRUNC is for truncating content O_TRUNC FileOpenFlag = 512 )
type FileOpenMode ¶
type FileOpenMode string
FileOpenMode determines file open mode
const ( // FileOpenModeReadOnly is for read FileOpenModeReadOnly FileOpenMode = "r" // FileOpenModeReadWrite is for read and write FileOpenModeReadWrite FileOpenMode = "r+" // FileOpenModeWriteOnly is for write FileOpenModeWriteOnly FileOpenMode = "w" // FileOpenModeWriteTruncate is for write, but truncates the file FileOpenModeWriteTruncate FileOpenMode = "w+" // FileOpenModeAppend is for write, not trucate, but appends from the file end FileOpenModeAppend FileOpenMode = "a" // FileOpenModeReadAppend is for read and write, but appends from the file end FileOpenModeReadAppend FileOpenMode = "a+" )
func (FileOpenMode) GetFlag ¶ added in v0.7.6
func (mode FileOpenMode) GetFlag() int
GetFlag returns file open flag
func (FileOpenMode) GetFlagSeekToEnd ¶ added in v0.7.6
func (mode FileOpenMode) GetFlagSeekToEnd() (int, bool)
GetFlagSeekToEnd returns file open flag and returns true if file pointer moves to the file end
func (FileOpenMode) IsOpeningExisting ¶ added in v0.7.6
func (mode FileOpenMode) IsOpeningExisting() bool
IsOpeningExisting returns true if the file open mode is for opening existing file
func (FileOpenMode) IsRead ¶ added in v0.7.6
func (mode FileOpenMode) IsRead() bool
IsRead returns true if the file open mode is for read
func (FileOpenMode) IsReadOnly ¶ added in v0.7.6
func (mode FileOpenMode) IsReadOnly() bool
IsReadOnly returns true if the file open mode is for read-only
func (FileOpenMode) IsWrite ¶ added in v0.7.6
func (mode FileOpenMode) IsWrite() bool
IsWrite returns true if the file open mode is for write
func (FileOpenMode) IsWriteOnly ¶ added in v0.7.6
func (mode FileOpenMode) IsWriteOnly() bool
IsWriteOnly returns true if the file open mode is for write-only
func (FileOpenMode) SeekToEnd ¶ added in v0.7.6
func (mode FileOpenMode) SeekToEnd() bool
SeekToEnd returns if the mode needs seeking to end
func (FileOpenMode) Truncate ¶ added in v0.15.2
func (mode FileOpenMode) Truncate() bool
Truncate returns if the mode needs truncating the file
type IRODSAccess ¶
type IRODSAccess struct { Path string UserName string UserZone string UserType IRODSUserType AccessLevel IRODSAccessLevelType }
IRODSAccess contains irods access information
func (*IRODSAccess) ToString ¶
func (access *IRODSAccess) ToString() string
ToString stringifies the object
type IRODSAccessInheritance ¶ added in v0.14.6
IRODSAccessInheritance contains irods access inheritance information
func (*IRODSAccessInheritance) ToString ¶ added in v0.14.6
func (inheritance *IRODSAccessInheritance) ToString() string
ToString stringifies the object
type IRODSAccessLevelType ¶ added in v0.3.0
type IRODSAccessLevelType string
IRODSAccessLevelType is a type for access level
const ( // IRODSAccessLevelNull is for null access IRODSAccessLevelNull IRODSAccessLevelType = "null" // IRODSAccessLevelExecute is for execute access IRODSAccessLevelExecute IRODSAccessLevelType = "execute" // IRODSAccessLevelReadAnnotation is for read annotation access IRODSAccessLevelReadAnnotation IRODSAccessLevelType = "read_annotation" // IRODSAccessLevelReadSystemMetadata is for read system metadata access IRODSAccessLevelReadSystemMetadata IRODSAccessLevelType = "read_system_metadata" // IRODSAccessLevelReadMetadata is for read metadata access IRODSAccessLevelReadMetadata IRODSAccessLevelType = "read_metadata" // IRODSAccessLevelReadObject is for read object access IRODSAccessLevelReadObject IRODSAccessLevelType = "read_object" // IRODSAccessLevelWriteAnnotation is for write annotation access IRODSAccessLevelWriteAnnotation IRODSAccessLevelType = "write_annotation" // IRODSAccessLevelCreateMetadata is for create metadata access IRODSAccessLevelCreateMetadata IRODSAccessLevelType = "create_metadata" // IRODSAccessLevelModifyMetadata is for modify metadata access IRODSAccessLevelModifyMetadata IRODSAccessLevelType = "modify_metadata" // IRODSAccessLevelDeleteMetadata is for delete metadata access IRODSAccessLevelDeleteMetadata IRODSAccessLevelType = "delete_metadata" // IRODSAccessLevelAdministerObject is for administer object access IRODSAccessLevelAdministerObject IRODSAccessLevelType = "administer_object" // IRODSAccessLevelCreateObject is for create object access IRODSAccessLevelCreateObject IRODSAccessLevelType = "create_object" // IRODSAccessLevelModifyObject is for modify object access IRODSAccessLevelModifyObject IRODSAccessLevelType = "modify_object" // IRODSAccessLevelDeleteObject is for delete object access IRODSAccessLevelDeleteObject IRODSAccessLevelType = "delete_object" // IRODSAccessLevelCreateToken is for create token access IRODSAccessLevelCreateToken IRODSAccessLevelType = "create_token" // IRODSAccessLevelDeleteToken is for delete token access IRODSAccessLevelDeleteToken IRODSAccessLevelType = "delete_token" // IRODSAccessLevelCurate is for curate access IRODSAccessLevelCurate IRODSAccessLevelType = "curate" // IRODSAccessLevelOwner is for owner access IRODSAccessLevelOwner IRODSAccessLevelType = "own" )
func GetIRODSAccessLevelType ¶ added in v0.14.3
func GetIRODSAccessLevelType(accessLevelType string) IRODSAccessLevelType
func (IRODSAccessLevelType) ChmodString ¶ added in v0.4.5
func (accessType IRODSAccessLevelType) ChmodString() string
ChmodString returns the string for update access control messages.
type IRODSAccount ¶
type IRODSAccount struct { AuthenticationScheme AuthScheme ClientServerNegotiation bool CSNegotiationPolicy CSNegotiationPolicyRequest Host string Port int ClientUser string ClientZone string ProxyUser string ProxyZone string Password string Ticket string DefaultResource string DefaultHashScheme string PamTTL int PAMToken string SSLConfiguration *IRODSSSLConfig }
IRODSAccount contains irods login information
func CreateIRODSAccount ¶
func CreateIRODSAccount(host string, port int, user string, zone string, authScheme AuthScheme, password string, defaultResource string) (*IRODSAccount, error)
CreateIRODSAccount creates IRODSAccount
func CreateIRODSAccountForTicket ¶ added in v0.5.1
func CreateIRODSAccountForTicket(host string, port int, user string, zone string, authScheme AuthScheme, password string, ticket string, defaultResource string) (*IRODSAccount, error)
CreateIRODSAccountForTicket creates IRODSAccount
func CreateIRODSProxyAccount ¶
func CreateIRODSProxyAccount(host string, port int, clientUser string, clientZone string, proxyUser string, proxyZone string, authScheme AuthScheme, password string, defaultResource string) (*IRODSAccount, error)
CreateIRODSProxyAccount creates IRODSAccount for proxy access
func (*IRODSAccount) FixAuthConfiguration ¶ added in v0.12.10
func (account *IRODSAccount) FixAuthConfiguration()
func (*IRODSAccount) GetRedacted ¶ added in v0.12.14
func (account *IRODSAccount) GetRedacted() *IRODSAccount
func (*IRODSAccount) SetCSNegotiation ¶ added in v0.7.3
func (account *IRODSAccount) SetCSNegotiation(requireNegotiation bool, requirePolicy CSNegotiationPolicyRequest)
SetCSNegotiation sets CSNegotiation policy
func (*IRODSAccount) SetSSLConfiguration ¶
func (account *IRODSAccount) SetSSLConfiguration(sslConf *IRODSSSLConfig)
SetSSLConfiguration sets SSL Configuration
func (*IRODSAccount) UseProxyAccess ¶
func (account *IRODSAccount) UseProxyAccess() bool
UseProxyAccess returns whether it uses proxy access or not
func (*IRODSAccount) UseTicket ¶ added in v0.5.1
func (account *IRODSAccount) UseTicket() bool
UseTicket returns whether it uses ticket for access control
func (*IRODSAccount) Validate ¶ added in v0.10.1
func (account *IRODSAccount) Validate() error
Validate validates iRODS account
type IRODSChecksum ¶ added in v0.12.6
type IRODSChecksum struct { IRODSChecksumString string Algorithm ChecksumAlgorithm Checksum []byte }
IRODSChecksum contains data object hash information
func CreateIRODSChecksum ¶ added in v0.12.10
func CreateIRODSChecksum(checksumString string) (*IRODSChecksum, error)
CreateIRODSChecksum creates IRODSChecksum from checksum string
func (*IRODSChecksum) ToString ¶ added in v0.12.6
func (checksum *IRODSChecksum) ToString() string
ToString stringifies the object
type IRODSCollection ¶
type IRODSCollection struct { ID int64 // Path has an absolute path to the collection Path string // Name has only the name part of the path Name string // Owner has the owner's name Owner string // CreateTime has creation time CreateTime time.Time // ModifyTime has last modified time ModifyTime time.Time }
IRODSCollection contains irods collection information
func (*IRODSCollection) ToString ¶
func (coll *IRODSCollection) ToString() string
ToString stringifies the object
type IRODSColumn ¶
type IRODSColumn struct { Type ColumnType ICatKey string ICatID int }
IRODSColumn is a struct holding a column
type IRODSDataObject ¶
type IRODSDataObject struct { ID int64 CollectionID int64 // Path has an absolute path to the data object Path string // Name has only the name part of the path Name string // Size has the file size Size int64 // DataType has the type of the file, DataType string // Replicas has replication information Replicas []*IRODSReplica }
IRODSDataObject contains irods data object information
func (*IRODSDataObject) ToString ¶
func (obj *IRODSDataObject) ToString() string
ToString stringifies the object
type IRODSError ¶ added in v0.5.1
IRODSError contains irods error information
func NewIRODSError ¶ added in v0.5.1
func NewIRODSError(code common.ErrorCode) *IRODSError
NewIRODSError creates a new IRODSError
func NewIRODSErrorWithString ¶ added in v0.5.1
func NewIRODSErrorWithString(code common.ErrorCode, message string) *IRODSError
NewIRODSErrorWithString creates a new IRODSError with message
func (*IRODSError) Error ¶ added in v0.5.1
func (err *IRODSError) Error() string
Error returns error message
func (*IRODSError) GetCode ¶ added in v0.5.1
func (err *IRODSError) GetCode() common.ErrorCode
GetCode returns error code
func (*IRODSError) Is ¶ added in v0.12.14
func (err *IRODSError) Is(other error) bool
Is tests type of error
func (*IRODSError) ToString ¶ added in v0.5.1
func (err *IRODSError) ToString() string
ToString stringifies the object
type IRODSFileHandle ¶
type IRODSFileHandle struct { FileDescriptor int // Path has an absolute path to the data object Path string OpenMode FileOpenMode Resource string Oper common.OperationType }
IRODSFileHandle contains file handle
func (*IRODSFileHandle) ToString ¶
func (handle *IRODSFileHandle) ToString() string
ToString stringifies the object
type IRODSFileLockHandle ¶ added in v0.12.8
type IRODSFileLockHandle struct { FileDescriptor int // Path has an absolute path to the data object Path string OpenMode FileOpenMode Type DataObjectLockType Command DataObjectLockCommand }
IRODSFileLockHandle contains file lock handle
func (*IRODSFileLockHandle) ToString ¶ added in v0.12.8
func (handle *IRODSFileLockHandle) ToString() string
ToString stringifies the object
type IRODSFileOpenRedirectionHandle ¶ added in v0.14.0
type IRODSFileOpenRedirectionHandle struct { FileDescriptor int // Path has an absolute path to the data object Path string Resource string Threads int CheckSum string RedirectionInfo *IRODSRedirectionInfo }
IRODSFileOpenRedirectionHandle contains file open redirection handle
func (*IRODSFileOpenRedirectionHandle) ToString ¶ added in v0.14.0
func (info *IRODSFileOpenRedirectionHandle) ToString() string
ToString stringifies the object
type IRODSMeta ¶
type IRODSMeta struct { AVUID int64 // is ignored on metadata operations (set, add, mod, rm) Name string Value string Units string // CreateTime has creation time CreateTime time.Time // ModifyTime has last modified time ModifyTime time.Time }
IRODSMeta contains irods metadata
type IRODSMetaItemType ¶ added in v0.2.0
type IRODSMetaItemType string
IRODSMetaItemType describes a type to set metadata on
const ( // IRODSDataObjectMetaItemType is a type for data object meta IRODSDataObjectMetaItemType IRODSMetaItemType = "-d" // IRODSCollectionMetaItemType is a type for collection meta IRODSCollectionMetaItemType IRODSMetaItemType = "-C" // IRODSResourceMetaItemType is a type for resource meta IRODSResourceMetaItemType IRODSMetaItemType = "-R" // IRODSUserMetaItemType is a type for user meta IRODSUserMetaItemType IRODSMetaItemType = "-u" )
func GetIRODSMetaItemType ¶ added in v0.2.0
func GetIRODSMetaItemType(data interface{}) (IRODSMetaItemType, error)
GetIRODSMetaItemType gets the irods metadata item type from an object.
type IRODSProcess ¶ added in v0.9.7
type IRODSProcess struct { ID int64 StartTime time.Time ProxyUser string ProxyZone string ClientUser string ClientZone string ClientAddress string ServerAddress string ClientProgram string }
IRODSProcess contains irods process information
func (*IRODSProcess) ToString ¶ added in v0.9.7
func (obj *IRODSProcess) ToString() string
ToString stringifies the object
type IRODSQuota ¶ added in v0.4.5
IRODSQuota describes a resource quota
func (*IRODSQuota) ToString ¶ added in v0.4.5
func (q *IRODSQuota) ToString() string
ToString stringifies the object
type IRODSRedirectionInfo ¶ added in v0.14.0
type IRODSRedirectionInfo struct { Port int Cookie int ServerSocket int WindowSize int Host string }
IRODSRedirectionInfo contains redirection info
func (*IRODSRedirectionInfo) ToString ¶ added in v0.14.0
func (info *IRODSRedirectionInfo) ToString() string
ToString stringifies the object
func (*IRODSRedirectionInfo) Validate ¶ added in v0.14.0
func (info *IRODSRedirectionInfo) Validate() error
Validate validates redirection info
type IRODSReplica ¶
type IRODSReplica struct { Number int64 // Owner has the owner's name Owner string Checksum *IRODSChecksum Status string ResourceName string // Path has an absolute path to the data object Path string ResourceHierarchy string // CreateTime has creation time CreateTime time.Time // ModifyTime has last modified time ModifyTime time.Time }
IRODSReplica contains irods data object replication information
func (*IRODSReplica) ToString ¶
func (obj *IRODSReplica) ToString() string
ToString stringifies the object
type IRODSResource ¶ added in v0.4.0
type IRODSResource struct { RescID int64 Name string Zone string Type string Class string Location string // Path has the path string of the resource Path string // Context has the context string Context string // CreateTime has creation time CreateTime time.Time // ModifyTime has last modified time ModifyTime time.Time }
IRODSResource describes a resource host
func (*IRODSResource) ToString ¶ added in v0.4.0
func (res *IRODSResource) ToString() string
ToString stringifies the object
type IRODSSSLConfig ¶
type IRODSSSLConfig struct { CACertificateFile string CACertificatePath string EncryptionKeySize int EncryptionAlgorithm string EncryptionSaltSize int EncryptionNumHashRounds int VerifyServer SSLVerifyServer DHParamsFile string ServerName string // optional server name for verification }
IRODSSSLConfig contains irods ssl configuration
func (*IRODSSSLConfig) GetTLSConfig ¶ added in v0.15.2
func (config *IRODSSSLConfig) GetTLSConfig(serverName string) (*tls.Config, error)
GetTLSConfig returns TLS Config
func (*IRODSSSLConfig) LoadCACert ¶ added in v0.14.1
func (config *IRODSSSLConfig) LoadCACert() (*x509.CertPool, error)
LoadCACert loads CA Cert
type IRODSTicket ¶ added in v0.7.0
type IRODSTicket struct { ID int64 // Name is ticket string Name string // Type is access type Type TicketType // Owner has the owner's name Owner string // OwnerZone has the owner's zone OwnerZone string // ObjectType is type of object ObjectType ObjectType // Path is path to the object Path string // ExpirationTime is time that the ticket expires ExpirationTime time.Time // UsesLimit is an access limit UsesLimit int64 // UsesCount is an access count UsesCount int64 // WriteFileLimit is a write file limit WriteFileLimit int64 // WriteFileCount is a write file count WriteFileCount int64 // WriteByteLimit is a write byte limit WriteByteLimit int64 // WriteByteCount is a write byte count WriteByteCount int64 }
IRODSTicket contains irods ticket information
func (*IRODSTicket) IsReadWrite ¶ added in v0.12.19
func (ticket *IRODSTicket) IsReadWrite() bool
IsReadWrite returns true if the ticket is TicketTypeWrite
func (*IRODSTicket) ToString ¶ added in v0.7.0
func (ticket *IRODSTicket) ToString() string
ToString stringifies the object
type IRODSTicketForAnonymousAccess ¶ added in v0.7.0
type IRODSTicketForAnonymousAccess struct { ID int64 // Name is ticket string Name string // Type is access type Type TicketType // Path is path to the object Path string // ExpirationTime is time that the ticket expires ExpirationTime time.Time }
IRODSTicketForAnonymousAccess contains minimal irods ticket information for anonymous access
func (*IRODSTicketForAnonymousAccess) ToString ¶ added in v0.7.0
func (ticket *IRODSTicketForAnonymousAccess) ToString() string
ToString stringifies the object
type IRODSUser ¶
type IRODSUser struct { ID int64 Name string Zone string Type IRODSUserType }
IRODSUser contains irods user information
func (*IRODSUser) IsAdminGroup ¶ added in v0.12.19
IsAdminGroup returns true if type is IRODSUserGroupAdmin
func (*IRODSUser) IsAdminUser ¶ added in v0.12.19
IsAdminUser returns true if type is IRODSUserRodsAdmin
type IRODSUserType ¶ added in v0.3.0
type IRODSUserType string
IRODSUserType is a type of iRODS User
const ( // IRODSUserRodsGroup is for a group IRODSUserRodsGroup IRODSUserType = "rodsgroup" // IRODSUserRodsUser is for a user IRODSUserRodsUser IRODSUserType = "rodsuser" // IRODSUserRodsAdmin is for an admin user IRODSUserRodsAdmin IRODSUserType = "rodsadmin" // IRODSUserGroupAdmin is for an admin group IRODSUserGroupAdmin IRODSUserType = "groupadmin" )
type IRODSVersion ¶
type IRODSVersion struct { ReleaseVersion string // e.g., "rods4.2.8" APIVersion string ReconnectPort int ReconnectAddr string Cookie int }
IRODSVersion contains irods version information
func (*IRODSVersion) GetReleaseVersion ¶ added in v0.5.2
func (ver *IRODSVersion) GetReleaseVersion() (int, int, int)
GetReleaseVersion returns version parts (major, minor, patch)
func (*IRODSVersion) HasHigherVersionThan ¶ added in v0.5.2
func (ver *IRODSVersion) HasHigherVersionThan(major int, minor int, patch int) bool
HasHigherVersionThan returns if given version is higher or equal than current version
type ObjectType ¶ added in v0.7.0
type ObjectType string
ObjectType determines if the object is data object or collection in irods
const ( // ObjectTypeDataObject is for DataObject ObjectTypeDataObject ObjectType = "data" // ObjectTypeCollection is for Collection ObjectTypeCollection ObjectType = "collection" )
type ResourceServerConnectionConfigError ¶ added in v0.14.0
type ResourceServerConnectionConfigError struct {
Config *IRODSRedirectionInfo
}
ResourceServerConnectionConfigError contains resource server connection config error information
func (*ResourceServerConnectionConfigError) Error ¶ added in v0.14.0
func (err *ResourceServerConnectionConfigError) Error() string
Error returns error message
func (*ResourceServerConnectionConfigError) Is ¶ added in v0.14.0
func (err *ResourceServerConnectionConfigError) Is(other error) bool
Is tests type of error
func (*ResourceServerConnectionConfigError) ToString ¶ added in v0.14.0
func (err *ResourceServerConnectionConfigError) ToString() string
ToString stringifies the object
type SSLVerifyServer ¶ added in v0.15.2
type SSLVerifyServer string
SSLVerifyServer defines SSL Verify Server options
const ( // SSLVerifyServerCert verifies server by cert SSLVerifyServerCert SSLVerifyServer = "cert" // SSLVerifyServerHostname verifies server by hostname SSLVerifyServerHostname SSLVerifyServer = "hostname" // SSLVerifyServerNone does not verify server SSLVerifyServerNone SSLVerifyServer = "none" )
func GetSSLVerifyServer ¶ added in v0.15.2
func GetSSLVerifyServer(verifyServer string) (SSLVerifyServer, error)
GetSSLVerifyServer returns SSLVerifyServer value from string
func (SSLVerifyServer) IsVerificationRequired ¶ added in v0.15.2
func (verify SSLVerifyServer) IsVerificationRequired() bool
IsVerificationRequired checks if verification is required
type TicketNotFoundError ¶ added in v0.12.14
type TicketNotFoundError struct {
Ticket string
}
TicketNotFoundError contains ticket not found error information
func (*TicketNotFoundError) Error ¶ added in v0.12.14
func (err *TicketNotFoundError) Error() string
Error returns error message
func (*TicketNotFoundError) Is ¶ added in v0.12.14
func (err *TicketNotFoundError) Is(other error) bool
Is tests type of error
func (*TicketNotFoundError) ToString ¶ added in v0.12.14
func (err *TicketNotFoundError) ToString() string
ToString stringifies the object
type TicketType ¶ added in v0.7.0
type TicketType string
TicketType determines ticket access type
const ( // TicketTypeRead is for read TicketTypeRead TicketType = "read" // TicketTypeWrite is for write TicketTypeWrite TicketType = "write" )
type TransferDataBlock ¶ added in v0.12.11
TransferDataBlock is a struct that maintains transfer data block info.
type UserNotFoundError ¶ added in v0.12.14
type UserNotFoundError struct {
Name string
}
UserNotFoundError contains user/group not found error information
func (*UserNotFoundError) Error ¶ added in v0.12.14
func (err *UserNotFoundError) Error() string
Error returns error message
func (*UserNotFoundError) Is ¶ added in v0.12.14
func (err *UserNotFoundError) Is(other error) bool
Is tests type of error
func (*UserNotFoundError) ToString ¶ added in v0.12.14
func (err *UserNotFoundError) ToString() string
ToString stringifies the object
Source Files ¶
- access.go
- account.go
- auth.go
- collection.go
- column.go
- cs_negotiation.go
- data_object.go
- data_object_checksum.go
- data_object_lock.go
- data_type.go
- duration.go
- encryption.go
- error.go
- file.go
- file_handle.go
- file_lock_handle.go
- file_redirection_info.go
- meta.go
- object_type.go
- process.go
- quota.go
- replica.go
- resource.go
- ssl_config.go
- ticket.go
- transfer_data_block.go
- user.go
- version.go
- zone.go