authentication

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCramMd5

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

func NewAuthCramMd5

func NewAuthCramMd5(user string, password string) *AuthCramMd5

func (*AuthCramMd5) Authenticate

func (a *AuthCramMd5) Authenticate(client *smtp.Client) error

func (*AuthCramMd5) Check

func (a *AuthCramMd5) Check() error

func (*AuthCramMd5) GetType

func (a *AuthCramMd5) GetType() types.AuthenticationMethod

type AuthNone

type AuthNone struct {
}

func NewAuthNone

func NewAuthNone() *AuthNone

func (*AuthNone) Authenticate

func (a *AuthNone) Authenticate(client *smtp.Client) error

func (*AuthNone) Check

func (a *AuthNone) Check() error

func (*AuthNone) GetType

func (a *AuthNone) GetType() types.AuthenticationMethod

type AuthPlain

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

func NewAuthPlain

func NewAuthPlain(hostname string, user string, password string) *AuthPlain

func (*AuthPlain) Authenticate

func (a *AuthPlain) Authenticate(client *smtp.Client) error

func (*AuthPlain) Check

func (a *AuthPlain) Check() error

func (*AuthPlain) GetType

func (a *AuthPlain) GetType() types.AuthenticationMethod

type SmtpAuthentication

type SmtpAuthentication interface {
	Check() error
	Authenticate(client *smtp.Client) error
	GetType() types.AuthenticationMethod
}

func GetAuthentication

func GetAuthentication(st *cmdflags.Settings) (SmtpAuthentication, error)

Jump to

Keyboard shortcuts

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