webdav

command module
v0.0.0-...-6822f51 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 2 Imported by: 0

README

WebDAV

Go Report Card Github Release GitHub License

Web Distributed Authoring and Versioning (WebDAV) is an extension to Hypertext Transfer Protocol (HTTP) that defines how basic file functions such as copy, move, delete, and create are performed by using HTTP.

Usage

The binary file of WebDAV is a CLI application.

- Print help information.
[user@host webdav]% ./out/bin/webdav -h
A Lightweight WebDAV Server.

Usage:
  webdav <command> [arguments]

The available commands are:
  info    Print information.
  serv    Startup webdav server.

Use "webdav <command> -h" for more information about a command.
- Print build and version information.
[user@host webdav]% ./out/bin/webdav info
webdav v1.0 2021-10-27 go1.16.8 linux/amd64
- Startup a WebDAV server.
[user@host webdav]% ./out/bin/webdav serv -h
Startup webdav server.

Usage:
  webdav serv [flags...]

The available flags are:
  -c                Declare the configuration file path

[user@host webdav]% ./out/bin/webdav serv -c out/cfg/app.jsonc
2021-10-27 19:28:22        INFO    cmd/serv.go:46  activated cfg file: out/cfg/app.jsonc
2021-10-27 19:28:22        INFO    serve/router.go:22      webdav server is starting at [:60080]

Configuration

Please refer to the 'app.jsonc' for more configurations. There, you can customize the configurations for WebDAV server.

Systemd

Please refer to the 'webdav.service.example' to manage WebDAV server as a service.

Development

- Build project.
[user@host webdav]% bash webdav.sh -t "linux/amd64,linux/arm64"
target: linux/amd64,linux/arm64
output: /root/Projects/webdav/out
build -> os: linux | arch: amd64
      >> took 1.526s | sha256sum: 2eb1bb883a5e63431bf42abf03d2c6a51a746f30d4268863b2919009aec5ccee
build -> os: linux | arch: arm64
      >> took 1.666s | sha256sum: c5228a9b8a8c50128c1f465d01688a9be65d7d4b0e42f856d653b512c5a67cdc

Changes

See the CHANGES for changes.

License

See the LICENSE for Rights and Limitations (MIT).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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