-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds various updates for use with the lagoon cli
- Loading branch information
1 parent
b9f0c2c
commit 13cebdd
Showing
75 changed files
with
3,153 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Contributing | ||
|
||
## Workflow | ||
Pull Requests are welcome. In general, we follow the "fork-and-pull" Git workflow | ||
|
||
1. **Fork** the repo on GitHub | ||
2. **Clone** the project to your own machine | ||
3. **Commit** changes to your own branch | ||
4. **Push** your work back up to your fork | ||
5. Submit a **Pull request** so that we can review your changes | ||
|
||
NOTE: Be sure to merge the latest from "upstream" before making a pull request!. |
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 |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# Lagoon API Machinery | ||
|
||
Shared library/clients for use with Lagoon | ||
Welcome to the Lagoon API Machinery repository. | ||
This repo provides shared library/clients for use with Lagoon. | ||
|
||
**Note: This project is currently under heavy development. Changes and updates are expected frequently.** | ||
|
||
## Installation | ||
|
||
To use Lagoon Machinery in your Go project, you can install it like any other Go library. Run the following command: | ||
|
||
```sh | ||
go get -u github.com/uselagoon/machinery | ||
``` | ||
|
||
## Contributing | ||
|
||
We welcome contributions from the community! If you'd like to contribute to the development of Machinery, please follow our [Contribution Guidelines](CONTRIBUTING.md). | ||
|
||
## Feedback and Issues | ||
|
||
If you encounter any issues with the API or have suggestions for improvements, please [open an issue](https://github.com/uselagoon/machinery/issues) on this repository. |
10 changes: 6 additions & 4 deletions
10
api/lagoon/client/_lgraphql/deployments/deployEnvironmentBranch.graphql
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
mutation ( | ||
$project: String!, | ||
$branch: String!, | ||
$project: String!, | ||
$branch: String!, | ||
$branchRef: String, | ||
$returnData: Boolean!) { | ||
$returnData: Boolean!, | ||
$buildVariables: [EnvKeyValueInput]) { | ||
deployEnvironmentBranch(input: { | ||
project:{ | ||
name: $project | ||
} | ||
branchName: $branch | ||
branchRef: $branchRef | ||
returnData: $returnData | ||
buildVariables: $buildVariables | ||
} | ||
) | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
api/lagoon/client/_lgraphql/environments/addOrUpdateStorageOnEnvironment.graphql
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
mutation ( | ||
$environment: Int! | ||
$persistentStorageClaim: String! | ||
$kibUsed: Float! | ||
) { | ||
addOrUpdateStorageOnEnvironment(input: { | ||
environment: $environment | ||
persistentStorageClaim: $persistentStorageClaim | ||
kibUsed: $kibUsed | ||
} | ||
){ | ||
id | ||
} | ||
} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
query { | ||
allProjects { | ||
id | ||
name | ||
gitUrl | ||
productionEnvironment | ||
developmentEnvironmentsLimit | ||
environments{ | ||
id | ||
name | ||
environmentType | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
mutation ( | ||
$project: String! | ||
){ | ||
deleteProject( | ||
input: { | ||
project: $project | ||
} | ||
) | ||
} |
7 changes: 7 additions & 0 deletions
7
api/lagoon/client/_lgraphql/projects/projectKeyByName.graphql
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
query ( | ||
$name: String!) { | ||
projectByName( | ||
name: $name) { | ||
publicKey | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
api/lagoon/client/_lgraphql/projects/projectKeyByNameRevealed.graphql
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
query ( | ||
$name: String!) { | ||
projectByName( | ||
name: $name) { | ||
privateKey | ||
publicKey | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
api/lagoon/client/_lgraphql/tasks/GetInvokableAdvancedTaskDefinitionsByEnvironment.graphql
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
query ($project: Int!, $environment: String!){ | ||
environmentByName( | ||
project: $project | ||
name: $environment | ||
){ | ||
advancedTasks { | ||
... on AdvancedTaskDefinitionCommand { | ||
id | ||
name | ||
description | ||
} | ||
... on AdvancedTaskDefinitionImage { | ||
id | ||
name | ||
description | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
mutation ( | ||
$environment: Int!, | ||
$name: String!, | ||
$command: String!, | ||
$service: String!) { | ||
addTask(input:{ | ||
environment: $environment | ||
command: $command | ||
execute:true | ||
name: $name | ||
service: $service | ||
}) { | ||
id | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
api/lagoon/client/_lgraphql/tasks/getAdvancedTasksByEnvironment.graphql
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
query ( | ||
$name: String!, | ||
$project: Int! | ||
){ | ||
environmentByName( | ||
name: $name, | ||
project: $project | ||
){ | ||
id | ||
advancedTasks { | ||
... on AdvancedTaskDefinitionCommand { | ||
id | ||
name | ||
description | ||
} | ||
... on AdvancedTaskDefinitionImage { | ||
id | ||
name | ||
description | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.