Documentation
¶
Index ¶
- Constants
- func InsecureSSHKeyfileConfig(username, keyFile string) (ssh.ClientConfig, error)
- type Account
- type NodeWorxAPI
- func (a *NodeWorxAPI) APIKeyAuthenticate(key, domain string)
- func (a *NodeWorxAPI) Call(controller string, action string, input interface{}, output interface{}) error
- func (a *NodeWorxAPI) LocalSessionAuthenticate() error
- func (a *NodeWorxAPI) NodeWorxSessionAuthenticate(session, domain string)
- func (a *NodeWorxAPI) NodeWorxVersion() (string, error)
- func (a *NodeWorxAPI) SSHSessionAuthenticate(hostname string, port int, config ssh.ClientConfig) error
- func (a *NodeWorxAPI) UserAuthenticate(username, password, domain string)
Constants ¶
View Source
const NodeWorxAPIRoute = "iworx.route"
Variables ¶
This section is empty.
Functions ¶
func InsecureSSHKeyfileConfig ¶
func InsecureSSHKeyfileConfig(username, keyFile string) (ssh.ClientConfig, error)
Types ¶
type Account ¶
type Account struct { Username string Domain string ContactEmail string Reseller string HomePartition string Shell string Package string Theme string BackupsEnabled bool Suspended bool Locked bool OutgoingMailSuspended bool OutgoingMailHold bool MailboxFormat int8 MaxDeferPrecent string MinDeferBeforeProtection string MaxEmailPerHour string MainIPv4 net.IP MainIPv6 net.IP EmailQuotaLimit string MaxAddons string MaxFtp string MaxMailingLists string MaxParked string MaxPop string MaxDatabases string MaxSubdomains string DiskLimit int DiskUsed int InodeLimit int InodeUsed int }
Account represents a SiteWorx account
type NodeWorxAPI ¶
type NodeWorxAPI struct {
// contains filtered or unexported fields
}
func NewNodeWorxAPI ¶
func NewNodeWorxAPI(hostname string) (*NodeWorxAPI, error)
func (*NodeWorxAPI) APIKeyAuthenticate ¶
func (a *NodeWorxAPI) APIKeyAuthenticate(key, domain string)
func (*NodeWorxAPI) Call ¶
func (a *NodeWorxAPI) Call( controller string, action string, input interface{}, output interface{}, ) error
func (*NodeWorxAPI) LocalSessionAuthenticate ¶
func (a *NodeWorxAPI) LocalSessionAuthenticate() error
func (*NodeWorxAPI) NodeWorxSessionAuthenticate ¶
func (a *NodeWorxAPI) NodeWorxSessionAuthenticate(session, domain string)
func (*NodeWorxAPI) NodeWorxVersion ¶
func (a *NodeWorxAPI) NodeWorxVersion() (string, error)
func (*NodeWorxAPI) SSHSessionAuthenticate ¶
func (a *NodeWorxAPI) SSHSessionAuthenticate( hostname string, port int, config ssh.ClientConfig, ) error
func (*NodeWorxAPI) UserAuthenticate ¶
func (a *NodeWorxAPI) UserAuthenticate(username, password, domain string)
Click to show internal directories.
Click to hide internal directories.