Documentation ¶
Index ¶
- type Account
- type Alias
- type CGP
- type Domain
- func (dom *Domain) Account(name string) *Account
- func (dom *Domain) Accounts() ([]*Account, error)
- func (dom Domain) Aliases() ([]string, error)
- func (dom Domain) Exists() (bool, error)
- func (dom *Domain) Forwarder(name, to string) *Forwarder
- func (dom *Domain) Forwarders() ([]*Forwarder, error)
- func (dom *Domain) GetForwarder(name string) (*Forwarder, error)
- func (dom *Domain) GetGroup(name string) (*Group, error)
- func (dom *Domain) Group(name string, members []*Account) *Group
- func (dom *Domain) Groups() ([]*Group, error)
- func (dom *Domain) MailingList(name string) *MailingList
- func (dom *Domain) MailingLists() ([]*MailingList, error)
- type Forwarder
- type Group
- type MailingList
- type SOAPNotFoundError
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
Account represents an account under a domain
type Alias ¶
type Alias struct { Name string // contains filtered or unexported fields }
Alias represents an alias of an account
type CGP ¶
type CGP struct {
// contains filtered or unexported fields
}
CGP represents a configured go client
type Domain ¶
type Domain struct { Name string // contains filtered or unexported fields }
Domain represents a single domain
func (*Domain) Forwarders ¶
Forwarders lists the forwarders of a domain
func (*Domain) GetForwarder ¶
GetForwarder retreives a forwarder with the given name
func (*Domain) MailingList ¶
func (dom *Domain) MailingList(name string) *MailingList
MailingList creates a MailingList type from a domain, with the given name
func (*Domain) MailingLists ¶
func (dom *Domain) MailingLists() ([]*MailingList, error)
MailingLists lists the mailing lists of a domain
type MailingList ¶
MailingList represents a malinglist of a domain
func (*MailingList) Subscriber ¶
func (ml *MailingList) Subscriber(email, name string) *Subscriber
Subscriber create a Subscriber type from a MalingList, with the given email and name
func (*MailingList) Subscribers ¶
func (ml *MailingList) Subscribers() ([]*Subscriber, error)
Subscribers returns a list of subscriber of a mailing list.
type SOAPNotFoundError ¶
type SOAPNotFoundError struct{}
SOAPNotFoundError is returned when we cannot find a soap resource.
func (SOAPNotFoundError) Error ¶
func (err SOAPNotFoundError) Error() string
type Subscriber ¶
type Subscriber struct { MailingList *MailingList Email string RealName string }
Subscriber represents a subscription to a mailinglist