Documentation
¶
Index ¶
- Constants
- Variables
- type AuthError
- type Client
- type Mech
- type Options
- type Status
- type TSaslTransport
- func (t *TSaslTransport) Close() error
- func (t *TSaslTransport) Flush(ctx context.Context) error
- func (t *TSaslTransport) IsOpen() bool
- func (t *TSaslTransport) Open() error
- func (t *TSaslTransport) Read(buf []byte) (int, error)
- func (t *TSaslTransport) RemainingBytes() (num_bytes uint64)
- func (t *TSaslTransport) SetTConfiguration(conf *thrift.TConfiguration)
- func (t *TSaslTransport) Write(buf []byte) (int, error)
Constants ¶
View Source
const (
MechPlain = "PLAIN"
)
SASL mechanism tokens
Variables ¶
View Source
var ( ErrUnexpectedClientResponse = errors.New("sasl: unexpected client response") ErrUnexpectedServerChallenge = errors.New("sasl: unexpected server challenge") )
Common SASL errors.
Functions ¶
This section is empty.
Types ¶
type AuthError ¶ added in v1.1.0
type AuthError struct {
// contains filtered or unexported fields
}
type Client ¶
type Client interface {
Start(mechlist []string) (mech string, initial []byte, done bool, err error)
Step(challenge []byte) (response []byte, done bool, err error)
Free()
InterpretReceiveEOF(transportError error) error
}
Client is SASL client
type TSaslTransport ¶
type TSaslTransport struct {
// contains filtered or unexported fields
}
func NewTSaslTransport ¶
func NewTSaslTransport(t thrift.TTransport, opts *Options) (*TSaslTransport, error)
func (*TSaslTransport) Close ¶
func (t *TSaslTransport) Close() error
func (*TSaslTransport) IsOpen ¶
func (t *TSaslTransport) IsOpen() bool
func (*TSaslTransport) Open ¶
func (t *TSaslTransport) Open() error
func (*TSaslTransport) RemainingBytes ¶
func (t *TSaslTransport) RemainingBytes() (num_bytes uint64)
func (*TSaslTransport) SetTConfiguration ¶ added in v1.0.1
func (t *TSaslTransport) SetTConfiguration(conf *thrift.TConfiguration)
Click to show internal directories.
Click to hide internal directories.