Documentation ¶
Index ¶
Constants ¶
View Source
const LocalName = "nebula.puppet.com"
Variables ¶
View Source
var ( ErrAuthNotSupported = errors.New("dial: server does not support AUTH") ErrNoAuthMechanismsAvailable = errors.New("dial: server does not support any common authentication mechanisms (want CRAM-MD5, PLAIN, or LOGIN)") ErrSTARTTLSNotSupported = errors.New("dial: server does not support STARTTLS") )
Functions ¶
This section is empty.
Types ¶
type AddressSpec ¶
func (*AddressSpec) UnmarshalJSON ¶
func (as *AddressSpec) UnmarshalJSON(data []byte) (err error)
type Dialer ¶
type Dialer struct{}
func (Dialer) DialContext ¶
func (Dialer) DialContext(ctx context.Context, spec ServerSpec) (sender gomail.SendCloser, err error)
type ServerSpec ¶
type Spec ¶
type Spec struct { Server ServerSpec `json:"server"` From AddressSpec `json:"from"` To []AddressSpec `json:"to"` Cc []AddressSpec `json:"cc"` Bcc []AddressSpec `json:"bcc"` Subject string `json:"subject"` Body BodySpec `json:"body"` TimeoutSeconds uint `json:"timeoutSeconds"` }
Click to show internal directories.
Click to hide internal directories.