file

package
v0.0.0-...-ebd033e Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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