Merge pull request #642 from samalba/docs-stdlib

Docs stdlib
This commit is contained in:
Sam Alba 2021-06-15 10:58:52 +02:00 committed by GitHub
commit 5b6080caa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
45 changed files with 185 additions and 90 deletions

View File

@ -4,8 +4,12 @@ sidebar_label: alpine
# dagger.io/alpine # dagger.io/alpine
Base package for Alpine Linux
## #Image ## #Image
Base image for Alpine Linux
### #Image Inputs ### #Image Inputs
_No input._ _No input._

View File

@ -4,6 +4,8 @@ sidebar_label: aws
# dagger.io/aws # dagger.io/aws
AWS base package
## #CLI ## #CLI
Re-usable aws-cli component Re-usable aws-cli component
@ -22,7 +24,7 @@ _No output._
## #Config ## #Config
Base AWS Config AWS Config shared by all AWS packages
### #Config Inputs ### #Config Inputs

View File

@ -4,6 +4,8 @@ sidebar_label: cloudformation
# dagger.io/aws/cloudformation # dagger.io/aws/cloudformation
AWS Cloud Formation
## #Stack ## #Stack
AWS CloudFormation Stack AWS CloudFormation Stack

View File

@ -4,6 +4,8 @@ sidebar_label: ecr
# dagger.io/aws/ecr # dagger.io/aws/ecr
Amazon Elastic Container Registry (ECR)
## #Credentials ## #Credentials
Convert AWS credentials to Docker Registry credentials for ECR Convert AWS credentials to Docker Registry credentials for ECR

View File

@ -3,3 +3,5 @@ sidebar_label: ecs
--- ---
# dagger.io/aws/ecs # dagger.io/aws/ecs
AWS Elastic Container Service (ECS)

View File

@ -4,6 +4,8 @@ sidebar_label: eks
# dagger.io/aws/eks # dagger.io/aws/eks
AWS Elastic Kubernetes Service (EKS)
## #KubeConfig ## #KubeConfig
KubeConfig config outputs a valid kube-auth-config for kubectl client KubeConfig config outputs a valid kube-auth-config for kubectl client

View File

@ -4,9 +4,11 @@ sidebar_label: elb
# dagger.io/aws/elb # dagger.io/aws/elb
AWS Elastic Load Balancer (ELBv2)
## #RandomRulePriority ## #RandomRulePriority
Returns a non-taken rule priority (randomized) Returns an unused rule priority (randomized in available range)
### #RandomRulePriority Inputs ### #RandomRulePriority Inputs

View File

@ -4,19 +4,23 @@ sidebar_label: rds
# dagger.io/aws/rds # dagger.io/aws/rds
AWS Relational Database Service (RDS)
## #CreateDB ## #CreateDB
Creates a new Database on an existing RDS Instance
### #CreateDB Inputs ### #CreateDB Inputs
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*config.region* | `string` |AWS region | |*config.region* | `string` |AWS region |
|*config.accessKey* | `dagger.#Secret` |AWS access key | |*config.accessKey* | `dagger.#Secret` |AWS access key |
|*config.secretKey* | `dagger.#Secret` |AWS secret key | |*config.secretKey* | `dagger.#Secret` |AWS secret key |
|*name* | `string` |DB name | |*name* | `string` |DB name |
|*dbArn* | `string` |ARN of the database instance | |*dbArn* | `string` |ARN of the database instance |
|*secretArn* | `string` |ARN of the database secret (for connecting via rds api) | |*secretArn* | `string` |ARN of the database secret (for connecting via rds api) |
|*dbType* | `string` |- | |*dbType* | `string` |Database type MySQL or PostgreSQL (Aurora Serverless only) |
### #CreateDB Outputs ### #CreateDB Outputs
@ -26,19 +30,21 @@ sidebar_label: rds
## #CreateUser ## #CreateUser
Creates a new user credentials on an existing RDS Instance
### #CreateUser Inputs ### #CreateUser Inputs
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*config.region* | `string` |AWS region | |*config.region* | `string` |AWS region |
|*config.accessKey* | `dagger.#Secret` |AWS access key | |*config.accessKey* | `dagger.#Secret` |AWS access key |
|*config.secretKey* | `dagger.#Secret` |AWS secret key | |*config.secretKey* | `dagger.#Secret` |AWS secret key |
|*username* | `string` |Username | |*username* | `string` |Username |
|*password* | `string` |Password | |*password* | `string` |Password |
|*dbArn* | `string` |ARN of the database instance | |*dbArn* | `string` |ARN of the database instance |
|*secretArn* | `string` |ARN of the database secret (for connecting via rds api) | |*secretArn* | `string` |ARN of the database secret (for connecting via rds api) |
|*grantDatabase* | `*"" \| string` |- | |*grantDatabase* | `*"" \| string` |Name of the database to grants access to |
|*dbType* | `string` |- | |*dbType* | `string` |Database type MySQL or PostgreSQL (Aurora Serverless only) |
### #CreateUser Outputs ### #CreateUser Outputs
@ -48,6 +54,8 @@ sidebar_label: rds
## #Instance ## #Instance
Fetches information on an existing RDS Instance
### #Instance Inputs ### #Instance Inputs
| Name | Type | Description | | Name | Type | Description |

