util

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchesPath

func MatchesPath(matcher gitignore.IgnoreParser, relativePath string, isDir bool) bool

MatchesPath evaluates if the given relative path matches the matcher

func NewClientConnection

func NewClientConnection(reader io.Reader, writer io.Writer) (*grpc.ClientConn, error)

NewClientConnection creates a new client connection for the given reader and writer

Types

type StdStreamJoint

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

StdStreamJoint is the struct that implements the net.Conn interface

func NewStdStreamJoint

func NewStdStreamJoint(in io.Reader, out io.Writer, exitOnClose bool) *StdStreamJoint

NewStdStreamJoint is used to implement the connection interface so we can connect to the rpc server

func (*StdStreamJoint) Close

func (s *StdStreamJoint) Close() error

Close implements interface

func (*StdStreamJoint) LocalAddr

func (s *StdStreamJoint) LocalAddr() net.Addr

LocalAddr implements interface

func (*StdStreamJoint) Read

func (s *StdStreamJoint) Read(b []byte) (n int, err error)

Read impements interface

func (*StdStreamJoint) RemoteAddr

func (s *StdStreamJoint) RemoteAddr() net.Addr

RemoteAddr implements interface

func (*StdStreamJoint) SetDeadline

func (s *StdStreamJoint) SetDeadline(t time.Time) error

SetDeadline implements interface

func (*StdStreamJoint) SetReadDeadline

func (s *StdStreamJoint) SetReadDeadline(t time.Time) error

SetReadDeadline implements interface

func (*StdStreamJoint) SetWriteDeadline

func (s *StdStreamJoint) SetWriteDeadline(t time.Time) error

SetWriteDeadline implements interface

func (*StdStreamJoint) Write

func (s *StdStreamJoint) Write(b []byte) (n int, err error)

Write implements interface

type StdinAddr

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

StdinAddr is the struct for the stdi

func NewStdinAddr

func NewStdinAddr(s string) *StdinAddr

NewStdinAddr creates a new StdinAddr

func (*StdinAddr) Network

func (a *StdinAddr) Network() string

Network implements interface

func (*StdinAddr) String

func (a *StdinAddr) String() string

type StdinListener

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

StdinListener implements the listener interface

func NewStdinListener

func NewStdinListener() *StdinListener

NewStdinListener creates a new stdin listener

func (*StdinListener) Accept

func (lis *StdinListener) Accept() (net.Conn, error)

Accept implements interface

func (*StdinListener) Addr

func (lis *StdinListener) Addr() net.Addr

Addr implements interface

func (*StdinListener) Close

func (lis *StdinListener) Close() error

Close implements interface

func (*StdinListener) Ready

func (lis *StdinListener) Ready(conn net.Conn)

Ready implements interface

Jump to

Keyboard shortcuts

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