Documentation ¶
Index ¶
- func FileExists(filename string) bool
- func SetAccessList(s []string) func(*GitSAMTunnel) error
- func SetAccessListType(s string) func(*GitSAMTunnel) error
- func SetAllowZeroIn(b bool) func(*GitSAMTunnel) error
- func SetAllowZeroOut(b bool) func(*GitSAMTunnel) error
- func SetCloseIdle(b bool) func(*GitSAMTunnel) error
- func SetCloseIdleTime(u int) func(*GitSAMTunnel) error
- func SetCloseIdleTimeMs(u int) func(*GitSAMTunnel) error
- func SetCompress(b bool) func(*GitSAMTunnel) error
- func SetEncrypt(b bool) func(*GitSAMTunnel) error
- func SetFastRecieve(b bool) func(*GitSAMTunnel) error
- func SetFilePath(s string) func(*GitSAMTunnel) error
- func SetHost(s string) func(*GitSAMTunnel) error
- func SetInBackups(u int) func(*GitSAMTunnel) error
- func SetInLength(u int) func(*GitSAMTunnel) error
- func SetInQuantity(u int) func(*GitSAMTunnel) error
- func SetInVariance(i int) func(*GitSAMTunnel) error
- func SetKeyFile(s string) func(*GitSAMTunnel) error
- func SetLeaseSetKey(s string) func(*GitSAMTunnel) error
- func SetLeaseSetPrivateKey(s string) func(*GitSAMTunnel) error
- func SetLeaseSetPrivateSigningKey(s string) func(*GitSAMTunnel) error
- func SetMakePage(b bool) func(*GitSAMTunnel) error
- func SetMessageReliability(s string) func(*GitSAMTunnel) error
- func SetName(s string) func(*GitSAMTunnel) error
- func SetOutBackups(u int) func(*GitSAMTunnel) error
- func SetOutLength(u int) func(*GitSAMTunnel) error
- func SetOutQuantity(u int) func(*GitSAMTunnel) error
- func SetOutVariance(i int) func(*GitSAMTunnel) error
- func SetPagePort(s string) func(*GitSAMTunnel) error
- func SetPubKeyPath(s string) func(*GitSAMTunnel) error
- func SetReduceIdle(b bool) func(*GitSAMTunnel) error
- func SetReduceIdleQuantity(u int) func(*GitSAMTunnel) error
- func SetReduceIdleTime(u int) func(*GitSAMTunnel) error
- func SetReduceIdleTimeMs(u int) func(*GitSAMTunnel) error
- func SetSAMHost(s string) func(*GitSAMTunnel) error
- func SetSAMPort(s string) func(*GitSAMTunnel) error
- func SetSSHPort(s string) func(*GitSAMTunnel) error
- func SetSaveFile(b bool) func(*GitSAMTunnel) error
- func SetSecurePath(s string) func(*GitSAMTunnel) error
- func SetServeDir(s string) func(*GitSAMTunnel) error
- func SetSigType(s string) func(*GitSAMTunnel) error
- func SetType(s string) func(*GitSAMTunnel) error
- type GitSAMTunnel
- func (s *GitSAMTunnel) AssureGitIgnore() error
- func (s *GitSAMTunnel) AssurePostRecieve() error
- func (f *GitSAMTunnel) Close() error
- func (s *GitSAMTunnel) DeletePostRecieve() error
- func (f *GitSAMTunnel) GetType() string
- func (s *GitSAMTunnel) ListDirs() ([]os.FileInfo, error)
- func (s *GitSAMTunnel) Load() (samtunnel.SAMTunnel, error)
- func (f *GitSAMTunnel) LookupKey(content string) (*gitkit.PublicKey, error)
- func (s *GitSAMTunnel) PRBytes() []byte
- func (s *GitSAMTunnel) PUBytes() []byte
- func (f *GitSAMTunnel) Serve() error
- func (f *GitSAMTunnel) ServePage()
- func (f *GitSAMTunnel) ServeParent()
- func (f *GitSAMTunnel) Up() bool
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶ added in v0.0.2
func SetAccessList ¶
func SetAccessList(s []string) func(*GitSAMTunnel) error
SetAccessList tells the system to treat the accessList as a whitelist
func SetAccessListType ¶
func SetAccessListType(s string) func(*GitSAMTunnel) error
SetAccessListType tells the system to treat the accessList as a whitelist
func SetAllowZeroIn ¶
func SetAllowZeroIn(b bool) func(*GitSAMTunnel) error
SetAllowZeroIn tells the tunnel to accept zero-hop peers
func SetAllowZeroOut ¶
func SetAllowZeroOut(b bool) func(*GitSAMTunnel) error
SetAllowZeroOut tells the tunnel to accept zero-hop peers
func SetCloseIdle ¶
func SetCloseIdle(b bool) func(*GitSAMTunnel) error
SetCloseIdle tells the connection to close it's tunnels during extended idle time.
func SetCloseIdleTime ¶
func SetCloseIdleTime(u int) func(*GitSAMTunnel) error
SetCloseIdleTime sets the time to wait before closing tunnels to idle levels
func SetCloseIdleTimeMs ¶
func SetCloseIdleTimeMs(u int) func(*GitSAMTunnel) error
SetCloseIdleTimeMs sets the time to wait before closing tunnels to idle levels in milliseconds
func SetCompress ¶
func SetCompress(b bool) func(*GitSAMTunnel) error
SetCompress tells clients to use compression
func SetEncrypt ¶
func SetEncrypt(b bool) func(*GitSAMTunnel) error
SetEncrypt tells the router to use an encrypted leaseset
func SetFastRecieve ¶
func SetFastRecieve(b bool) func(*GitSAMTunnel) error
SetFastRecieve tells clients to use compression
func SetFilePath ¶
func SetFilePath(s string) func(*GitSAMTunnel) error
SetFilePath sets the path to save the config file at.
func SetHost ¶
func SetHost(s string) func(*GitSAMTunnel) error
SetHost sets the host of the service to forward
func SetInBackups ¶
func SetInBackups(u int) func(*GitSAMTunnel) error
SetInBackups sets the inbound tunnel backups
func SetInLength ¶
func SetInLength(u int) func(*GitSAMTunnel) error
SetInLength sets the number of hops inbound
func SetInQuantity ¶
func SetInQuantity(u int) func(*GitSAMTunnel) error
SetInQuantity sets the inbound tunnel quantity
func SetInVariance ¶
func SetInVariance(i int) func(*GitSAMTunnel) error
SetInVariance sets the variance of a number of hops inbound
func SetLeaseSetKey ¶
func SetLeaseSetKey(s string) func(*GitSAMTunnel) error
SetLeaseSetKey sets the host of the GitSAMTunnel's SAM bridge
func SetLeaseSetPrivateKey ¶
func SetLeaseSetPrivateKey(s string) func(*GitSAMTunnel) error
SetLeaseSetPrivateKey sets the host of the GitSAMTunnel's SAM bridge
func SetLeaseSetPrivateSigningKey ¶
func SetLeaseSetPrivateSigningKey(s string) func(*GitSAMTunnel) error
SetLeaseSetPrivateSigningKey sets the host of the GitSAMTunnel's SAM bridge
func SetMakePage ¶ added in v0.0.2
func SetMakePage(b bool) func(*GitSAMTunnel) error
SetMakePage tells the application to update the page
func SetMessageReliability ¶
func SetMessageReliability(s string) func(*GitSAMTunnel) error
SetMessageReliability sets the host of the GitSAMTunnel's SAM bridge
func SetName ¶
func SetName(s string) func(*GitSAMTunnel) error
SetName sets the host of the GitSAMTunnel's SAM bridge
func SetOutBackups ¶
func SetOutBackups(u int) func(*GitSAMTunnel) error
SetOutBackups sets the inbound tunnel backups
func SetOutLength ¶
func SetOutLength(u int) func(*GitSAMTunnel) error
SetOutLength sets the number of hops outbound
func SetOutQuantity ¶
func SetOutQuantity(u int) func(*GitSAMTunnel) error
SetOutQuantity sets the outbound tunnel quantity
func SetOutVariance ¶
func SetOutVariance(i int) func(*GitSAMTunnel) error
SetOutVariance sets the variance of a number of hops outbound
func SetPagePort ¶
func SetPagePort(s string) func(*GitSAMTunnel) error
SetPagePort sets the port of the service to forward
func SetPubKeyPath ¶
func SetPubKeyPath(s string) func(*GitSAMTunnel) error
SetPubKeyPath sets the path to the user's SSH public keys for read/write access.
func SetReduceIdle ¶
func SetReduceIdle(b bool) func(*GitSAMTunnel) error
SetReduceIdle tells the connection to reduce it's tunnels during extended idle time.
func SetReduceIdleQuantity ¶
func SetReduceIdleQuantity(u int) func(*GitSAMTunnel) error
SetReduceIdleQuantity sets minimum number of tunnels to reduce to during idle time
func SetReduceIdleTime ¶
func SetReduceIdleTime(u int) func(*GitSAMTunnel) error
SetReduceIdleTime sets the time to wait before reducing tunnels to idle levels
func SetReduceIdleTimeMs ¶
func SetReduceIdleTimeMs(u int) func(*GitSAMTunnel) error
SetReduceIdleTimeMs sets the time to wait before reducing tunnels to idle levels in milliseconds
func SetSAMHost ¶
func SetSAMHost(s string) func(*GitSAMTunnel) error
SetSAMHost sets the host of the GitSAMTunnel's SAM bridge
func SetSAMPort ¶
func SetSAMPort(s string) func(*GitSAMTunnel) error
SetSAMPort sets the port of the GitSAMTunnel's SAM bridge using a string
func SetSSHPort ¶
func SetSSHPort(s string) func(*GitSAMTunnel) error
SetSSHPort sets the port of the service to forward
func SetSaveFile ¶
func SetSaveFile(b bool) func(*GitSAMTunnel) error
SetSaveFile tells the router to save the tunnel's keys long-term
func SetSecurePath ¶
func SetSecurePath(s string) func(*GitSAMTunnel) error
SetSecurePath sets the path to place the private keys for server authentication.
func SetServeDir ¶
func SetServeDir(s string) func(*GitSAMTunnel) error
SetServeDir sets the path to the directory you want to serve
func SetSigType ¶
func SetSigType(s string) func(*GitSAMTunnel) error
SetSigType sets the type of the forwarder server
func SetType ¶
func SetType(s string) func(*GitSAMTunnel) error
SetType sets the type of the forwarder server
Types ¶
type GitSAMTunnel ¶
type GitSAMTunnel struct { *samforwarder.SAMForwarder *gitkit.SSH GitConf gitkit.Config OptPage *eephttpd.EepHttpd PubKeyPath string SecurePath string PagePort string // contains filtered or unexported fields }
GitSAMTunnel is a structure which automatically configured the forwarding of a local service to i2p over the SAM API.
func NewGitSAMTunnel ¶
func NewGitSAMTunnel(host, port string) (*GitSAMTunnel, error)
NewGitSAMTunnel makes a new SAM forwarder with default options, accepts host:port arguments
func NewGitSAMTunnelFromOptions ¶
func NewGitSAMTunnelFromOptions(opts ...func(*GitSAMTunnel) error) (*GitSAMTunnel, error)
NewGitSAMTunnelFromOptions makes a new SAM forwarder with default options, accepts host:port arguments
func (*GitSAMTunnel) AssureGitIgnore ¶
func (s *GitSAMTunnel) AssureGitIgnore() error
func (*GitSAMTunnel) AssurePostRecieve ¶ added in v0.0.2
func (s *GitSAMTunnel) AssurePostRecieve() error
func (*GitSAMTunnel) DeletePostRecieve ¶ added in v0.0.2
func (s *GitSAMTunnel) DeletePostRecieve() error
func (*GitSAMTunnel) GetType ¶
func (f *GitSAMTunnel) GetType() string
func (*GitSAMTunnel) ListDirs ¶ added in v0.0.992
func (s *GitSAMTunnel) ListDirs() ([]os.FileInfo, error)
func (*GitSAMTunnel) Load ¶
func (s *GitSAMTunnel) Load() (samtunnel.SAMTunnel, error)
func (*GitSAMTunnel) LookupKey ¶
func (f *GitSAMTunnel) LookupKey(content string) (*gitkit.PublicKey, error)
func (*GitSAMTunnel) PRBytes ¶ added in v0.0.2
func (s *GitSAMTunnel) PRBytes() []byte
func (*GitSAMTunnel) PUBytes ¶ added in v0.0.993
func (s *GitSAMTunnel) PUBytes() []byte
func (*GitSAMTunnel) Serve ¶
func (f *GitSAMTunnel) Serve() error
Serve starts the SAM connection and and forwards the local host:port to i2p
func (*GitSAMTunnel) ServePage ¶
func (f *GitSAMTunnel) ServePage()
func (*GitSAMTunnel) ServeParent ¶
func (f *GitSAMTunnel) ServeParent()
func (*GitSAMTunnel) Up ¶
func (f *GitSAMTunnel) Up() bool