View File

@ -4,9 +4,11 @@ sidebar_label: s3
# dagger.io/aws/s3 # dagger.io/aws/s3
AWS Simple Storage Service
## #Put ## #Put
S3 file or Directory upload S3 Bucket upload (file or directory)
### #Put Inputs ### #Put Inputs
@ -27,7 +29,7 @@ S3 file or Directory upload
## #Sync ## #Sync
S3 Sync S3 Bucket sync
### #Sync Inputs ### #Sync Inputs

View File

@ -4,6 +4,8 @@ sidebar_label: docker
# dagger.io/docker # dagger.io/docker
Docker container operations
## #Build ## #Build
Build a Docker image from source, using included Dockerfile Build a Docker image from source, using included Dockerfile
@ -38,10 +40,10 @@ Build a Docker image from the provided Dockerfile contents
### #ImageFromDockerfile Inputs ### #ImageFromDockerfile Inputs
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*dockerfile* | `string` |- | |*dockerfile* | `string` |Dockerfile passed as a string |
|*context* | `dagger.#Artifact` |- | |*context* | `dagger.#Artifact` |Build context |
### #ImageFromDockerfile Outputs ### #ImageFromDockerfile Outputs

View File

@ -4,6 +4,8 @@ sidebar_label: gcp
# dagger.io/gcp # dagger.io/gcp
Google Cloud Platform
## #Config ## #Config
Base Google Cloud Config Base Google Cloud Config

View File

@ -4,6 +4,8 @@ sidebar_label: gcr
# dagger.io/gcp/gcr # dagger.io/gcp/gcr
Google Container Registry
## #Credentials ## #Credentials
Credentials retriever for GCR Credentials retriever for GCR

View File

@ -4,6 +4,8 @@ sidebar_label: gke
# dagger.io/gcp/gke # dagger.io/gcp/gke
Google Kubernetes Engine
## #KubeConfig ## #KubeConfig
KubeConfig config outputs a valid kube-auth-config for kubectl client KubeConfig config outputs a valid kube-auth-config for kubectl client

View File

@ -4,6 +4,8 @@ sidebar_label: git
# dagger.io/git # dagger.io/git
Git operations
## #CurrentBranch ## #CurrentBranch
Get the name of the current checked out branch or tag Get the name of the current checked out branch or tag
@ -12,13 +14,13 @@ Get the name of the current checked out branch or tag
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*repository* | `dagger.#Artifact` |- | |*repository* | `dagger.#Artifact` |Git repository |
### #CurrentBranch Outputs ### #CurrentBranch Outputs
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*name* | `string` |- | |*name* | `string` |Git branch name |
## #Repository ## #Repository
@ -44,10 +46,10 @@ List tags of a repository
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*repository* | `dagger.#Artifact` |- | |*repository* | `dagger.#Artifact` |Git repository |
### #Tags Outputs ### #Tags Outputs
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*tags* | `[]` |- | |*tags* | `[]` |Repository tags |

View File

