file

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

func Content(b []byte) func(msg proto.Message) error

func Credentials

func Credentials(opts ...FileOption) func(msg proto.Message) error

func FileName

func FileName(s string) func(msg proto.Message) error

func Hash

func Hash(method string, b []byte) func(msg proto.Message) error

func HashMD5

func HashMD5(b []byte) func(msg proto.Message) error

func HashSHA256

func HashSHA256(b []byte) func(msg proto.Message) error

func HashSHA512

func HashSHA512(b []byte) func(msg proto.Message) error

func HashUNSPECIFIED

func HashUNSPECIFIED(b []byte) func(msg proto.Message) error

func LastModified

func LastModified(i uint64) func(msg proto.Message) error

func NewGetContentsResponse

func NewGetContentsResponse(opts ...FileOption) (*gnoifile.GetResponse, error)

func NewGetHashResponse

func NewGetHashResponse(opts ...FileOption) (*gnoifile.GetResponse, error)

func NewGetRequest

func NewGetRequest(opts ...FileOption) (*gnoifile.GetRequest, error)

func NewPutContentRequest

func NewPutContentRequest(opts ...FileOption) (*gnoifile.PutRequest, error)

func NewPutHashRequest

func NewPutHashRequest(opts ...FileOption) (*gnoifile.PutRequest, error)

func NewPutOpenRequest

func NewPutOpenRequest(opts ...FileOption) (*gnoifile.PutRequest, error)

func NewStatRequest

func NewStatRequest(opts ...FileOption) (*gnoifile.StatRequest, error)

func NewStatResponse

func NewStatResponse(opts ...FileOption) (*gnoifile.StatResponse, error)

func NewTransferRequest

func NewTransferRequest(opts ...FileOption) (*gnoifile.TransferToRemoteRequest, error)

func NewTransferResponse

func NewTransferResponse(opts ...FileOption) (*gnoifile.TransferToRemoteResponse, error)

func Password

func Password(password string) func(msg proto.Message) error

func Path

func Path(p string) func(msg proto.Message) error

func Permissions

func Permissions(i uint32) func(msg proto.Message) error

func RemoteDownloadProtocol

func RemoteDownloadProtocol(p string) func(msg proto.Message) error

func RemoteDownloadProtocolCustom

func RemoteDownloadProtocolCustom(i uint32) func(msg proto.Message) error

func RemoteDownloadProtocolHTTP

func RemoteDownloadProtocolHTTP() func(msg proto.Message) error

func RemoteDownloadProtocolHTTPS

func RemoteDownloadProtocolHTTPS() func(msg proto.Message) error

func RemoteDownloadProtocolSCP

func RemoteDownloadProtocolSCP() func(msg proto.Message) error

func RemoteDownloadProtocolSFTP

func RemoteDownloadProtocolSFTP() func(msg proto.Message) error

func Size

func Size(i uint64) func(msg proto.Message) error

func SourceAddress

func SourceAddress(saddr string) func(msg proto.Message) error

func StatInfo

func StatInfo(opts ...FileOption) func(msg proto.Message) error

func Umask

func Umask(i uint32) func(msg proto.Message) error

func Username

func Username(uname string) func(msg proto.Message) error

Types

type FileOption

type FileOption func(proto.Message) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL