• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

asset/H19-Feb-2021-

client/H19-Feb-2021-

network/H19-Feb-2021-

storage/H19-Feb-2021-

storm/H19-Feb-2021-

types/H19-Feb-2021-

.travis.ymlH A D19-Feb-202129

COPYRIGHTH A D19-Feb-202127

DockerfileH A D19-Feb-2021171

LICENSEH A D19-Feb-202111.1 KiB

MakefileH A D19-Feb-202191

README.mdH A D19-Feb-2021670

go.modH A D19-Feb-2021144

go.sumH A D19-Feb-202133 KiB

liquidweb.goH A D19-Feb-2021827

README.md

1[![Build Status](https://travis-ci.org/liquidweb/liquidweb-go.svg?branch=master)](https://travis-ci.org/liquidweb/liquidweb-go)
2
3## Usage
4
5```golang
6uesrname := "blars"
7password := "tacoman"
8url := "https://api.stormondemand.com"
9
10api := storm.NewAPI(username, password, url)
11
12// Get storm servers
13api.StormServer.List()
14
15// Create a storm server
16stormServerParams := &storm.StormServerParams{
17  configID: 123,
18  hostname: "blars.tacoman.com"
19  zoneID: 123,
20  password: "123",
21  publicKey: "yourkey"
22}
23stormServer, err := api.StormServer.Create(stormServerParams)
24if err != nil {
25  fmt.Errorf("Error creating storm server %v", err)
26}
27fmt.Println(stormServer.UniqID)
28```
29