stdlib: adapted lib to new input spec

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-05-18 21:37:34 -07:00
parent a369c7a1ba
commit 85cc9abb93
3 changed files with 13 additions and 10 deletions

View File

@ -9,11 +9,11 @@ import (
// Base AWS Config // Base AWS Config
#Config: { #Config: {
// AWS region // AWS region
region: string region: string @dagger(input)
// AWS access key // AWS access key
accessKey: dagger.#Secret accessKey: dagger.#Secret @dagger(input)
// AWS secret key // AWS secret key
secretKey: dagger.#Secret secretKey: dagger.#Secret @dagger(input)
} }
// Re-usable aws-cli component // Re-usable aws-cli component

View File

@ -9,25 +9,25 @@ import (
#Put: { #Put: {
// AWS Config // AWS Config
config: aws.#Config config: aws.#Config @dagger(input)
// Source Artifact to upload to S3 // Source Artifact to upload to S3
source?: dagger.#Artifact source?: dagger.#Artifact @dagger(input)
// Source inlined as a string to upload to S3 // Source inlined as a string to upload to S3
sourceInline?: string sourceInline?: string @dagger(input)
// Target S3 URL (eg. s3://<bucket-name>/<path>/<sub-path>) // Target S3 URL (eg. s3://<bucket-name>/<path>/<sub-path>)
target: string target: string @dagger(input)
// Object content type // Object content type
contentType: string | *"" contentType: string | *"" @dagger(input)
// URL of the uploaded S3 object // URL of the uploaded S3 object
url: out url: out @dagger(output)
// Always write the object to S3 // Always write the object to S3
always?: bool always?: bool @dagger(input)
out: string out: string
aws.#Script & { aws.#Script & {

View File

@ -7,7 +7,9 @@ import (
// An artifact such as source code checkout, container image, binary archive... // An artifact such as source code checkout, container image, binary archive...
// May be passed as user input, or computed by a buildkit pipeline // May be passed as user input, or computed by a buildkit pipeline
// FIXME (perf). See https://github.com/dagger/dagger/issues/445
#Artifact: { #Artifact: {
@dagger(artifact)
#up: [...op.#Op] #up: [...op.#Op]
_ _
... ...
@ -17,5 +19,6 @@ import (
// FIXME: currently aliased as a string to mark secrets // FIXME: currently aliased as a string to mark secrets
// this requires proper support. // this requires proper support.
#Secret: { #Secret: {
@dagger(secret)
string | bytes string | bytes
} }