Move core actions to a subpackage

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia
2022-03-26 14:09:21 -01:00
parent 9f042800da
commit b3bdd347e7
121 changed files with 469 additions and 340 deletions

View File

@@ -1,4 +1,4 @@
package dagger
package core
// Execute a command in a container
#Exec: {

View File

@@ -1,4 +1,4 @@
package dagger
package core
// Access the source directory for the current CUE package
// This may safely be called from any package

View File

@@ -1,4 +1,4 @@
package dagger
package core
// Push a directory to a git remote
#GitPush: {
@@ -11,7 +11,7 @@ package dagger
}
// Pull a directory from a git remote
// Warning: do NOT embed credentials in the remote url as this will expose them in logs.
// Warning: do NOT embed credentials in the remote url as this will expose them in logs.
// By using username and password Dagger will handle this for you in a secure manner.
#GitPull: {
$dagger: task: _name: "GitPull"

View File

@@ -1,4 +1,4 @@
package dagger
package core
// HTTP operations

View File

@@ -1,31 +1,6 @@
package dagger
package core
import (
"list"
)
// Upload a container image to a remote repository
#Push: {
$dagger: task: _name: "Push"
// Target repository address
dest: #Ref
// Filesystem contents to push
input: #FS
// Container image config
config: #ImageConfig
// Authentication
auth?: {
username: string
secret: #Secret
}
// Complete ref of the pushed image, including digest
result: #Ref
}
import "list"
// A ref is an address for a remote container image
//
@@ -62,6 +37,29 @@ import (
retries?: int
}
// Upload a container image to a remote repository
#Push: {
$dagger: task: _name: "Push"
// Target repository address
dest: #Ref
// Filesystem contents to push
input: #FS
// Container image config
config: #ImageConfig
// Authentication
auth?: {
username: string
secret: #Secret
}
// Complete ref of the pushed image, including digest
result: #Ref
}
// Download a container image from a remote repository
#Pull: {
$dagger: task: _name: "Pull"

View File

@@ -1,4 +1,4 @@
package dagger
package core
// A core action that does nothing
// Useful to work around bugs in the DAG resolver.

View File

@@ -1,4 +1,4 @@
package dagger
package core
// A special kind of program which `dagger` can execute.
#Plan: {

View File

@@ -1,4 +1,4 @@
package dagger
package core
// Decode the contents of a secrets without leaking it.
// Supported formats: json, yaml

View File

@@ -1,4 +1,4 @@
package dagger
package core
// A reference to a filesystem tree.
// For example:

View File

@@ -0,0 +1,26 @@
package dagger
import "dagger.io/dagger/core"
#Plan: core.#Plan
// Types
#FS: core.#FS
#Scratch: core.#Scratch
#Secret: core.#Secret
#Service: core.#Service
#Address: core.#Address
// Image
#Ref: core.#Ref
#ImageConfig: core.#ImageConfig
#HealthCheck: core.#HealthCheck
// Mounts
#CacheDir: core.#CacheDir
#TempDir: core.#TempDir