rest

package
v0.0.0-...-08f2318 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataResponse

type DataResponse struct {
	OpResponse           []MoveOpertationResponse `json:"opResponse"`
	ListingErrors        bool                     `json:"listingErrors"`
	SrcDirAndItsContents map[string][]string      `json:"srcDirAndItsContents"`
	Destination          []string                 `json:"destination"`
}

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

func (*Handle) Serve

func (h *Handle) Serve()

type MoveOpertationResponse

type MoveOpertationResponse struct {
	Operation string `json:"operation"`
	Src       string `json:"source"`
	Dest      string `json:"destination"`
	Message   string `json:"message"`
}

type MoveRequest

type MoveRequest struct {
	Src   string   `json:"src"`
	Items []string `json:"items"`
	Dest  string   `json:"dest"`
}

type RemoteMoveREST

type RemoteMoveREST interface {
	Serve()
	// contains filtered or unexported methods
}

func New

func New(indexFilePath, bindArr, port string, allowedCIDRs []string, ioHelpers io.IOHelpers) (RemoteMoveREST, error)

Jump to

Keyboard shortcuts

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