cloudproxy

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_PROXY_SUBCMD_NAME   = "cloud-proxy"
	ACCOUNT_TOKEN_HEADER_NAME = "X-Account-Token"

	ACCOUT_MANAGEMENT_LOG_SRC = "cloud-proxy/account"
	PROXY_LOG_SRC             = "cloud-proxy"
	INOXD_CONN_LOG_SRC        = "cloud-proxy/inoxd-conn"

	ACCOUNT_REGISTRATION_URL_PATH          = "/register-account"
	ACCOUNT_REGISTRATION_HOSTER_PARAM_NAME = "hoster"
)

Variables

This section is empty.

Functions

func Run

func Run(args CloudProxyArgs) error

Types

type CloudProxyArgs

type CloudProxyArgs struct {
	Config                CloudProxyConfig
	OutW, ErrW            io.Writer
	GoContext             context.Context
	Filesystem            afs.Filesystem
	RestrictProcessAccess bool
}

type CloudProxyConfig

type CloudProxyConfig struct {
	CloudDataDir string `json:"dataDir"`
	//should be in DataDir, if not set defaults to <DATA DIR>/<DEFAULT_ANON_ACCOUNT_DB_BASENAME>
	AnonymousAccountDatabasePath string `json:"anonAccountDBPath,omitempty"`
	Port                         int    `json:"port"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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