Versions in this module Expand all Collapse all v0 v0.2.0 Mar 16, 2021 Changes in this version + func ReadAndConfirmPassword() (string, error) + func ReadPassword(prompt string) (string, error) + func ValidateEmail(email string) error + func ValidateEmailFromParts(name, domain string) error + type Account struct + type AccountService service + func (s *AccountService) ChangePassword(domain, username, password string) error + func (s *AccountService) Create(domain, username, password string) error + func (s *AccountService) Delete(domain, username string) error + func (s *AccountService) Disable(domain, username string) error + func (s *AccountService) Enable(domain, username string) error + func (s *AccountService) Get(domain string, username string) (*Account, error) + func (s *AccountService) List(domain string) ([]Account, error) + func (s *AccountService) Rename(domain, old, new string) error + type Alias struct + type AliasService service + func (s *AliasService) Create(domain, alias, email string) error + func (s *AliasService) Delete(domain, alias, email string) error + func (s *AliasService) DeleteAll(domain, alias string) error + func (s *AliasService) Disable(domain, alias, email string) error + func (s *AliasService) Enable(domain, alias, email string) error + func (s *AliasService) Get(domain, alias string) ([]Alias, error) + func (s *AliasService) GetForEmail(domain, alias, email string) (*Alias, error) + func (s *AliasService) List(domain string) ([]Alias, error) + func (s *AliasService) Rename(domain, alias, email, newName string) error + func (s *AliasService) RenameAll(domain, alias, newName string) error + type AuthResponse struct + type AuthService service + func (s *AuthService) Login(login, password string) (*AuthResponse, error) + func (s *AuthService) Logout(login, refreshToken string) error + type Bcc struct + type BccService interface + ChangeRecipient func(domain, username, email string) error + Create func(domain, username, email string) error + Delete func(domain, username string) error + Disable func(domain, username string) error + Enable func(domain, username string) error + Get func(domain, username string) (*Bcc, error) + type Client struct + Accounts *AccountService + Aliases *AliasService + Auth *AuthService + Domains *DomainService + InputBccs *InputBccService + OutputBccs *OutputBccService + func NewClient() (*Client, error) + func (c *Client) GetAuthToken() string + func (c *Client) GetLogin() string + func (c *Client) GetRefreshToken() string + type Domain struct + type DomainService service + func (s *DomainService) Create(name string) error + func (s *DomainService) Delete(name string) error + func (s *DomainService) Disable(name string) error + func (s *DomainService) Enable(name string) error + func (s *DomainService) Get(name string) (*Domain, error) + func (s *DomainService) List() ([]Domain, error) + func (s *DomainService) Rename(old, new string) error + type InputBccService struct + func NewInputBccService(client *goprsc.Client) *InputBccService + func (s InputBccService) ChangeRecipient(domain, username, email string) error + func (s InputBccService) Create(domain, username, email string) error + func (s InputBccService) Delete(domain, username string) error + func (s InputBccService) Disable(domain, username string) error + func (s InputBccService) Enable(domain, username string) error + func (s InputBccService) Get(domain, username string) (*Bcc, error) + type OutputBccService struct + func NewOutputBccService(client *goprsc.Client) *OutputBccService + func (s OutputBccService) ChangeRecipient(domain, username, email string) error + func (s OutputBccService) Create(domain, username, email string) error + func (s OutputBccService) Delete(domain, username string) error + func (s OutputBccService) Disable(domain, username string) error + func (s OutputBccService) Enable(domain, username string) error + func (s OutputBccService) Get(domain, username string) (*Bcc, error) + type Version struct + Major int + Minor int + Patch int + func (v Version) FullVersion() string + func (v Version) String() string