remote

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2013 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Remote vaults management

Index

Constants

This section is empty.

Variables

View Source
var CurlAllowedKeys map[string]bool = map[string]bool{
	"url":         true,
	"user":        false,
	"passkey":     false,
	"put_request": false,
	"get_request": false,
}
View Source
var ProxyAllowedKeys map[string]bool = map[string]bool{
	"host":     true,
	"port":     false,
	"protocol": false,
	"user":     false,
	"pass":     false,
}
View Source
var ScpAllowedKeys map[string]bool = map[string]bool{
	"file":    true,
	"host":    true,
	"user":    false,
	"options": false,
}

Functions

This section is empty.

Types

type Proxy

type Proxy interface {
	Install(cmd *exec.Cmd) error

	SetProperty(key, value string) error
	ResetProperty(key string) error
	StoreProperties(io.Writer) error
}

type Remote

type Remote interface {
	Name() string

	LoadVault(file string) error
	SaveVault(file string) error

	Proxy() Proxy

	SetProperty(key, value string) error
	ResetProperty(key string) error
	StoreProperties(io.Writer) error
}

type Remoter

type Remoter interface {
	Remote(name string) (Remote, error)
}

func NewRemoter

func NewRemoter(srv server.Server, config core.Config) Remoter

Jump to

Keyboard shortcuts

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