dag

package
v0.11.8-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blob added in v0.9.7

func Blob(digest string, size int, mediaType string, uncompressed string) *dagger.Directory

Retrieves a content-addressed blob.

func BuiltinContainer added in v0.10.0

func BuiltinContainer(digest string) *dagger.Container

Retrieves a container builtin to the engine.

func CacheVolume

func CacheVolume(key string) *dagger.CacheVolume

Constructs a cache volume for a given cache key.

func CheckVersionCompatibility

func CheckVersionCompatibility(ctx context.Context, version string) (bool, error)

Checks if the current Dagger Engine is compatible with an SDK's required version.

func Close

func Close() error

Close the engine connection

func Container

func Container(opts ...dagger.ContainerOpts) *dagger.Container

Creates a scratch container.

Optional platform argument initializes new containers to execute and publish as that platform. Platform defaults to that of the builder's host.

func CurrentFunctionCall

func CurrentFunctionCall() *dagger.FunctionCall

The FunctionCall context that the SDK caller is currently executing in.

If the caller is not currently executing in a function, this will return an error.

func CurrentModule

func CurrentModule() *dagger.CurrentModule

The module currently being served in the session, if any.

func CurrentTypeDefs

func CurrentTypeDefs(ctx context.Context) ([]dagger.TypeDef, error)

The TypeDef representations of the objects currently being served in the session.

func DefaultPlatform

func DefaultPlatform(ctx context.Context) (dagger.Platform, error)

The default platform of the engine.

func Directory

func Directory(opts ...dagger.DirectoryOpts) *dagger.Directory

Creates an empty directory.

func File deprecated

func File(id dagger.FileID) *dagger.File

Deprecated: Use LoadFileFromID instead.

func Function

func Function(name string, returnType *dagger.TypeDef) *dagger.Function

Creates a function.

func GeneratedCode

func GeneratedCode(code *dagger.Directory) *dagger.GeneratedCode

Create a code generation result, given a directory containing the generated code.

func Git

func Git(url string, opts ...dagger.GitOpts) *dagger.GitRepository

Queries a Git repository.

func HTTP

func HTTP(url string, opts ...dagger.HTTPOpts) *dagger.File

Returns a file containing an http remote url content.

func Host

func Host() *dagger.Host

Queries the host environment.

func LoadCacheVolumeFromID

func LoadCacheVolumeFromID(id dagger.CacheVolumeID) *dagger.CacheVolume

Load a CacheVolume from its ID.

func LoadContainerFromID

func LoadContainerFromID(id dagger.ContainerID) *dagger.Container

Load a Container from its ID.

func LoadCurrentModuleFromID added in v0.9.8

func LoadCurrentModuleFromID(id dagger.CurrentModuleID) *dagger.CurrentModule

Load a CurrentModule from its ID.

func LoadDirectoryFromID

func LoadDirectoryFromID(id dagger.DirectoryID) *dagger.Directory

Load a Directory from its ID.

func LoadEnvVariableFromID added in v0.9.7

func LoadEnvVariableFromID(id dagger.EnvVariableID) *dagger.EnvVariable

Load a EnvVariable from its ID.

func LoadFieldTypeDefFromID added in v0.9.7

func LoadFieldTypeDefFromID(id dagger.FieldTypeDefID) *dagger.FieldTypeDef

Load a FieldTypeDef from its ID.

func LoadFileFromID

func LoadFileFromID(id dagger.FileID) *dagger.File

Load a File from its ID.

func LoadFunctionArgFromID

func LoadFunctionArgFromID(id dagger.FunctionArgID) *dagger.FunctionArg

Load a FunctionArg from its ID.

func LoadFunctionCallArgValueFromID added in v0.9.7

func LoadFunctionCallArgValueFromID(id dagger.FunctionCallArgValueID) *dagger.FunctionCallArgValue

Load a FunctionCallArgValue from its ID.

func LoadFunctionCallFromID added in v0.9.7

func LoadFunctionCallFromID(id dagger.FunctionCallID) *dagger.FunctionCall

Load a FunctionCall from its ID.

func LoadFunctionFromID

func LoadFunctionFromID(id dagger.FunctionID) *dagger.Function

Load a Function from its ID.

func LoadGeneratedCodeFromID

func LoadGeneratedCodeFromID(id dagger.GeneratedCodeID) *dagger.GeneratedCode

Load a GeneratedCode from its ID.

func LoadGitModuleSourceFromID added in v0.9.8

func LoadGitModuleSourceFromID(id dagger.GitModuleSourceID) *dagger.GitModuleSource

Load a GitModuleSource from its ID.

func LoadGitRefFromID

func LoadGitRefFromID(id dagger.GitRefID) *dagger.GitRef

