proxy

package
v0.0.0-...-678a40c Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirtyBackupOperation

func DirtyBackupOperation(config Configuration, mode BackupMode)

DirtyBackupOperation performs a dirty backup or restore.

func PrintEnv

func PrintEnv(config Configuration)

PrintEnv prints a list of the environment settings.

func Setup

func Setup(version string, acceptDefaults bool)

Setup presents the user with setup options.

func ToggleProxies

func ToggleProxies(config Configuration, mode Mode)

ToggleProxies toggles proxy settings.

Types

type APMConfiguration

type APMConfiguration struct {
	Enabled bool     `json:"enabled,omitempty"`
	Files   []string `json:"files,omitempty"`
}

APMConfiguration struct.

type BackupMode

type BackupMode int

BackupMode for the backup/restore functionality.

const (
	// Backup indicates a backup should be performed.
	Backup BackupMode = iota
	// Restore indicates a restore should be performed.
	Restore
)

type Boot2DockerConfiguration

type Boot2DockerConfiguration struct {
	Enabled bool   `json:"enabled,omitempty"`
	SSHHost string `json:"ssh_host,omitempty"`
	SSHPort string `json:"ssh_port,omitempty"`
	SSHKey  string `json:"ssh_key,omitempty"`
}

Boot2DockerConfiguration struct.

type BowerConfiguration

type BowerConfiguration struct {
	Enabled bool     `json:"enabled,omitempty"`
	Files   []string `json:"files,omitempty"`
}

BowerConfiguration struct.

type Configuration

type Configuration struct {
	Version        string                `json:"version"`
	ProxyHost      string                `json:"proxyHost,omitempty"`
	ProxyPort      string                `json:"proxyPort,omitempty"`
	SOCKSProxyHost string                `json:"socksProxyHost,omitempty"`
	SOCKSProxyPort string                `json:"socksProxyPort,omitempty"`
	NonProxyHosts  []string              `json:"nonProxyHosts,omitempty"`
	Targets        *TargetsConfiguration `json:"targets,omitempty"`
}

Configuration represents the Proxybastard configuration.

func LoadConfigurationFromFile

func LoadConfigurationFromFile(filename string) (Configuration, error)

LoadConfigurationFromFile loads a configuration from a file.

type DockerMachineConfiguration

type DockerMachineConfiguration struct {
	Enabled bool     `json:"enabled,omitempty"`
	Hosts   []string `json:"hosts,omitempty"`
}

DockerMachineConfiguration struct.

type GitConfiguration

type GitConfiguration struct {
	Enabled bool `json:"enabled,omitempty"`
}

GitConfiguration struct.

type MavenConfiguration

type MavenConfiguration struct {
	Enabled bool     `json:"enabled,omitempty"`
	Files   []string `json:"files,omitempty"`
}

MavenConfiguration struct.

type Mode

type Mode int

Mode is the application mode: Enable|Disable

const (
	// Enable mode.
	Enable Mode = iota
	// Disable mode.
	Disable
)

type NPMConfiguration

type NPMConfiguration struct {
	Enabled bool     `json:"enabled,omitempty"`
	Files   []string `json:"files,omitempty"`
}

NPMConfiguration struct.

type SSHConfiguration

type SSHConfiguration struct {
	Enabled bool     `json:"enabled,omitempty"`
	Files   []string `json:"files,omitempty"`
}

SSHConfiguration struct.

type ShellConfiguration

type ShellConfiguration struct {
	Enabled  bool     `json:"enabled,omitempty"`
	JavaOpts bool     `json:"javaOpts,omitempty"`
	Files    []string `json:"files,omitempty"`
}

ShellConfiguration struct.

func (ShellConfiguration) CustomPrompt

func (shellConfiguration ShellConfiguration) CustomPrompt() *ShellConfiguration

type StunnelConfiguration

type StunnelConfiguration struct {
	Enabled     bool     `json:"enabled,omitempty"`
	KillProcess bool     `json:"kill_process,omitempty"`
	Files       []string `json:"files,omitempty"`
}

StunnelConfiguration struct.

func (StunnelConfiguration) CustomPrompt

func (stunnelConfiguration StunnelConfiguration) CustomPrompt() *StunnelConfiguration

type SubversionConfiguration

type SubversionConfiguration struct {
	Enabled bool     `json:"enabled,omitempty"`
	Files   []string `json:"files,omitempty"`
}

SubversionConfiguration struct.

type SvnStatement

type SvnStatement struct {
	// contains filtered or unexported fields
}

SvnStatement represents a block in an svn file.

type TargetsConfiguration

type TargetsConfiguration struct {
	APM           *APMConfiguration           `json:"apm,omitempty"`
	Boot2Docker   *Boot2DockerConfiguration   `json:"boot2docker,omitempty"`
	Bower         *BowerConfiguration         `json:"bower,omitempty"`
	DockerMachine *DockerMachineConfiguration `json:"docker-machine,omitempty"`
	Git           *GitConfiguration           `json:"git,omitempty"`
	Maven         *MavenConfiguration         `json:"maven,omitempty"`
	NPM           *NPMConfiguration           `json:"npm,omitempty"`
	Shell         *ShellConfiguration         `json:"shell,omitempty"`
	SSH           *SSHConfiguration           `json:"ssh,omitempty"`
	Stunnel       *StunnelConfiguration       `json:"stunnel,omitempty"`
	Subversion    *SubversionConfiguration    `json:"subversion,omitempty"`
}

TargetsConfiguration struct.

type WithConfig

type WithConfig interface {
	// contains filtered or unexported methods
}

WithConfig is a thing with config.

type WithProxy

type WithProxy interface {
	// contains filtered or unexported methods
}

WithProxy is a thing that can have proxy settings added or removed.

type WithSOCKSProxy

type WithSOCKSProxy interface {
	// contains filtered or unexported methods
}

WithSOCKSProxy is a thing that can have SOCKS proxy settings added or removed.

Jump to

Keyboard shortcuts

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