Documentation ¶
Overview ¶
Package file provides gNOI file operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PutOperation ¶
type PutOperation struct {
// contains filtered or unexported fields
}
PutOperation represents the parameters of a Put operation.
func NewPutOperation ¶
func NewPutOperation() *PutOperation
NewPutOperation creates an empty PutOperation.
func (*PutOperation) Execute ¶
func (p *PutOperation) Execute(ctx context.Context, c *internal.Clients) (*fpb.PutResponse, error)
Execute executes the Put operation.
func (*PutOperation) Perms ¶
func (p *PutOperation) Perms(perms uint32) *PutOperation
Perms specifies the permissions to apply to the copied file.
func (*PutOperation) RemoteFile ¶
func (p *PutOperation) RemoteFile(file string) *PutOperation
RemoteFile specifies the name of the file on the target.
func (*PutOperation) SourceFile ¶
func (p *PutOperation) SourceFile(file string) *PutOperation
SourceFile represents the source file to copy.
Click to show internal directories.
Click to hide internal directories.