return secret when creating it
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -103,9 +103,9 @@ steps:
|
|||||||
- name: rebuild-cache-with-filesystem
|
- name: rebuild-cache-with-filesystem
|
||||||
image: meltwater/drone-cache
|
image: meltwater/drone-cache
|
||||||
pull: true
|
pull: true
|
||||||
# when:
|
when:
|
||||||
# event:
|
event:
|
||||||
# - tag
|
- tag
|
||||||
settings:
|
settings:
|
||||||
backend: "filesystem"
|
backend: "filesystem"
|
||||||
#debug: true
|
#debug: true
|
||||||
|
@@ -141,7 +141,7 @@ func StoreSecret(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.JSON(http.StatusOK, gin.H{"message": "secret stored successfully"})
|
c.JSON(http.StatusOK, gin.H{"message": "secret stored successfully", "data": s})
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -40,7 +40,7 @@ type Identifiable interface {
|
|||||||
GetId() int
|
GetId() int
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppendIfNotExists requires a struct to implement the GetId() function
|
// AppendIfNotExists requires a struct to implement the GetId() method
|
||||||
// Then we can use this function to avoid creating duplicate entries in the slice
|
// Then we can use this function to avoid creating duplicate entries in the slice
|
||||||
func AppendIfNotExists[T Identifiable](slice []T, element T) []T {
|
func AppendIfNotExists[T Identifiable](slice []T, element T) []T {
|
||||||
for _, existingElement := range slice {
|
for _, existingElement := range slice {
|
||||||
|
Reference in New Issue
Block a user