@ -4,8 +4,12 @@ sidebar_label: go
# dagger.io/go # dagger.io/go
Go build operations
## #Build ## #Build
Go application builder
### #Build Inputs ### #Build Inputs
| Name | Type | Description | | Name | Type | Description |
@ -33,7 +37,7 @@ A standalone go environment
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*version* | `*"1.16" \| string` |Go version to use | |*version* | `*"1.16" \| string` |Go version to use |
|*source* | `dagger.#Artifact` |- | |*source* | `dagger.#Artifact` |Source code |
|*image.from* | `"docker.io/golang:1.16-alpine"` |Remote ref (example: "index.docker.io/alpine:latest") | |*image.from* | `"docker.io/golang:1.16-alpine"` |Remote ref (example: "index.docker.io/alpine:latest") |
### #Container Outputs ### #Container Outputs
@ -42,6 +46,8 @@ _No output._
## #Go ## #Go
Re-usable component for the Go compiler
### #Go Inputs ### #Go Inputs
| Name | Type | Description | | Name | Type | Description |

View File

@ -4,6 +4,8 @@ sidebar_label: io
# dagger.io/io # dagger.io/io
IO operations
## #Dir ## #Dir
Standard interface for directory operations in cue Standard interface for directory operations in cue
@ -30,6 +32,8 @@ _No output._
## #ReadWriter ## #ReadWriter
Standard ReadWriter interface
### #ReadWriter Inputs ### #ReadWriter Inputs
_No input._ _No input._
@ -40,6 +44,8 @@ _No output._
## #Reader ## #Reader
Standard Reader interface
### #Reader Inputs ### #Reader Inputs
_No input._ _No input._
@ -50,6 +56,8 @@ _No output._
## #Writer ## #Writer
Standard Writer interface
### #Writer Inputs ### #Writer Inputs
_No input._ _No input._

View File

@ -8,23 +8,23 @@ Yarn is a package manager for Javascript applications
## #Package ## #Package
A Yarn package. A Yarn package
### #Package Inputs ### #Package Inputs
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*source* | `dagger.#Artifact` |Application source code | |*source* | `dagger.#Artifact` |Application source code |
|*package* | `struct` |Extra alpine packages to install | |*package* | `struct` |Extra alpine packages to install |
|*cwd* | `*"." \| string` |working directory to use | |*cwd* | `*"." \| string` |working directory to use |
|*env* | `struct` |Environment variables | |*env* | `struct` |Environment variables |
|*writeEnvFile* | `*"" \| string` |Write the contents of `environment` to this file, in the "envfile" format. | |*writeEnvFile* | `*"" \| string` |Write the contents of `environment` to this file, in the "envfile" format |
|*buildDir* | `*"build" \| string` |Read build output from this directory (path must be relative to working directory). | |*buildDir* | `*"build" \| string` |Read build output from this directory (path must be relative to working directory) |
|*script* | `*"build" \| string` |Run this yarn script | |*script* | `*"build" \| string` |Run this yarn script |
|*args* | `*[] \| []` |Optional arguments for the script | |*args* | `*[] \| []` |Optional arguments for the script |
### #Package Outputs ### #Package Outputs
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*build* | `struct` |- | |*build* | `struct` |Build output directory |

View File

@ -4,8 +4,12 @@ sidebar_label: kubernetes
# dagger.io/kubernetes # dagger.io/kubernetes
Kubernetes client operations
## #Kubectl ## #Kubectl
Kubectl client
### #Kubectl Inputs ### #Kubectl Inputs
_No input._ _No input._

View File

@ -4,6 +4,8 @@ sidebar_label: kustomize
# dagger.io/kubernetes/kustomize # dagger.io/kubernetes/kustomize
Kustomize config management
## #Kustomization ## #Kustomization
### #Kustomization Inputs ### #Kustomization Inputs

View File

@ -4,9 +4,11 @@ sidebar_label: netlify
# dagger.io/netlify # dagger.io/netlify
Netlify client operations
## #Account ## #Account
A Netlify account Netlify account credentials
### #Account Inputs ### #Account Inputs
@ -21,7 +23,7 @@ _No output._
## #Site ## #Site
A Netlify site Netlify site
### #Site Inputs ### #Site Inputs

View File

