Move core actions to a subpackage
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package dagger
|
||||
package core
|
||||
|
||||
// Execute a command in a container
|
||||
#Exec: {
|
@@ -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
|
@@ -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"
|
@@ -1,4 +1,4 @@
|
||||
package dagger
|
||||
package core
|
||||
|
||||
// HTTP operations
|
||||
|
@@ -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"
|
@@ -1,4 +1,4 @@
|
||||
package dagger
|
||||
package core
|
||||
|
||||
// A core action that does nothing
|
||||
// Useful to work around bugs in the DAG resolver.
|
@@ -1,4 +1,4 @@
|
||||
package dagger
|
||||
package core
|
||||
|
||||
// A special kind of program which `dagger` can execute.
|
||||
#Plan: {
|
@@ -1,4 +1,4 @@
|
||||
package dagger
|
||||
package core
|
||||
|
||||
// Decode the contents of a secrets without leaking it.
|
||||
// Supported formats: json, yaml
|
@@ -1,4 +1,4 @@
|
||||
package dagger
|
||||
package core
|
||||
|
||||
// A reference to a filesystem tree.
|
||||
// For example:
|
26
pkg/dagger.io/dagger/dagger.cue
Normal file
26
pkg/dagger.io/dagger/dagger.cue
Normal 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
|
Reference in New Issue
Block a user