-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Client package rework
- Loading branch information
Showing
25 changed files
with
922 additions
and
842 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,27 @@ | |
|
||
[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/ubclaunchpad/inertia/client) | ||
|
||
This package contains Inertia's clientside configuration and interface to remote Inertia daemons. | ||
This package contains Inertia's clientside configuration and interface to remote Inertia daemons. It can be imported for use if you don't like the CLI - for example: | ||
|
||
```go | ||
package main | ||
|
||
import "github.com/ubclaunchpad/inertia/client" | ||
|
||
func main() { | ||
// Set up Inertia | ||
config := client.NewConfig( | ||
"0.3.0", "inertia-deploy-test", "docker-compose", | ||
) | ||
|
||
// Add your remote | ||
config.AddRemote(&client.RemoteVPS{ | ||
Name: "gcloud", // ...params | ||
}) | ||
|
||
// Set up client, remote, and deploy your project | ||
cli, _ := client.NewClient("gcloud", config) | ||
cli.BootstrapRemote() | ||
cli.Up("[email protected]:ubclaunchpad/inertia.git", "", false) | ||
} | ||
``` |
Oops, something went wrong.