onstatic

module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT

README

onstatic

go codecov go-report

onstatic is static page hosting controller.

Quick Start

Start application from Releases or yourself.

go run cmd/server/main.go

Then, do register. Like this.

curl -X POST -H "X-ONSTATIC-KEY: onstaticonstaticonstatic" -H "X-ONSTATIC-REPONAME: git@github.com:sters/onstatic.git" localhost:18888/register

And you can get SSH Public Key that register to Your git repository's access authentication.

Finally, do pull. Like this:

curl -v -X POST -H "X-ONSTATIC-KEY: onstaticonstaticonstatic" -H "X-ONSTATIC-REPONAME: git@github.com:sters/onstatic.git" localhost:18888/pull

You can get hashed repository name. Try access localhost:18888/{Hashed Repository Name}/{your file path}.

Other Informations

See conf/conf.go, onstatic/handler.go. You can do it.

Directories

Path Synopsis
cmd
server command

Jump to

Keyboard shortcuts

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