Add dagger.#Secret to dagger spec.
This currently does nothing and is only useful for flagging secrets. Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
ef1bb4b873
commit
db2184262c
@ -1,10 +1,12 @@
|
|||||||
package aws
|
package aws
|
||||||
|
|
||||||
|
import "dagger.io/dagger"
|
||||||
|
|
||||||
#Config: {
|
#Config: {
|
||||||
// AWS region
|
// AWS region
|
||||||
region: string
|
region: string
|
||||||
// AWS access key
|
// AWS access key
|
||||||
accessKey: string // FIXME: should be a secret
|
accessKey: dagger.#Secret
|
||||||
// AWS secret key
|
// AWS secret key
|
||||||
secretKey: string // FIXME: should be a secret
|
secretKey: dagger.#Secret
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,11 @@ package dagger
|
|||||||
// every dagger script outputs a filesystem state (aka a directory)
|
// every dagger script outputs a filesystem state (aka a directory)
|
||||||
#Dir: #compute: [...#Op]
|
#Dir: #compute: [...#Op]
|
||||||
|
|
||||||
|
// Secret value
|
||||||
|
// FIXME: currently aliased as a string to mark secrets
|
||||||
|
// this requires proper support.
|
||||||
|
#Secret: string
|
||||||
|
|
||||||
// One operation in a script
|
// One operation in a script
|
||||||
#Op: #FetchContainer | #FetchGit | #Export | #Exec | #Local | #Copy | #Load | #Subdir
|
#Op: #FetchContainer | #FetchGit | #Export | #Exec | #Local | #Copy | #Load | #Subdir
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
name: string | *""
|
name: string | *""
|
||||||
|
|
||||||
// Netlify authentication token
|
// Netlify authentication token
|
||||||
token: string
|
token: dagger.#Secret
|
||||||
}
|
}
|
||||||
|
|
||||||
// A Netlify site
|
// A Netlify site
|
||||||
|
Reference in New Issue
Block a user