@ -4,16 +4,7 @@ sidebar_label: random
# dagger.io/random # dagger.io/random
Random generation utilities. Random generation utilities
Example:
```cue
str: random.#String & {
seed: "str"
length: 10
}
```
## #String ## #String

View File

@ -4,14 +4,18 @@ sidebar_label: terraform
# dagger.io/terraform # dagger.io/terraform
Terraform operations
## #Configuration ## #Configuration
Terraform configuration
### #Configuration Inputs ### #Configuration Inputs
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*version* | `*"latest" \| string` |- | |*version* | `*"latest" \| string` |Terraform version |
|*source* | `dagger.#Artifact` |- | |*source* | `dagger.#Artifact` |Source configuration |
### #Configuration Outputs ### #Configuration Outputs

View File

@ -1,3 +1,4 @@
// Base package for Alpine Linux
package alpine package alpine
import ( import (
@ -6,6 +7,7 @@ import (
let defaultVersion = "3.13.5@sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f" let defaultVersion = "3.13.5@sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f"
// Base image for Alpine Linux
#Image: { #Image: {
package: [string]: true | false | string package: [string]: true | false | string
version: string | *defaultVersion version: string | *defaultVersion

View File

@ -1,3 +1,4 @@
// AWS base package
package aws package aws
import ( import (
@ -6,7 +7,7 @@ import (
"dagger.io/alpine" "dagger.io/alpine"
) )
// Base AWS Config // AWS Config shared by all AWS packages
#Config: { #Config: {
// AWS region // AWS region
region: string @dagger(input) region: string @dagger(input)

View File

@ -1,3 +1,4 @@
// AWS Cloud Formation
package cloudformation package cloudformation
import ( import (

View File

@ -1,3 +1,4 @@
// Amazon Elastic Container Registry (ECR)
package ecr package ecr
import ( import (

View File

@ -1,10 +1,11 @@
// AWS Elastic Container Service (ECS)
package ecs package ecs
import ( import (
"dagger.io/aws" "dagger.io/aws"
) )
// RunTask implement ecs run-task // RunTask implements ecs run-task for running a single container on ECS
#RunTask: { #RunTask: {
// AWS Config // AWS Config

View File

@ -1,3 +1,4 @@
// AWS Elastic Kubernetes Service (EKS)
package eks package eks
import ( import (

View File

@ -1,3 +1,4 @@
// AWS Elastic Load Balancer (ELBv2)
package elb package elb
import ( import (
@ -5,7 +6,7 @@ import (
"dagger.io/aws" "dagger.io/aws"
) )
// Returns a non-taken rule priority (randomized) // Returns an unused rule priority (randomized in available range)
#RandomRulePriority: { #RandomRulePriority: {
// AWS Config // AWS Config
config: aws.#Config config: aws.#Config

View File

@ -1,3 +1,4 @@
// AWS Relational Database Service (RDS)
package rds package rds
import ( import (
@ -6,6 +7,7 @@ import (
"dagger.io/aws" "dagger.io/aws"
) )
// Creates a new Database on an existing RDS Instance
#CreateDB: { #CreateDB: {
// AWS Config // AWS Config
config: aws.#Config config: aws.#Config
@ -19,6 +21,7 @@ import (
// ARN of the database secret (for connecting via rds api) // ARN of the database secret (for connecting via rds api)
secretArn: string @dagger(input) secretArn: string @dagger(input)
// Database type MySQL or PostgreSQL (Aurora Serverless only)
dbType: "mysql" | "postgres" @dagger(input) dbType: "mysql" | "postgres" @dagger(input)
// Name of the DB created // Name of the DB created
@ -79,6 +82,7 @@ import (
} }
} }
// Creates a new user credentials on an existing RDS Instance
#CreateUser: { #CreateUser: {
// AWS Config // AWS Config
config: aws.#Config config: aws.#Config
@ -95,8 +99,10 @@ import (
// ARN of the database secret (for connecting via rds api) // ARN of the database secret (for connecting via rds api)
secretArn: string @dagger(input) secretArn: string @dagger(input)
// Name of the database to grants access to
grantDatabase: string | *"" @dagger(input) grantDatabase: string | *"" @dagger(input)
// Database type MySQL or PostgreSQL (Aurora Serverless only)
dbType: "mysql" | "postgres" @dagger(input) dbType: "mysql" | "postgres" @dagger(input)
// Outputed username // Outputed username
@ -185,6 +191,7 @@ import (
} }
} }
// Fetches information on an existing RDS Instance
#Instance: { #Instance: {
// AWS Config // AWS Config
config: aws.#Config config: aws.#Config

View File

@ -1,3 +1,4 @@
// AWS Simple Storage Service
package s3 package s3
import ( import (
@ -6,7 +7,7 @@ import (
"dagger.io/aws" "dagger.io/aws"
) )
// S3 file or Directory upload // S3 Bucket upload (file or directory)
#Put: { #Put: {
// AWS Config // AWS Config
@ -91,7 +92,7 @@ import (
} }
} }
// S3 Sync // S3 Bucket sync
#Sync: { #Sync: {
// AWS Config // AWS Config
config: aws.#Config config: aws.#Config

View File

@ -6,7 +6,6 @@ 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
#Artifact: { #Artifact: {
@dagger(artifact) @dagger(artifact)
#up: [...op.#Op] #up: [...op.#Op]

View File

@ -1,3 +1,4 @@
// Docker container operations
package docker package docker
import ( import (
@ -102,8 +103,11 @@ import (
// Build a Docker image from the provided Dockerfile contents // Build a Docker image from the provided Dockerfile contents
// FIXME: incorporate into #Build // FIXME: incorporate into #Build
#ImageFromDockerfile: { #ImageFromDockerfile: {
dockerfile: string @dagger(input) // Dockerfile passed as a string
context: dagger.#Artifact @dagger(input) dockerfile: string @dagger(input)
// Build context
context: dagger.#Artifact @dagger(input)
#up: [ #up: [
op.#DockerBuild & { op.#DockerBuild & {

View File

@ -1,3 +1,4 @@
// Google Cloud Platform
package gcp package gcp
import ( import (

View File

@ -1,3 +1,4 @@
// Google Container Registry
package gcr package gcr
import ( import (

View File

@ -1,3 +1,4 @@
// Google Kubernetes Engine
package gke package gke
import ( import (

View File

@ -1,3 +1,4 @@
// Git operations
package git package git
import ( import (
@ -35,7 +36,11 @@ import (
// Get the name of the current checked out branch or tag // Get the name of the current checked out branch or tag
#CurrentBranch: { #CurrentBranch: {
// Git repository
repository: dagger.#Artifact @dagger(input) repository: dagger.#Artifact @dagger(input)
// Git branch name
name: { name: {
string string
@dagger(output) @dagger(output)
@ -74,7 +79,11 @@ import (
// List tags of a repository // List tags of a repository
#Tags: { #Tags: {
// Git repository
repository: dagger.#Artifact @dagger(input) repository: dagger.#Artifact @dagger(input)
// Repository tags
tags: { tags: {
[...string] [...string]
@dagger(output) @dagger(output)

View File

@ -1,3 +1,4 @@
// Go build operations
package go package go
import ( import (
@ -10,9 +11,12 @@ import (
// A standalone go environment // A standalone go environment
#Container: { #Container: {
// Go version to use // Go version to use
version: *"1.16" | string @dagger(input) version: *"1.16" | string @dagger(input)
source: dagger.#Artifact @dagger(input)
// Source code
source: dagger.#Artifact @dagger(input)
os.#Container & { os.#Container & {
env: CGO_ENABLED: "0" env: CGO_ENABLED: "0"
@ -36,6 +40,7 @@ import (
} }
} }
// Re-usable component for the Go compiler
#Go: { #Go: {
// Go version to use // Go version to use
version: *"1.16" | string @dagger(input) version: *"1.16" | string @dagger(input)
@ -70,6 +75,7 @@ import (
] ]
} }
// Go application builder
#Build: { #Build: {
// Go version to use // Go version to use
version: *#Go.version | string @dagger(input) version: *#Go.version | string @dagger(input)
@ -95,6 +101,7 @@ import (
// Specify the targeted binary name // Specify the targeted binary name
output: string @dagger(output) output: string @dagger(output)
// Environment variables
env: { env: {
[string]: string @dagger(input) [string]: string @dagger(input)
} }

View File

@ -1,3 +1,4 @@
// IO operations
package io package io
// Standard interface for directory operations in cue // Standard interface for directory operations in cue
@ -13,8 +14,10 @@ package io
... ...
} }
// Standard ReadWriter interface
#ReadWriter: #Reader & #Writer #ReadWriter: #Reader & #Writer
// Standard Reader interface
#Reader: { #Reader: {
read: { read: {
// FIXME: support different data schemas for different formats // FIXME: support different data schemas for different formats
@ -26,6 +29,7 @@ package io
... ...
} }
// Standard Writer interface
#Writer: { #Writer: {
write: *null | { write: *null | {
// FIXME: support writing in multiple formats // FIXME: support writing in multiple formats

View File

@ -9,7 +9,7 @@ import (
"dagger.io/os" "dagger.io/os"
) )
// A Yarn package. // A Yarn package
#Package: { #Package: {
// Application source code // Application source code
source: dagger.#Artifact @dagger(input) source: dagger.#Artifact @dagger(input)
@ -28,11 +28,11 @@ import (
} @dagger(input) } @dagger(input)
// Write the contents of `environment` to this file, // Write the contents of `environment` to this file,
// in the "envfile" format. // in the "envfile" format
writeEnvFile: string | *"" @dagger(input) writeEnvFile: string | *"" @dagger(input)
// Read build output from this directory // Read build output from this directory
// (path must be relative to working directory). // (path must be relative to working directory)
buildDir: string | *"build" @dagger(input) buildDir: string | *"build" @dagger(input)
// Run this yarn script // Run this yarn script
@ -41,6 +41,7 @@ import (
// Optional arguments for the script // Optional arguments for the script
args: [...string] | *[] @dagger(input) args: [...string] | *[] @dagger(input)
// Build output directory
build: os.#Dir & { build: os.#Dir & {
from: ctr from: ctr
path: "/build" path: "/build"

View File

@ -1,3 +1,4 @@
// Kubernetes client operations
package kubernetes package kubernetes
import ( import (
@ -6,8 +7,10 @@ import (
"dagger.io/alpine" "dagger.io/alpine"
) )
// Kubectl client
#Kubectl: { #Kubectl: {
// Kubectl version
version: *"v1.19.9" | string version: *"v1.19.9" | string
#code: #""" #code: #"""

View File

@ -1,3 +1,4 @@
// Kustomize config management
package kustomize package kustomize
import ( import (

View File

@ -1,3 +1,4 @@
// Netlify client operations
package netlify package netlify
import ( import (
@ -6,7 +7,7 @@ import (
"dagger.io/os" "dagger.io/os"
) )
// A Netlify account // Netlify account credentials
#Account: { #Account: {
// Use this Netlify account name // Use this Netlify account name
// (also referred to as "team" in the Netlify docs) // (also referred to as "team" in the Netlify docs)
@ -16,7 +17,7 @@ import (
token: dagger.#Secret @dagger(input) token: dagger.#Secret @dagger(input)
} }
// A Netlify site // Netlify site
#Site: { #Site: {
// Netlify account this site is attached to // Netlify account this site is attached to
account: #Account account: #Account

View File

@ -1,16 +1,4 @@
// Random generation utilities. // Random generation utilities
//
// Example:
//
// ```cue
// str: random.#String & {
// seed: "str"
// length: 10
// }
// ```
//
//
//
package random package random
import ( import (

View File

@ -1,3 +1,4 @@
// Terraform operations
package terraform package terraform
import ( import (
@ -7,15 +8,20 @@ import (
"dagger.io/dagger/op" "dagger.io/dagger/op"
) )
// Terraform configuration
#Configuration: { #Configuration: {
// Terraform version
version: string | *"latest" @dagger(input) version: string | *"latest" @dagger(input)
// Source configuration
source: dagger.#Artifact @dagger(input) source: dagger.#Artifact @dagger(input)
tfvars?: { tfvars?: {
... ...
} }
// Environment variables
env: { env: {
[string]: string @dagger(input) [string]: string @dagger(input)
} }