Skip to content

emrecaglar/maestropanel

Repository files navigation

MaestroPanel

wercker status GoDoc

MaestroPanel Go API Client Package

This package allows you to use the functions on the MaestroPanel API service with golang.

Install Package

go get github.com/emrecaglar/maestropanel

Usage

    m := maestropanel.MaestroPanel{
            Url:        "maestropanel url (http://domain.com:9715)", 
            Key:        "api key",
            Version:    "api version (v1)"
    }

Follow for create api key

Basic Example

package main

import (
    "fmt"
    "github.com/emrecaglar/maestropanel"
)

func main(){
    m := maestropanel.MaestroPanel{
            Url:        "http://domain.com:9715", 
            Key:        "xxxxxx",
            Version:    "v1"
    }

    domain := maestropanel.Domain{
        Name:       "domain.com",
        UserName:   "admin",
        Password:   "111111",
        PlanAlias:  "default",
    }

    web := m.Web()

    result, _ := web.CreateDomain(domain)

    fmt.Println(result)
}

Resources

Other API Client Libraries and API License

API Documentation

About

Golang MaestroPanel Api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages