config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BranchName     = "BranchName"
	BranchSecret   = "BranchSecret"
	EnableReadOnly = "EnableReadOnly"
	RPCHost        = "RPCHost"
	RPCPort        = "RPCPort"
	LocalFolder    = "LocalFolder"

	TreeSecret = "TreeSecret"
)

Defaut configuration keys

View Source
const ProductVersion = "1.1.1"

ProductVersion is the current version of Rufs

Variables

View Source
var DefaultBranchExportConfig = map[string]interface{}{
	BranchName:     "",
	BranchSecret:   "",
	EnableReadOnly: false,
	RPCHost:        "",
	RPCPort:        "9020",
	LocalFolder:    "share",
}

DefaultBranchExportConfig is the default configuration for an exported branch

View Source
var DefaultTreeConfig = map[string]interface{}{
	TreeSecret: "",
}

DefaultTreeConfig is the default configuration for a tree which imports branches

Functions

func CheckBranchExportConfig

func CheckBranchExportConfig(config map[string]interface{}) error

CheckBranchExportConfig checks a given branch export config.

func CheckTreeConfig

func CheckTreeConfig(config map[string]interface{}) error

CheckTreeConfig checks a given tree config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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