cpanelgo

package
v0.0.0-...-72cbd67 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CP

type CP struct {
	Protocol    string `valid:"required~Protocol not found!"`
	WHMHostname string `valid:"required~Hostname not found!"`
	WHMPort     string `valid:"required~Port not found!,int"`
	WHMUsername string `valid:"required~Username not found!"`
	WHMAuthKey  string `valid:"required~Auth Key not found!"`
	Format      string `valid:"required~Format not found!"`
	APIVersion  string `valid:"-"`
}

func New

func New(username string, host string, passkey string, opts ...args.V) (CP, error)

Constructr for cpanel client

func (*CP) Cpanel

func (cp *CP) Cpanel(module string, function string, username string, params ...map[string]string) ([]gjson.Result, error)

func (*CP) CreateAccount

func (cp *CP) CreateAccount(domain string, username string, password string) ([]gjson.Result, error)

func (*CP) GetDomainInfo

func (cp *CP) GetDomainInfo() ([]gjson.Result, error)

func (*CP) ListAccounts

func (cp *CP) ListAccounts() ([]gjson.Result, error)

func (*CP) ListUsers

func (cp *CP) ListUsers() ([]gjson.Result, error)

func (*CP) RemoveAccount

func (cp *CP) RemoveAccount(username string) ([]gjson.Result, error)

type Maps

type Maps map[string]string

func MapsJoin

func MapsJoin(m1, m2 Maps) Maps

Jump to

Keyboard shortcuts

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