Yuki

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: GPL-2.0

README

README

Build Status Go Report

Sync local repositories with remote.

Requirements

  • Docker
  • MongoDB

Quickstart

Download the binary from the Release page:

For example:
$ wget https://github.com/ustclug/Yuki/releases/download/v0.1.0/yukid-v0.1.0-linux-amd64.tar.gz

Configure yukid:

# mkdir /etc/yuki/
# chown mirror:mirror /etc/yuki
$ curl 'https://raw.githubusercontent.com/ustclug/Yuki/master/dist/daemon.toml' > /etc/yuki/daemon.toml
$ vim /etc/yuki/daemon.toml

Run MongoDB:

$ docker run -p 27017:27017 -tid --name mongo mongo:3.6

Create systemd service:

# curl 'https://raw.githubusercontent.com/ustclug/Yuki/master/dist/yukid.service' > /etc/systemd/system/yukid.service

Start yukid:

# systemctl enable yukid
# systemctl start yukid

Handbook

Directories

Path Synopsis
cmd
yukictl command
yukid command
pkg
api
cron
Package cron provides some cron utility functions.
Package cron provides some cron utility functions.
fs
Package fs implements function for getting the size of a given directory.
Package fs implements function for getting the size of a given directory.
tail
Package tail provides support for outputing the last N lines of a ReadSeeker.
Package tail provides support for outputing the last N lines of a ReadSeeker.
utils
Package utils provides some helper functions.
Package utils provides some helper functions.

Jump to

Keyboard shortcuts

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