-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented AttachTag and DetachTag functionality (#126)
* updated * added tags * Updated dependencies
- Loading branch information
1 parent
859f9aa
commit c647bfe
Showing
14 changed files
with
268 additions
and
14 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
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,32 @@ | ||
package graphql | ||
|
||
type TagEntityType string | ||
|
||
var TagEntityTypes = struct { | ||
Application TagEntityType | ||
Environment TagEntityType | ||
Pipeline TagEntityType | ||
Provisioner TagEntityType | ||
Service TagEntityType | ||
Workflow TagEntityType | ||
}{ | ||
Application: "APPLICATION", | ||
Environment: "ENVIRONMENT", | ||
Pipeline: "PIPELINE", | ||
Provisioner: "PROVISIONER", | ||
Service: "SERVICE", | ||
Workflow: "WORKFLOW", | ||
} | ||
|
||
var TagEntityTypeValues = []string{ | ||
TagEntityTypes.Application.String(), | ||
TagEntityTypes.Environment.String(), | ||
TagEntityTypes.Pipeline.String(), | ||
TagEntityTypes.Provisioner.String(), | ||
TagEntityTypes.Service.String(), | ||
TagEntityTypes.Workflow.String(), | ||
} | ||
|
||
func (e TagEntityType) String() string { | ||
return string(e) | ||
} |
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 @@ | ||
package graphql | ||
|
||
type AttachTagInput struct { | ||
ClientMutationId string `json:"clientMutationId,omitempty"` | ||
EntityId string `json:"entityId,omitempty"` | ||
EntityType TagEntityType `json:"entityType,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
Value string `json:"value,omitempty"` | ||
} |
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,6 @@ | ||
package graphql | ||
|
||
type AttachTagPayload struct { | ||
ClientMutationId string `json:"clientMutationId,omitempty"` | ||
TagLink *TagLink `json:"tagLink,omitempty"` | ||
} |
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 @@ | ||
package graphql | ||
|
||
type CreateApplicationInput struct { | ||
AreWebhookSecretsMandated bool `json:"areWebhookSecretsMandated,omitempty"` | ||
ClientMutationId string `json:"clientMutationId,omitempty"` | ||
Description string `json:"description,omitempty"` | ||
IsManualTriggerAuthorized bool `json:"isManualTriggerAuthorized,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
} |
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 @@ | ||
package graphql | ||
|
||
type DetachTagInput struct { | ||
ClientMutationId string `json:"clientMutationId,omitempty"` | ||
EntityId string `json:"entityId,omitempty"` | ||
EntityType TagEntityType `json:"entityType,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
} |
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 @@ | ||
package graphql | ||
|
||
type TagLink struct { | ||
ApplicationId string `json:"appId,omitempty"` | ||
EntityId string `json:"entityId,omitempty"` | ||
EntityType TagEntityType `json:"entityType,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
Value string `json:"value,omitempty"` | ||
} |
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
Oops, something went wrong.