app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WSL_SOCK    = "wincrypt-wsl.sock"
	CYGWIN_SOCK = "wincrypt-cygwin.sock"
	NAMED_PIPE  = "\\\\.\\pipe\\openssh-ssh-agent"
	APP_CYGWIN  = iota
	APP_WSL
	APP_WINSSH
	APP_SECURECRT
	APP_PAGEANT
	MENU_QUIT
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppId

type AppId int

func (AppId) FullName

func (id AppId) FullName() string

func (AppId) String

func (id AppId) String() string

type Application

type Application interface {
	AppId() AppId
	Run(ctx context.Context, handler func(conn io.ReadWriteCloser)) error
	Menu(func(id AppId, name string, handler func()))
}

type Cygwin

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

func (*Cygwin) AppId

func (*Cygwin) AppId() AppId

func (*Cygwin) Menu

func (s *Cygwin) Menu(register func(id AppId, name string, handler func()))

func (*Cygwin) Run

func (s *Cygwin) Run(ctx context.Context, handler func(conn io.ReadWriteCloser)) error

type NamedPipe

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

func (*NamedPipe) AppId

func (*NamedPipe) AppId() AppId

func (*NamedPipe) Menu

func (s *NamedPipe) Menu(register func(id AppId, name string, handler func()))

func (*NamedPipe) Run

func (s *NamedPipe) Run(ctx context.Context, handler func(conn io.ReadWriteCloser)) error

type Pageant

type Pageant struct{}

func (*Pageant) AppId

func (*Pageant) AppId() AppId

func (*Pageant) Menu

func (s *Pageant) Menu(register func(id AppId, name string, handler func()))

func (*Pageant) Run

func (*Pageant) Run(ctx context.Context, handler func(conn io.ReadWriteCloser)) error

type WSL

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

func (*WSL) AppId

func (*WSL) AppId() AppId

func (*WSL) Menu

func (s *WSL) Menu(register func(id AppId, name string, handler func()))

func (*WSL) Run

func (s *WSL) Run(ctx context.Context, handler func(conn io.ReadWriteCloser)) error

Jump to

Keyboard shortcuts

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