kubernetes/vendor/github.com/armon/go-socks5/auth.go

const NoAuth

const noAcceptable

const UserPassAuth

const userAuthVersion

const authSuccess

const authFailure

var UserAuthFailed

var NoSupportedAuth

type AuthContext

type Authenticator

type NoAuthAuthenticator

func (a NoAuthAuthenticator) GetCode() uint8 {}

func (a NoAuthAuthenticator) Authenticate(reader io.Reader, writer io.Writer) (*AuthContext, error) {}

type UserPassAuthenticator

func (a UserPassAuthenticator) GetCode() uint8 {}

func (a UserPassAuthenticator) Authenticate(reader io.Reader, writer io.Writer) (*AuthContext, error) {}

// authenticate is used to handle connection authentication
func (s *Server) authenticate(conn io.Writer, bufConn io.Reader) (*AuthContext, error) {}

// noAcceptableAuth is used to handle when we have no eligible
// authentication mechanism
func noAcceptableAuth(conn io.Writer) error {}

// readMethods is used to read the number of methods
// and proceeding auth methods
func readMethods(r io.Reader) ([]byte, error) {}