Documentation ¶
Index ¶
- type Attrs
- type Block
- type Close
- type Data
- type Extended
- type ExtendedReply
- type FSetStat
- type FStat
- type FileAttributes
- type Handle
- type Init
- type LStat
- type Link
- type Mkdir
- type Name
- type Open
- type OpenDir
- type Parser
- type Read
- type ReadDir
- type ReadLink
- type RealPath
- type Remove
- type Rename
- type Rmdir
- type SetStat
- type Stat
- type Status
- type Unblock
- type Version
- type Write
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attrs ¶
type Attrs struct {
Attrs []byte // Todo Attrs structure
}
Attrs SSH_FXP_ATTRS
func (*Attrs) UnmarshalBinary ¶
type Block ¶
type Block struct { // Handle is returned by SSH_FXP_OPEN Handle string // Offset is the beginning of the byte-range to lock Offset uint64 // Number of bytes to lock Length uint64 // A bitmask of SSH_FXF_BLOCK_* values ULockMast uint32 }
Block SSH_FXP_BLOCK
func (*Block) UnmarshalBinary ¶
type Close ¶
type Close struct {
Handle string
}
Close SSH_FXP_CLOSE C->S
func (*Close) UnmarshalBinary ¶
type ExtendedReply ¶
type ExtendedReply struct {
ExtensionData []byte
}
ExtendedReply SSH_FXP_EXTENDED_REPLY
func (*ExtendedReply) UnmarshalBinary ¶
func (p *ExtendedReply) UnmarshalBinary(data []byte) error
type FSetStat ¶
type FSetStat struct { Handle string Attrs FileAttributes }
FSetStat SSH_FXP_FSETSTAT C->S
func (*FSetStat) UnmarshalBinary ¶
type FileAttributes ¶
type FileAttributes struct { Owner string UntranslatedName string MimeType string ACL string Group string ExtendedData []string ExtendedType []string Size uint64 AllocationSize uint64 Atime int64 CreateTime int64 CTime int64 MTime int64 Permissions uint32 MTimeNSeconds uint32 CTimeNSeconds uint32 CreateTimeNSeconds uint32 AttribBits uint32 AttribBitsValid uint32 AtimeNSeconds uint32 LinkCount uint32 Flags uint32 ExtendedCount uint32 TextHint byte // contains filtered or unexported fields }
FileAttributes https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-13#section-7
func (*FileAttributes) UnmarshalBinary ¶
func (fa *FileAttributes) UnmarshalBinary(data []byte) error
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface
type Handle ¶
type Handle struct {
Handle string
}
Handle SSH_FXP_HANDLE S->C
func (*Handle) UnmarshalBinary ¶
type Init ¶
type Init struct {
Version uint32
}
Init SSH_FXP_INIT C->S
func (*Init) UnmarshalBinary ¶
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface
type Mkdir ¶
type Mkdir struct { Path string Attrs FileAttributes }
Mkdir SSH_FXP_MKDIR C->S
func (*Mkdir) UnmarshalBinary ¶
type Name ¶
type Name struct { Filename []string // Count times Attrs []byte // Count times, Todo Attrs structure Count uint32 EOL bool // Optional }
Name SSH_FXP_NAME S->C
func (*Name) UnmarshalBinary ¶
type Open ¶
type Open struct { Filename string // UTF-8 Attrs FileAttributes Flags uint32 DesiredAccess uint32 }
Open SSH_FXP_OPEN C->S
func (*Open) UnmarshalBinary ¶
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface
type OpenDir ¶
type OpenDir struct {
Path string
}
OpenDir SSH_FXP_OPENDIR
func (*OpenDir) UnmarshalBinary ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser can parse SFTP client messages
type ReadDir ¶
type ReadDir struct {
Handle string
}
ReadDir SSH_FXP_READDIR C->S
func (*ReadDir) UnmarshalBinary ¶
type ReadLink ¶
type ReadLink struct {
Path string // UTF-8
}
ReadLink SSH_FXP_READLINK C->S
func (*ReadLink) UnmarshalBinary ¶
type RealPath ¶
type RealPath struct { OriginalPath string // UTF-8 ComposePath []string // optional ControlByte byte // optional }
RealPath SSH_FXP_REALPATH C->S
func (*RealPath) UnmarshalBinary ¶
type Remove ¶
type Remove struct {
Filename string // UTF-8
}
Remove SSH_FXP_REMOVE C->S
func (*Remove) UnmarshalBinary ¶
type Rmdir ¶
type Rmdir struct {
Path string // UTF-8
}
Rmdir SSH_FXP_RMDIR C->S
func (*Rmdir) UnmarshalBinary ¶
type SetStat ¶
type SetStat struct { Path string // UTF-8 Attrs FileAttributes }
SetStat SSH_FXP_SETSTAT C->S
func (*SetStat) UnmarshalBinary ¶
type Status ¶
type Status struct { Message string // ISO-10646 UTF-8 [RFC-2279] LangTag string // RFC-1766 ErrorCode uint32 }
Status SSH_FXP_STATUS S->C
func (*Status) UnmarshalBinary ¶
type Unblock ¶
type Unblock struct { // Handle is returned by SSH_FXP_OPEN Handle string // Offset is the beginning of the byte-range to unlock Offset uint64 // Number of bytes to unlock Length uint64 }
Unblock SSH_FXP_UNBLOCK