Load a GitRef from its ID.

func LoadGitRepositoryFromID

func LoadGitRepositoryFromID(id dagger.GitRepositoryID) *dagger.GitRepository

Load a GitRepository from its ID.

func LoadHostFromID added in v0.9.7

func LoadHostFromID(id dagger.HostID) *dagger.Host

Load a Host from its ID.

func LoadInputTypeDefFromID added in v0.9.8

func LoadInputTypeDefFromID(id dagger.InputTypeDefID) *dagger.InputTypeDef

Load a InputTypeDef from its ID.

func LoadInterfaceTypeDefFromID added in v0.9.7

func LoadInterfaceTypeDefFromID(id dagger.InterfaceTypeDefID) *dagger.InterfaceTypeDef

Load a InterfaceTypeDef from its ID.

func LoadLabelFromID added in v0.9.7

func LoadLabelFromID(id dagger.LabelID) *dagger.Label

Load a Label from its ID.

func LoadListTypeDefFromID added in v0.9.7

func LoadListTypeDefFromID(id dagger.ListTypeDefID) *dagger.ListTypeDef

Load a ListTypeDef from its ID.

func LoadLocalModuleSourceFromID added in v0.9.8

func LoadLocalModuleSourceFromID(id dagger.LocalModuleSourceID) *dagger.LocalModuleSource

Load a LocalModuleSource from its ID.

func LoadModuleDependencyFromID added in v0.9.8

func LoadModuleDependencyFromID(id dagger.ModuleDependencyID) *dagger.ModuleDependency

Load a ModuleDependency from its ID.

func LoadModuleFromID

func LoadModuleFromID(id dagger.ModuleID) *dagger.Module

Load a Module from its ID.

func LoadModuleSourceFromID added in v0.9.8

func LoadModuleSourceFromID(id dagger.ModuleSourceID) *dagger.ModuleSource

Load a ModuleSource from its ID.

func LoadModuleSourceViewFromID added in v0.10.3

func LoadModuleSourceViewFromID(id dagger.ModuleSourceViewID) *dagger.ModuleSourceView

Load a ModuleSourceView from its ID.

func LoadObjectTypeDefFromID added in v0.9.7

func LoadObjectTypeDefFromID(id dagger.ObjectTypeDefID) *dagger.ObjectTypeDef

Load a ObjectTypeDef from its ID.

func LoadPortFromID added in v0.9.7

func LoadPortFromID(id dagger.PortID) *dagger.Port

Load a Port from its ID.

func LoadScalarTypeDefFromID added in v0.11.3

func LoadScalarTypeDefFromID(id dagger.ScalarTypeDefID) *dagger.ScalarTypeDef

Load a ScalarTypeDef from its ID.

func LoadSecretFromID

func LoadSecretFromID(id dagger.SecretID) *dagger.Secret

Load a Secret from its ID.

func LoadServiceFromID

func LoadServiceFromID(id dagger.ServiceID) *dagger.Service

Load a Service from its ID.

func LoadSocketFromID

func LoadSocketFromID(id dagger.SocketID) *dagger.Socket

Load a Socket from its ID.

func LoadTerminalFromID added in v0.9.8

func LoadTerminalFromID(id dagger.TerminalID) *dagger.Terminal

Load a Terminal from its ID.

func LoadTypeDefFromID

func LoadTypeDefFromID(id dagger.TypeDefID) *dagger.TypeDef

Load a TypeDef from its ID.

func Module

func Module() *dagger.Module

Create a new module.

func ModuleDependency added in v0.9.8

func ModuleDependency(source *dagger.ModuleSource, opts ...dagger.ModuleDependencyOpts) *dagger.ModuleDependency

Create a new module dependency configuration from a module source and name

func ModuleSource added in v0.9.8

func ModuleSource(refString string, opts ...dagger.ModuleSourceOpts) *dagger.ModuleSource

Create a new module source instance from a source ref string.

func Pipeline

func Pipeline(name string, opts ...dagger.PipelineOpts) *dagger.Client

Creates a named sub-pipeline.

func Secret

func Secret(name string, opts ...dagger.SecretOpts) *dagger.Secret

Reference a secret by name.

func SetSecret

func SetSecret(name string, plaintext string) *dagger.Secret

Sets a secret given a user defined name to its plaintext and returns the secret.

The plaintext value is limited to a size of 128000 bytes.

func Socket deprecated

func Socket(id dagger.SocketID) *dagger.Socket

Loads a socket by its ID.

Deprecated: Use LoadSocketFromID instead.

func TypeDef

func TypeDef() *dagger.TypeDef

Create a new TypeDef.

func Version added in v0.11.2

func Version(ctx context.Context) (string, error)

Get the current Dagger Engine version.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL