created init client method and init command
This commit is contained in:
14
chub/client/init.go
Normal file
14
chub/client/init.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func Init(machine *Machine) {
|
||||
req, err := http.NewRequest("POST", url, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
}
|
||||
8
chub/client/machine.go
Normal file
8
chub/client/machine.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package client
|
||||
|
||||
type Machine struct {
|
||||
Hostname string
|
||||
Platform string
|
||||
Architecture string
|
||||
MachineGuid string
|
||||
}
|
||||
Reference in New Issue
Block a user