Move internal/core => internal/cli
This commit is contained in:
parent
8d2855fdcb
commit
10df1c3243
45 changed files with 113 additions and 143 deletions
44
internal/bootstrap/bootstrap.go
Normal file
44
internal/bootstrap/bootstrap.go
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
// Package bootstrap implements the core of the WissKI Distillery and the wdcli executable.
|
||||
// It does not depend on any other packages.
|
||||
package bootstrap
|
||||
|
||||
import _ "embed"
|
||||
|
||||
// TODO: This package should be split up into a true bootstrap component, and something else.
|
||||
|
||||
// BaseDirectoryDefault is the default deploy directory to load the distillery from.
|
||||
const BaseDirectoryDefault = "/var/www/deploy"
|
||||
|
||||
// Executable is the name of the 'wdcli' executable.
|
||||
// It should be located inside the deployment directory.
|
||||
const Executable = "wdcli"
|
||||
|
||||
// ConfigFile is the name of the config file.
|
||||
// It should be located inside the deployment directory.
|
||||
const ConfigFile = ".env"
|
||||
|
||||
// OverridesJSON is the name of the json overrides file.
|
||||
// It should be located inside the deployment directory.
|
||||
const OverridesJSON = "overrides.json"
|
||||
|
||||
// DefaultOverridesJSON contains a template for a new 'overrides.json' file
|
||||
//
|
||||
//go:embed overrides.json
|
||||
var DefaultOverridesJSON []byte
|
||||
|
||||
// ResolverBlockTXT is the name of the resolver blocked prefix file.
|
||||
// It should be located inside the deployment directory.
|
||||
const ResolverBlockedTXT = "resolver-blocked.txt"
|
||||
|
||||
// ResolverBlockTXT contains a template for 'resolver-blocked' file
|
||||
//
|
||||
//go:embed resolver-blocked.txt
|
||||
var DefaultResolverBlockedTXT []byte
|
||||
|
||||
// AuthorizedKeys contains the default name for the 'global_authorized_keys' file
|
||||
const AuthorizedKeys = "authorized_keys"
|
||||
|
||||
// DefaultAuthorizedKeys contains a template for a new 'global_authorized_keys' file
|
||||
//
|
||||
//go:embed global_authorized_keys
|
||||
var DefaultAuthorizedKeys []byte
|
||||
2
internal/bootstrap/global_authorized_keys
Normal file
2
internal/bootstrap/global_authorized_keys
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# This file contains authorized_keys files valid for every repository in the distillery
|
||||
# The syntax of this file is easy, one key per line, empty lines or those starting with '#' are ignored
|
||||
1
internal/bootstrap/overrides.json
Normal file
1
internal/bootstrap/overrides.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
14
internal/bootstrap/resolver-blocked.txt
Normal file
14
internal/bootstrap/resolver-blocked.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# This file contains prefixes that should not be picked up by the global resolver.
|
||||
# They will not appear in the list of prefixes.
|
||||
# It should be one prefix per line, '#' and '//' as well as blank lines are treated as comments
|
||||
|
||||
# definitely shouldn't be resolved to any WissKI
|
||||
http://www.w3.org/
|
||||
xsd:
|
||||
urn:
|
||||
|
||||
# generic prefixes by some common adapters.
|
||||
# you may or may not want these.
|
||||
http://d-nb.info/gnd/
|
||||
http://erlangen-crm.org/
|
||||
http://id.gnm.de/ont/
|
||||
Loading…
Add table
Add a link
Reference in a new issue