stdlib: move all imports to alpha.dagger.io

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes 2021-06-23 14:31:42 +00:00
parent aa6335246b
commit d7a805f42b
168 changed files with 412 additions and 312 deletions

View File

@ -2,9 +2,9 @@
package main
import (
"dagger.io/dagger"
"dagger.io/os"
"dagger.io/go"
"alpha.dagger.io/dagger"
"alpha.dagger.io/os"
"alpha.dagger.io/go"
)
// Dagger source code

View File

@ -1,9 +1,9 @@
package main
import (
"dagger.io/dagger"
"dagger.io/js/yarn"
"dagger.io/netlify"
"alpha.dagger.io/dagger"
"alpha.dagger.io/js/yarn"
"alpha.dagger.io/netlify"
)
// dagger repository

View File

@ -1,7 +1,7 @@
package testcore
import (
"dagger.io/dagger"
"alpha.dagger.io/dagger"
)
name: dagger.#Input & {

View File

@ -337,7 +337,7 @@ func walkStdlib(ctx context.Context, output, format string) {
return nil
}
pkgName := fmt.Sprintf("dagger.io/%s", p)
pkgName := fmt.Sprintf("alpha.dagger.io/%s", p)
lg.Info().Str("package", pkgName).Str("format", format).Msg("generating doc")
val, err := loadCode(pkgName)
if err != nil {

View File

@ -136,7 +136,7 @@ Let's write the corresponding Cue code to a new file in our package:
package multibucket
import (
"dagger.io/dagger"
"alpha.dagger.io/dagger"
)
// Source code of the sample application
@ -153,7 +153,7 @@ The second component of our plan is the Yarn package built from the app source c
package multibucket
import (
"dagger.io/js/yarn"
"alpha.dagger.io/js/yarn"
)
// Build the source code using Yarn
@ -165,7 +165,7 @@ app: yarn.#Package & {
Let's break it down:
- `package multibucket`: this file is part of the multibucket package
- `import ( "dagger.io/js/yarn" )`: import a package from the [Dagger Universe](../reference/universe/README.md).
- `import ( "alpha.dagger.io/js/yarn" )`: import a package from the [Dagger Universe](../reference/universe/README.md).
- `app: yarn.#Package`: apply the `#Package` definition at the key `app`
- `&`: also merge the following values at the same key...
- `{ source: src }`: set the key `app.source` to the value of `src`. This connects our 2 components, forming the first link in our DAG.
@ -182,7 +182,7 @@ The third component of our plan is the Netlify site to which the app will be dep
package multibucket
import (
"dagger.io/netlify"
"alpha.dagger.io/netlify"
)
// Netlify site

View File

@ -164,7 +164,7 @@ values={[
package kube
import (
"dagger.io/kubernetes"
"alpha.dagger.io/kubernetes"
)
// input: ~/.kube/config file used for deployment
@ -190,8 +190,8 @@ deploy: kubernetes.#Resources & {
package kube
import (
"dagger.io/kubernetes"
"dagger.io/gcp/gke"
"alpha.dagger.io/kubernetes"
"alpha.dagger.io/gcp/gke"
)
// gkeConfig used for deployment
@ -218,8 +218,8 @@ deploy: kubernetes.#Resources & {
package kube
import (
"dagger.io/kubernetes"
"dagger.io/aws/eks"
"alpha.dagger.io/kubernetes"
"alpha.dagger.io/aws/eks"
)
// eksConfig used for deployment
@ -587,8 +587,8 @@ package kube
import (
"encoding/yaml"
"dagger.io/dagger"
"dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/docker"
)
// input: source code repository, must contain a Dockerfile

View File

@ -168,7 +168,7 @@ Let's implement the first step, use the `aws.#Config` relay, and request its fir
package cloudformation
import (
"dagger.io/aws"
"alpha.dagger.io/aws"
)
// AWS account: credentials and region
@ -226,10 +226,10 @@ Now that we have the `config` definition properly configured, let's modify the C
package cloudformation
import (
"dagger.io/aws"
"dagger.io/dagger"
"dagger.io/random"
"dagger.io/aws/cloudformation"
"alpha.dagger.io/aws"
"alpha.dagger.io/dagger"
"alpha.dagger.io/random"
"alpha.dagger.io/aws/cloudformation"
)
// AWS account: credentials and region

View File

@ -2,12 +2,12 @@
sidebar_label: alpine
---
# dagger.io/alpine
# alpha.dagger.io/alpine
Base package for Alpine Linux
```cue
import "dagger.io/alpine"
import "alpha.dagger.io/alpine"
```
## alpine.#Image

View File

@ -2,12 +2,12 @@
sidebar_label: aws
---
# dagger.io/aws
# alpha.dagger.io/aws
AWS base package
```cue
import "dagger.io/aws"
import "alpha.dagger.io/aws"
```
## aws.#CLI

View File

@ -2,12 +2,12 @@
sidebar_label: cloudformation
---
# dagger.io/aws/cloudformation
# alpha.dagger.io/aws/cloudformation
AWS CloudFormation
```cue
import "dagger.io/aws/cloudformation"
import "alpha.dagger.io/aws/cloudformation"
```
## cloudformation.#Stack

View File

@ -2,12 +2,12 @@
sidebar_label: ecr
---
# dagger.io/aws/ecr
# alpha.dagger.io/aws/ecr
Amazon Elastic Container Registry (ECR)
```cue
import "dagger.io/aws/ecr"
import "alpha.dagger.io/aws/ecr"
```
## ecr.#Credentials

View File

@ -2,10 +2,10 @@
sidebar_label: ecs
---
# dagger.io/aws/ecs
# alpha.dagger.io/aws/ecs
AWS Elastic Container Service (ECS)
```cue
import "dagger.io/aws/ecs"
import "alpha.dagger.io/aws/ecs"
```

View File

@ -2,12 +2,12 @@
sidebar_label: eks
---
# dagger.io/aws/eks
# alpha.dagger.io/aws/eks
AWS Elastic Kubernetes Service (EKS)
```cue
import "dagger.io/aws/eks"
import "alpha.dagger.io/aws/eks"
```
## eks.#KubeConfig

View File

@ -2,12 +2,12 @@
sidebar_label: elb
---
# dagger.io/aws/elb
# alpha.dagger.io/aws/elb
AWS Elastic Load Balancer (ELBv2)
```cue
import "dagger.io/aws/elb"
import "alpha.dagger.io/aws/elb"
```
## elb.#RandomRulePriority

View File

@ -2,12 +2,12 @@
sidebar_label: rds
---
# dagger.io/aws/rds
# alpha.dagger.io/aws/rds
AWS Relational Database Service (RDS)
```cue
import "dagger.io/aws/rds"
import "alpha.dagger.io/aws/rds"
```
## rds.#Database

View File

@ -2,12 +2,12 @@
sidebar_label: s3
---
# dagger.io/aws/s3
# alpha.dagger.io/aws/s3
AWS Simple Storage Service
```cue
import "dagger.io/aws/s3"
import "alpha.dagger.io/aws/s3"
```
## s3.#Object

View File

@ -2,12 +2,12 @@
sidebar_label: dagger
---
# dagger.io/dagger
# alpha.dagger.io/dagger
Dagger core types
```cue
import "dagger.io/dagger"
import "alpha.dagger.io/dagger"
```
## dagger.#Secret

View File

@ -2,12 +2,12 @@
sidebar_label: op
---
# dagger.io/dagger/op
# alpha.dagger.io/dagger/op
op: low-level operations for Dagger processing pipelines
```cue
import "dagger.io/dagger/op"
import "alpha.dagger.io/dagger/op"
```
## op.#Copy

View File

@ -2,12 +2,12 @@
sidebar_label: docker
---
# dagger.io/docker
# alpha.dagger.io/docker
Docker container operations
```cue
import "dagger.io/docker"
import "alpha.dagger.io/docker"
```
## docker.#Build

View File

@ -2,12 +2,12 @@
sidebar_label: gcp
---
# dagger.io/gcp
# alpha.dagger.io/gcp
Google Cloud Platform
```cue
import "dagger.io/gcp"
import "alpha.dagger.io/gcp"
```
## gcp.#Config

View File

@ -2,12 +2,12 @@
sidebar_label: gcr
---
# dagger.io/gcp/gcr
# alpha.dagger.io/gcp/gcr
Google Container Registry
```cue
import "dagger.io/gcp/gcr"
import "alpha.dagger.io/gcp/gcr"
```
## gcr.#Credentials

View File

@ -2,12 +2,12 @@
sidebar_label: gke
---
# dagger.io/gcp/gke
# alpha.dagger.io/gcp/gke
Google Kubernetes Engine
```cue
import "dagger.io/gcp/gke"
import "alpha.dagger.io/gcp/gke"
```
## gke.#KubeConfig

View File

@ -2,12 +2,12 @@
sidebar_label: git
---
# dagger.io/git
# alpha.dagger.io/git
Git operations
```cue
import "dagger.io/git"
import "alpha.dagger.io/git"
```
## git.#CurrentBranch

View File

@ -2,12 +2,12 @@
sidebar_label: go
---
# dagger.io/go
# alpha.dagger.io/go
Go build operations
```cue
import "dagger.io/go"
import "alpha.dagger.io/go"
```
## go.#Build

View File

@ -2,12 +2,12 @@
sidebar_label: io
---
# dagger.io/io
# alpha.dagger.io/io
IO operations
```cue
import "dagger.io/io"
import "alpha.dagger.io/io"
```
## io.#Dir

View File

@ -2,12 +2,12 @@
sidebar_label: yarn
---
# dagger.io/js/yarn
# alpha.dagger.io/js/yarn
Yarn is a package manager for Javascript applications
```cue
import "dagger.io/js/yarn"
import "alpha.dagger.io/js/yarn"
```
## yarn.#Package

View File

@ -2,12 +2,12 @@
sidebar_label: kubernetes
---
# dagger.io/kubernetes
# alpha.dagger.io/kubernetes
Kubernetes client operations
```cue
import "dagger.io/kubernetes"
import "alpha.dagger.io/kubernetes"
```
## kubernetes.#Kubectl

View File

@ -2,12 +2,12 @@
sidebar_label: helm
---
# dagger.io/kubernetes/helm
# alpha.dagger.io/kubernetes/helm
Helm package manager
```cue
import "dagger.io/kubernetes/helm"
import "alpha.dagger.io/kubernetes/helm"
```
## helm.#Chart

View File

@ -2,12 +2,12 @@
sidebar_label: kustomize
---
# dagger.io/kubernetes/kustomize
# alpha.dagger.io/kubernetes/kustomize
Kustomize config management
```cue
import "dagger.io/kubernetes/kustomize"
import "alpha.dagger.io/kubernetes/kustomize"
```
## kustomize.#Kustomization

View File

@ -2,12 +2,12 @@
sidebar_label: netlify
---
# dagger.io/netlify
# alpha.dagger.io/netlify
Netlify client operations
```cue
import "dagger.io/netlify"
import "alpha.dagger.io/netlify"
```
## netlify.#Account

View File

@ -2,12 +2,12 @@
sidebar_label: os
---
# dagger.io/os
# alpha.dagger.io/os
OS operations
```cue
import "dagger.io/os"
import "alpha.dagger.io/os"
```
## os.#Container

View File

@ -2,12 +2,12 @@
sidebar_label: random
---
# dagger.io/random
# alpha.dagger.io/random
Random generation utilities
```cue
import "dagger.io/random"
import "alpha.dagger.io/random"
```
## random.#String

View File

@ -2,12 +2,12 @@
sidebar_label: terraform
---
# dagger.io/terraform
# alpha.dagger.io/terraform
Terraform operations
```cue
import "dagger.io/terraform"
import "alpha.dagger.io/terraform"
```
## terraform.#Configuration

View File

@ -1,8 +1,8 @@
package alpine
import (
"dagger.io/alpine"
"dagger.io/dagger/op"
"alpha.dagger.io/alpine"
"alpha.dagger.io/dagger/op"
)
TestImageVersion: {

View File

@ -1,10 +1,10 @@
package main
import (
"dagger.io/aws"
"dagger.io/aws/ecr"
"dagger.io/dagger/op"
"dagger.io/random"
"alpha.dagger.io/aws"
"alpha.dagger.io/aws/ecr"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/random"
)
TestConfig: awsConfig: aws.#Config & {

View File

@ -1,10 +1,10 @@
package eks
import (
"dagger.io/aws"
"dagger.io/aws/eks"
"dagger.io/kubernetes"
"dagger.io/dagger/op"
"alpha.dagger.io/aws"
"alpha.dagger.io/aws/eks"
"alpha.dagger.io/kubernetes"
"alpha.dagger.io/dagger/op"
)
TestConfig: awsConfig: aws.#Config & {

View File

@ -1,9 +1,9 @@
package s3
import (
"dagger.io/dagger"
"dagger.io/aws"
"dagger.io/aws/s3"
"alpha.dagger.io/dagger"
"alpha.dagger.io/aws"
"alpha.dagger.io/aws/s3"
)
TestConfig: awsConfig: aws.#Config & {

View File

@ -1,9 +1,9 @@
package s3
import (
"dagger.io/aws"
"dagger.io/alpine"
"dagger.io/dagger/op"
"alpha.dagger.io/aws"
"alpha.dagger.io/alpine"
"alpha.dagger.io/dagger/op"
)
#List: {

View File

@ -1,9 +1,9 @@
package docker
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/docker"
)
TestSourceBuild: dagger.#Artifact @dagger(input)

View File

@ -1,8 +1,8 @@
package docker
import (
"dagger.io/dagger"
"dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/docker"
)
TestConfig: {

View File

@ -1,8 +1,8 @@
package docker
import (
"dagger.io/dagger"
"dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/docker"
)
TestConfig: {

View File

@ -1,8 +1,8 @@
package docker
import (
"dagger.io/dagger"
"dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/docker"
)
TestConfig: {

View File

@ -1,8 +1,8 @@
package main
import (
"dagger.io/docker"
"dagger.io/random"
"alpha.dagger.io/docker"
"alpha.dagger.io/random"
)
suffix: random.#String & {

View File

@ -1,9 +1,9 @@
package main
import (
"dagger.io/docker"
"dagger.io/dagger"
"dagger.io/random"
"alpha.dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/random"
)
TestConfig: {

View File

@ -3,10 +3,10 @@ package git
import (
"strings"
"dagger.io/git"
"dagger.io/alpine"
"dagger.io/os"
"dagger.io/dagger/op"
"alpha.dagger.io/git"
"alpha.dagger.io/alpine"
"alpha.dagger.io/os"
"alpha.dagger.io/dagger/op"
)
repo: git.#Repository & {

View File

@ -1,10 +1,10 @@
package go
import (
"dagger.io/dagger"
"dagger.io/go"
"dagger.io/alpine"
"dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/go"
"alpha.dagger.io/alpine"
"alpha.dagger.io/dagger/op"
)
TestData: dagger.#Artifact @dagger(input)

View File

@ -1,10 +1,10 @@
package main
import (
"dagger.io/gcp"
"dagger.io/gcp/gcr"
"dagger.io/dagger/op"
"dagger.io/random"
"alpha.dagger.io/gcp"
"alpha.dagger.io/gcp/gcr"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/random"
)
TestConfig: gcpConfig: gcp.#Config

View File

@ -1,10 +1,10 @@
package gke
import (
"dagger.io/gcp"
"dagger.io/gcp/gke"
"dagger.io/kubernetes"
"dagger.io/dagger/op"
"alpha.dagger.io/gcp"
"alpha.dagger.io/gcp/gke"
"alpha.dagger.io/kubernetes"
"alpha.dagger.io/dagger/op"
)
TestConfig: gcpConfig: gcp.#Config

View File

@ -1,10 +1,10 @@
package react
import (
"dagger.io/dagger"
"dagger.io/js/yarn"
"dagger.io/alpine"
"dagger.io/os"
"alpha.dagger.io/dagger"
"alpha.dagger.io/js/yarn"
"alpha.dagger.io/alpine"
"alpha.dagger.io/os"
)
TestData: dagger.#Artifact

View File

@ -2,8 +2,8 @@ package main
import (
"encoding/yaml"
"dagger.io/kubernetes"
"dagger.io/random"
"alpha.dagger.io/kubernetes"
"alpha.dagger.io/random"
)
// We assume that a kinD cluster is running locally

View File

@ -1,8 +1,8 @@
package main
import (
"dagger.io/dagger/op"
"dagger.io/kubernetes"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/kubernetes"
)
#VerifyApply: {

View File

@ -1,9 +1,9 @@
package main
import (
"dagger.io/kubernetes/helm"
"dagger.io/random"
"dagger.io/dagger"
"alpha.dagger.io/kubernetes/helm"
"alpha.dagger.io/random"
"alpha.dagger.io/dagger"
)
// We assume that a kinD cluster is running locally

View File

@ -1,8 +1,8 @@
package main
import (
"dagger.io/dagger/op"
"dagger.io/kubernetes"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/kubernetes"
)
#VerifyHelm: {

View File

@ -2,8 +2,8 @@ package main
import (
"encoding/yaml"
"dagger.io/dagger"
"dagger.io/kubernetes/kustomize"
"alpha.dagger.io/dagger"
"alpha.dagger.io/kubernetes/kustomize"
)
TestKustomize: {

View File

@ -1,9 +1,9 @@
package main
import (
"dagger.io/dagger/op"
"dagger.io/dagger"
"dagger.io/alpine"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/alpine"
)
#VerifyKustomize: {

View File

@ -1,10 +1,10 @@
package main
import (
"dagger.io/dagger/op"
"dagger.io/alpine"
"dagger.io/netlify"
"dagger.io/random"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/alpine"
"alpha.dagger.io/netlify"
"alpha.dagger.io/random"
)
TestNetlify: {

View File

@ -1,8 +1,8 @@
package main
import (
"dagger.io/dagger"
"dagger.io/os"
"alpha.dagger.io/dagger"
"alpha.dagger.io/os"
)
// Test secret mount

View File

@ -1,8 +1,8 @@
package main
import (
"dagger.io/os"
"dagger.io/alpine"
"alpha.dagger.io/os"
"alpha.dagger.io/alpine"
)
// Write a file to an empty dir

View File

@ -0,0 +1,2 @@
# dagger state
state/**

View File

@ -0,0 +1,67 @@
package main
import (
"alpha.dagger.io/dagger"
"alpha.dagger.io/os"
"alpha.dagger.io/alpine"
)
// Assert that there are no errors
err: ""
// Directory containing universe packages (./universe/ in dagger repo)
universe: dagger.#Input & dagger.#Artifact
ctr: #CueCLI & {
vendor: "alpha.dagger.io": universe
command: """
(
find . -name '*.cue' -print0 | xargs -0iX dirname X | sort -u | {
while read -r dir; do
echo "--- $dir"
cue eval "$dir" >/dev/null
done
} > /out 2>/err
) || true
"""
}
result: (os.#File & {
from: ctr.ctr
path: "/out"
}).contents @dagger(output)
err: (os.#File & {
from: ctr.ctr
path: "/err"
}).contents @dagger(output)
#CueCLI: {
command: string
vendor: [name=string]: dagger.#Artifact
ctr: os.#Container & {
image: alpine.#Image & {
package: {
curl: true
tar: true
}
}
setup: [
"""
set -e
cd $(mktemp -d)
curl -L https://github.com/cuelang/cue/releases/download/v0.4.0/cue_v0.4.0_linux_amd64.tar.gz -o cue.tgz
tar zxvf cue.tgz
cp cue /usr/local/bin/cue
rm -fr ./*
""",
]
for name, dir in vendor {
mount: "/ctx/cue.mod/pkg/\(name)": from: dir
}
dir: "/ctx"
"command": command
}
}

View File

@ -0,0 +1,27 @@
plan:
module: .dagger/env/sanity-check/plan
name: sanity-check
inputs:
universe:
dir:
path: .
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1gxwmtwahzwdmrskhf90ppwlnze30lgpm056kuesrxzeuyclrwvpsupwtpk
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBtMjhYeVhscGxYWVg1RHZ2
bjlWcnFuQ1hvVGVvZGRDYUlpeWpYYUZnWW5nCndObmdoSkpZZXI4MytwNUtsMkwr
ZkY4a01iN1dSL05KaGExSk0rWFpjNzQKLS0tIGF0eVRXalloUERaU2lhZ2gwcG1G
RE1BR1ZvSlpRWnpZVERFQlB5ckhPYk0KMm8XjFKgcjWaXh9F542NXyv9dBZQdZJC
rn5YittfEOwRkrlqBCVwPtU+nhE5oDxnt9a0n8JMUgvB0Nnd6tgP+A==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2021-06-24T15:27:51Z"
mac: ENC[AES256_GCM,data:SDJPXr1NjGSOcHMLmKrzJ9XkFjfXOg7g5pdgXS3fQ4sSALVBqhHSfHJnH2m4NVSJPyOd35ia2/BivTWTGw1oguovLSfSvlptPUDqbwsXQoB2NEFcAJ6eJeDyz8Bx98OrBliyJaVOVYzF4y5dWwW2BGuevW097PbY/Sv3p6x8fyY=,iv:IftNBSOvEn3nGRQlD47At8pvundsXdk68yz+cWct/tU=,tag:XUPxsP39xSjPgvIZNBV09w==,type:str]
pgp: []
encrypted_suffix: secret
version: 3.7.1

View File

@ -1,10 +1,10 @@
package terraform
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/alpine"
"dagger.io/terraform"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/alpine"
"alpha.dagger.io/terraform"
)
TestData: dagger.#Artifact @dagger(input)

View File

@ -2,7 +2,7 @@
package alpine
import (
"dagger.io/dagger/op"
"alpha.dagger.io/dagger/op"
)
// Default Alpine version

View File

@ -2,9 +2,9 @@
package aws
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/alpine"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/alpine"
)
// AWS Config shared by all AWS packages

View File

@ -4,8 +4,8 @@ package cloudformation
import (
"encoding/json"
"dagger.io/dagger/op"
"dagger.io/aws"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/aws"
)
// AWS CloudFormation Stack

View File

@ -2,8 +2,8 @@
package ecr
import (
"dagger.io/aws"
"dagger.io/os"
"alpha.dagger.io/aws"
"alpha.dagger.io/os"
)
// Convert ECR credentials to Docker Login format

View File

@ -2,7 +2,7 @@
package ecs
import (
"dagger.io/aws"
"alpha.dagger.io/aws"
)
// Task implements ecs run-task for running a single container on ECS

View File

@ -2,8 +2,8 @@
package eks
import (
"dagger.io/dagger/op"
"dagger.io/aws"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/aws"
)
// KubeConfig config outputs a valid kube-auth-config for kubectl client

View File

@ -2,8 +2,8 @@
package elb
import (
"dagger.io/dagger/op"
"dagger.io/aws"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/aws"
)
// Returns an unused rule priority (randomized in available range)

View File

@ -2,9 +2,9 @@
package rds
import (
"dagger.io/dagger/op"
"alpha.dagger.io/dagger/op"
"encoding/json"
"dagger.io/aws"
"alpha.dagger.io/aws"
)
// Creates a new Database on an existing RDS Instance

View File

@ -2,9 +2,9 @@
package s3
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/aws"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/aws"
)
// S3 Bucket object(s) sync

View File

@ -2,7 +2,7 @@
package dagger
import (
"dagger.io/dagger/op"
"alpha.dagger.io/dagger/op"
)
// An artifact such as source code checkout, container image, binary archive...

View File

@ -3,9 +3,9 @@ package docker
import (
"strconv"
"dagger.io/alpine"
"dagger.io/dagger"
"dagger.io/dagger/op"
"alpha.dagger.io/alpine"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
)
// A container image that can run any docker command

View File

@ -2,8 +2,8 @@
package docker
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
)
// Build a Docker image from source, using included Dockerfile

View File

@ -1,8 +1,8 @@
package gcp
import (
"dagger.io/dagger/op"
"dagger.io/alpine"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/alpine"
)
// Re-usable gcloud component

View File

@ -2,7 +2,7 @@
package gcp
import (
"dagger.io/dagger"
"alpha.dagger.io/dagger"
)
// Base Google Cloud Config

View File

@ -2,8 +2,8 @@
package gcr
import (
"dagger.io/dagger/op"
"dagger.io/gcp"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/gcp"
)
// Credentials retriever for GCR

View File

@ -2,8 +2,8 @@
package gke
import (
"dagger.io/dagger/op"
"dagger.io/gcp"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/gcp"
)
// KubeConfig config outputs a valid kube-auth-config for kubectl client

View File

@ -2,9 +2,9 @@
package git
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/alpine"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/alpine"
)
// A git repository

View File

@ -2,11 +2,11 @@
package go
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/docker"
"dagger.io/os"
"alpha.dagger.io/os"
)
// A standalone go environment

View File

@ -4,9 +4,9 @@ package yarn
import (
"strings"
"dagger.io/dagger"
"dagger.io/alpine"
"dagger.io/os"
"alpha.dagger.io/dagger"
"alpha.dagger.io/alpine"
"alpha.dagger.io/os"
)
// A Yarn package

View File

@ -4,9 +4,9 @@ package helm
import (
"strconv"
"dagger.io/dagger"
"dagger.io/dagger/op"
"dagger.io/kubernetes"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/kubernetes"
)
// Install a Helm chart

View File

@ -2,9 +2,9 @@
package kubernetes
import (
"dagger.io/dagger/op"
"dagger.io/dagger"
"dagger.io/alpine"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/alpine"
)
// Kubectl client

View File

@ -2,9 +2,9 @@
package kustomize
import (
"dagger.io/dagger/op"
"dagger.io/dagger"
"dagger.io/alpine"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/alpine"
)
#Kustomization: {

View File

@ -2,9 +2,9 @@
package netlify
import (
"dagger.io/dagger"
"dagger.io/alpine"
"dagger.io/os"
"alpha.dagger.io/dagger"
"alpha.dagger.io/alpine"
"alpha.dagger.io/os"
)
// Netlify account credentials

View File

@ -3,10 +3,10 @@ package os
import (
"strings"
"dagger.io/dagger"
"dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"dagger.io/alpine"
"alpha.dagger.io/alpine"
)
// Default image for basic use cases

View File

@ -1,8 +1,8 @@
package os
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
)
#Dir: {

View File

@ -2,8 +2,8 @@
package os
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
)
// Built-in file implementation, using buildkit

View File

@ -4,8 +4,8 @@ package random
import (
"strconv"
"dagger.io/alpine"
"dagger.io/dagger/op"
"alpha.dagger.io/alpine"
"alpha.dagger.io/dagger/op"
)
// Generate a random string

View File

@ -10,6 +10,6 @@ var (
//go:embed **/*.cue **/*/*.cue
FS embed.FS
PackageName = "dagger.io"
PackageName = "alpha.dagger.io"
Path = path.Join("cue.mod", "pkg", PackageName)
)

View File

@ -4,8 +4,8 @@ package terraform
import (
"encoding/json"
"dagger.io/dagger"
"dagger.io/dagger/op"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
)
// Terraform configuration

View File

@ -4,6 +4,10 @@ setup() {
common_setup
}
@test "cue-sanity-check" {
dagger -e sanity-check up
}
@test "os" {
dagger -e os up

View File

@ -69,8 +69,8 @@ setup() {
ln -s "$TESTDIR"/cli/packages "$DAGGER_WORKSPACE"/plan
"$DAGGER" new "a" --module "$DAGGER_WORKSPACE"/plan --package dagger.io/test/a
"$DAGGER" new "b" --module "$DAGGER_WORKSPACE"/plan --package dagger.io/test/b
"$DAGGER" new "a" --module "$DAGGER_WORKSPACE"/plan --package alpha.dagger.io/test/a
"$DAGGER" new "b" --module "$DAGGER_WORKSPACE"/plan --package alpha.dagger.io/test/b
"$DAGGER" up -e "a"
"$DAGGER" up -e "b"

View File

@ -1,8 +1,8 @@
package testing
import (
"dagger.io/dagger/op"
"dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/dagger"
)
source: dagger.#Artifact

View File

@ -1,8 +1,8 @@
package testing
import (
"dagger.io/dagger/op"
"dagger.io/dagger"
"alpha.dagger.io/dagger/op"
"alpha.dagger.io/dagger"
)
source: dagger.#Artifact

View File

@ -1,8 +1,8 @@
package main
import (
"dagger.io/dagger"
"dagger.io/aws"
"alpha.dagger.io/dagger"
"alpha.dagger.io/aws"
)
awsConfig: aws.#Config & {

View File

@ -1,7 +1,7 @@
package main
import (
"dagger.io/dagger"
"alpha.dagger.io/dagger"
)
#A: {

View File

@ -1,6 +1,6 @@
package a
import "dagger.io/dagger/op"
import "alpha.dagger.io/dagger/op"
exp: {
string

View File

@ -1,6 +1,6 @@
package b
import "dagger.io/dagger/op"
import "alpha.dagger.io/dagger/op"
exp: {
string

Some files were not shown because too many files have changed in this diff Show More