This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: Implementing credential/exporter validation via Hasura Actions (#…
…373) Signed-off-by: Nick Parker <nick@opstrace.com>
- Loading branch information
Nick Parker
committed
Feb 23, 2021
1 parent
a0f2818
commit daf9343
Showing
3 changed files
with
105 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,68 @@ | ||
type Mutation { | ||
CreateCredentials ( | ||
tenant: String! | ||
name: String! | ||
type: String! | ||
value: json! | ||
created_at: timestamptz! | ||
updated_at: timestamptz! | ||
): [CreateCredentialsOutput] | ||
} | ||
|
||
|
||
type Mutation { | ||
CreateExporters ( | ||
tenant: String! | ||
name: String! | ||
type: String! | ||
credential: String | ||
config: json! | ||
created_at: timestamptz! | ||
updated_at: timestamptz! | ||
): [CreateExportersOutput] | ||
} | ||
|
||
|
||
type Mutation { | ||
UpdateCredential ( | ||
tenant: String! | ||
name: String! | ||
value: json! | ||
updated_at: timestamptz! | ||
): UpdateCredentialOutput | ||
} | ||
|
||
|
||
type Mutation { | ||
UpdateExporter ( | ||
tenant: String! | ||
name: String! | ||
config: json! | ||
credential: String | ||
updated_at: timestamptz! | ||
): UpdateExporterOutput | ||
} | ||
|
||
|
||
|
||
|
||
type UpdateCredentialOutput { | ||
name : String! | ||
tenant : String! | ||
} | ||
|
||
type CreateCredentialsOutput { | ||
name : String! | ||
tenant : String! | ||
} | ||
|
||
type UpdateExporterOutput { | ||
name : String! | ||
tenant : String! | ||
} | ||
|
||
type CreateExportersOutput { | ||
name : String! | ||
tenant : String! | ||
} | ||
|
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,6 +1,34 @@ | ||
actions: [] | ||
actions: | ||
- name: CreateCredentials | ||
definition: | ||
kind: synchronous | ||
handler: http://localhost:3000 | ||
permissions: | ||
- role: user_admin | ||
- name: CreateExporters | ||
definition: | ||
kind: synchronous | ||
handler: http://localhost:3000 | ||
permissions: | ||
- role: user_admin | ||
- name: UpdateCredential | ||
definition: | ||
kind: synchronous | ||
handler: http://localhost:3000 | ||
permissions: | ||
- role: user_admin | ||
- name: UpdateExporter | ||
definition: | ||
kind: synchronous | ||
handler: http://localhost:3000 | ||
permissions: | ||
- role: user_admin | ||
custom_types: | ||
enums: [] | ||
input_objects: [] | ||
objects: [] | ||
objects: | ||
- name: UpdateCredentialOutput | ||
- name: CreateCredentialsOutput | ||
- name: UpdateExporterOutput | ||
- name: CreateExportersOutput | ||
scalars: [] |