Documentation
¶
Index ¶
- Constants
- Variables
- func BuildLegacyAsModuleArgs(nameOverride string, legacyDefaultPath bool, ...) ([]dagql.NamedInput, error)
- func IsRemotePublic(ctx context.Context, remote *gitutil.GitURL) (bool, error)
- func SchemaIntrospectionJSON(ctx context.Context, dag *dagql.Server) (json.RawMessage, error)
- func Syncer[T dagql.Typed]() dagql.Field[T]
- type AfterVersion
- type BeforeVersion
- type ChangesetMergeConflict
- type ChangesetsMergeConflict
- type CoreMod
- func (m *CoreMod) ForkSchema(ctx context.Context, root *core.Query, view call.View) (*dagql.Server, error)
- func (m *CoreMod) GetSource() *core.ModuleSource
- func (m *CoreMod) Install(ctx context.Context, dag *dagql.Server, _ ...core.InstallOpts) error
- func (m *CoreMod) ModTypeFor(ctx context.Context, typeDef *core.TypeDef, checkDirectDeps bool) (core.ModType, bool, error)
- func (m *CoreMod) ModuleResult() dagql.ObjectResult[*core.Module]
- func (m *CoreMod) Name() string
- func (m *CoreMod) ResultCallModule(context.Context) (*dagql.ResultCallModule, error)
- func (m *CoreMod) Same(other core.Mod) (bool, error)
- func (m *CoreMod) TypeDefs(ctx context.Context, dag *dagql.Server) (dagql.ObjectResultArray[*core.TypeDef], error)
- func (m *CoreMod) View() (call.View, bool)
- func (m *CoreMod) WithView(view call.View) *CoreMod
- type CoreModEnum
- func (enum *CoreModEnum) CollectContent(ctx context.Context, value dagql.AnyResult, content *core.CollectedContent) error
- func (enum *CoreModEnum) ConvertFromSDKResult(ctx context.Context, value any) (dagql.AnyResult, error)
- func (enum *CoreModEnum) ConvertToSDKInput(ctx context.Context, value dagql.Typed) (any, error)
- func (enum *CoreModEnum) SourceMod() core.Mod
- func (enum *CoreModEnum) TypeDef(ctx context.Context) (dagql.ObjectResult[*core.TypeDef], error)
- type CoreModObject
- func (obj *CoreModObject) CollectContent(ctx context.Context, value dagql.AnyResult, content *core.CollectedContent) error
- func (obj *CoreModObject) ConvertFromSDKResult(ctx context.Context, value any) (dagql.AnyResult, error)
- func (obj *CoreModObject) ConvertToSDKInput(ctx context.Context, value dagql.Typed) (any, error)
- func (obj *CoreModObject) SourceMod() core.Mod
- func (obj *CoreModObject) TypeDef(ctx context.Context) (dagql.ObjectResult[*core.TypeDef], error)
- type CoreModScalar
- func (obj *CoreModScalar) CollectContent(ctx context.Context, value dagql.AnyResult, content *core.CollectedContent) error
- func (obj *CoreModScalar) ConvertFromSDKResult(ctx context.Context, value any) (dagql.AnyResult, error)
- func (obj *CoreModScalar) ConvertToSDKInput(ctx context.Context, value dagql.Typed) (any, error)
- func (obj *CoreModScalar) SourceMod() core.Mod
- func (obj *CoreModScalar) TypeDef(ctx context.Context) (dagql.ObjectResult[*core.TypeDef], error)
- type CoreSchemaBase
- type ErrSDKClientGeneratorNotImplemented
- type ErrSDKCodegenNotImplemented
- type ErrSDKRuntimeNotImplemented
- type FilterArgs
- type HealthcheckConfig
- type HostDirCacheConfig
- type Label
- type PipelineLabel
- type SchemaResolvers
- type UpArgs
- type WithDirectoryArgs
- type WithDirectoryDockerfileCompatArgs
- type WithFileArgs
- type WithFilesArgs
- type WithHealthcheckArgs
- type WithNewFileArgs
Constants ¶
const InstrumentationLibrary = "dagger.io/engine.schema"
Variables ¶
var ( FailEarlyOnMergeConflict = ChangesetMergeConflictEnum.RegisterView("FAIL_EARLY", AfterVersion("v0.15.0"), `Fail before attempting merge if file-level conflicts are detected`) FailOnMergeConflict = ChangesetMergeConflictEnum.RegisterView("FAIL", AfterVersion("v0.15.0"), `Attempt the merge and fail if git merge fails due to conflicts`) LeaveConflictMarkersOnMergeConflict = ChangesetMergeConflictEnum.Register("LEAVE_CONFLICT_MARKERS", `Let git create conflict markers in files. For modify/delete conflicts, keeps the modified version. Fails on binary conflicts.`) PreferOursOnMergeConflict = ChangesetMergeConflictEnum.Register("PREFER_OURS", `The conflict is resolved by applying the version of the calling changeset`) PreferTheirsOnMergeConflict = ChangesetMergeConflictEnum.Register("PREFER_THEIRS", `The conflict is resolved by applying the version of the other changeset`) )
var ( FailEarlyOnMergeConflicts = ChangesetsMergeConflictEnum.Register("FAIL_EARLY", `Fail before attempting merge if file-level conflicts are detected between any changesets`) FailOnMergeConflicts = ChangesetsMergeConflictEnum.Register("FAIL", `Attempt the octopus merge and fail if git merge fails due to conflicts`) )
var AllVersion = core.AllVersion
var ChangesetMergeConflictEnum = dagql.NewEnum[ChangesetMergeConflict]()
var ChangesetsMergeConflictEnum = dagql.NewEnum[ChangesetsMergeConflict]()
Functions ¶
func BuildLegacyAsModuleArgs ¶ added in v0.21.0
func BuildLegacyAsModuleArgs( nameOverride string, legacyDefaultPath bool, defaultPathContextSourceRef string, defaultPathContextSourcePin string, configDefaults map[string]any, defaultsFromDotEnv bool, argCustomizations []*modules.ModuleConfigArgument, ) ([]dagql.NamedInput, error)
load the given module source's dependencies as modules BuildLegacyAsModuleArgs is the single builder for the asModule args salted into AsModuleVariantDigest, so every load path yields one module identity.
func IsRemotePublic ¶ added in v0.19.0
func SchemaIntrospectionJSON ¶ added in v0.11.7
Types ¶
type AfterVersion ¶ added in v0.12.0
type AfterVersion = core.AfterVersion
type BeforeVersion ¶ added in v0.12.0
type BeforeVersion = core.BeforeVersion
type ChangesetMergeConflict ¶ added in v0.19.11
type ChangesetMergeConflict string
func (ChangesetMergeConflict) Decoder ¶ added in v0.19.11
func (proto ChangesetMergeConflict) Decoder() dagql.InputDecoder
func (ChangesetMergeConflict) ToLiteral ¶ added in v0.19.11
func (proto ChangesetMergeConflict) ToLiteral() call.Literal
func (ChangesetMergeConflict) Type ¶ added in v0.19.11
func (proto ChangesetMergeConflict) Type() *ast.Type
func (ChangesetMergeConflict) TypeDescription ¶ added in v0.19.11
func (proto ChangesetMergeConflict) TypeDescription() string
type ChangesetsMergeConflict ¶ added in v0.19.11
type ChangesetsMergeConflict string
ChangesetsMergeConflict is the enum for octopus merge conflict strategies (WithChangesets). Only FAIL_EARLY and FAIL are supported (no -X ours/theirs with octopus merge).
func (ChangesetsMergeConflict) Decoder ¶ added in v0.19.11
func (proto ChangesetsMergeConflict) Decoder() dagql.InputDecoder
func (ChangesetsMergeConflict) ToLiteral ¶ added in v0.19.11
func (proto ChangesetsMergeConflict) ToLiteral() call.Literal
func (ChangesetsMergeConflict) Type ¶ added in v0.19.11
func (proto ChangesetsMergeConflict) Type() *ast.Type
func (ChangesetsMergeConflict) TypeDescription ¶ added in v0.19.11
func (proto ChangesetsMergeConflict) TypeDescription() string
type CoreMod ¶ added in v0.9.4
type CoreMod struct {
// contains filtered or unexported fields
}
func (*CoreMod) ForkSchema ¶ added in v0.21.0
func (*CoreMod) GetSource ¶ added in v0.18.3
func (m *CoreMod) GetSource() *core.ModuleSource
GetSource returns an empty module source
func (*CoreMod) ModTypeFor ¶ added in v0.9.4
func (*CoreMod) ModuleResult ¶ added in v0.21.0
func (m *CoreMod) ModuleResult() dagql.ObjectResult[*core.Module]
func (*CoreMod) ResultCallModule ¶ added in v0.21.0
type CoreModEnum ¶ added in v0.12.0
type CoreModEnum struct {
// contains filtered or unexported fields
}
func (*CoreModEnum) CollectContent ¶ added in v0.20.0
func (enum *CoreModEnum) CollectContent(ctx context.Context, value dagql.AnyResult, content *core.CollectedContent) error
func (*CoreModEnum) ConvertFromSDKResult ¶ added in v0.12.0
func (*CoreModEnum) ConvertToSDKInput ¶ added in v0.12.0
func (*CoreModEnum) SourceMod ¶ added in v0.12.0
func (enum *CoreModEnum) SourceMod() core.Mod
func (*CoreModEnum) TypeDef ¶ added in v0.12.0
func (enum *CoreModEnum) TypeDef(ctx context.Context) (dagql.ObjectResult[*core.TypeDef], error)
type CoreModObject ¶ added in v0.9.4
type CoreModObject struct {
// contains filtered or unexported fields
}
CoreModObject represents objects from core (Container, Directory, etc.)
func (*CoreModObject) CollectContent ¶ added in v0.20.0
func (obj *CoreModObject) CollectContent(ctx context.Context, value dagql.AnyResult, content *core.CollectedContent) error
func (*CoreModObject) ConvertFromSDKResult ¶ added in v0.9.4
func (*CoreModObject) ConvertToSDKInput ¶ added in v0.9.4
func (*CoreModObject) SourceMod ¶ added in v0.9.4
func (obj *CoreModObject) SourceMod() core.Mod
func (*CoreModObject) TypeDef ¶ added in v0.9.6
func (obj *CoreModObject) TypeDef(ctx context.Context) (dagql.ObjectResult[*core.TypeDef], error)
type CoreModScalar ¶ added in v0.11.3
type CoreModScalar struct {
// contains filtered or unexported fields
}
CoreModScalar represents scalars from core (Platform, etc)
func (*CoreModScalar) CollectContent ¶ added in v0.20.0
func (obj *CoreModScalar) CollectContent(ctx context.Context, value dagql.AnyResult, content *core.CollectedContent) error
func (*CoreModScalar) ConvertFromSDKResult ¶ added in v0.11.3
func (*CoreModScalar) ConvertToSDKInput ¶ added in v0.11.3
func (*CoreModScalar) SourceMod ¶ added in v0.11.3
func (obj *CoreModScalar) SourceMod() core.Mod
func (*CoreModScalar) TypeDef ¶ added in v0.11.3
func (obj *CoreModScalar) TypeDef(ctx context.Context) (dagql.ObjectResult[*core.TypeDef], error)
type CoreSchemaBase ¶ added in v0.21.0
type CoreSchemaBase struct {
// contains filtered or unexported fields
}
CoreMod is a special implementation of Mod for our core API, which is not *technically* a true module yet but can be treated as one in terms of dependencies. It has no dependencies itself and is currently an implicit dependency of every user module.
func NewCoreSchemaBase ¶ added in v0.21.0
type ErrSDKClientGeneratorNotImplemented ¶ added in v0.18.10
type ErrSDKClientGeneratorNotImplemented struct {
SDK string
}
func (ErrSDKClientGeneratorNotImplemented) Error ¶ added in v0.18.10
func (err ErrSDKClientGeneratorNotImplemented) Error() string
type ErrSDKCodegenNotImplemented ¶ added in v0.18.10
type ErrSDKCodegenNotImplemented struct {
SDK string
}
func (ErrSDKCodegenNotImplemented) Error ¶ added in v0.18.10
func (err ErrSDKCodegenNotImplemented) Error() string
type ErrSDKRuntimeNotImplemented ¶ added in v0.18.10
type ErrSDKRuntimeNotImplemented struct {
SDK string
}
func (ErrSDKRuntimeNotImplemented) Error ¶ added in v0.18.10
func (err ErrSDKRuntimeNotImplemented) Error() string
type FilterArgs ¶ added in v0.17.2
type FilterArgs struct {
core.CopyFilter
}
type HealthcheckConfig ¶ added in v0.20.1
type HealthcheckConfig struct {
Args []string `field:"true" doc:"Healthcheck command arguments."`
Shell bool `field:"true" doc:"Healthcheck command is a shell command."`
Timeout string `field:"true" doc:"Healthcheck timeout. Example:3s"`
Interval string `field:"true" doc:"Interval between running healthcheck. Example:30s"`
StartPeriod string `` /* 150-byte string literal not displayed */
StartInterval string `field:"true" doc:"StartInterval configures the duration between checks during the startup phase. Example:5s"`
Retries int `field:"true" doc:"The maximum number of consecutive failures before the container is marked as unhealthy. Example:3"`
}
func (HealthcheckConfig) Type ¶ added in v0.20.1
func (HealthcheckConfig) Type() *ast.Type
func (HealthcheckConfig) TypeDescription ¶ added in v0.20.1
func (HealthcheckConfig) TypeDescription() string
type HostDirCacheConfig ¶ added in v0.18.9
type HostDirCacheConfig struct {
NoCache bool `default:"false"`
}
type Label ¶ added in v0.3.10
type Label struct {
Name string `field:"true" doc:"The label name."`
Value string `field:"true" doc:"The label value."`
}
func (Label) TypeDescription ¶ added in v0.9.7
type PipelineLabel ¶ added in v0.11.0
type PipelineLabel struct {
Name string `field:"true" doc:"Label name."`
Value string `field:"true" doc:"Label value."`
}
PipelineLabel is deprecated and has no effect.
func (PipelineLabel) TypeDescription ¶ added in v0.11.0
func (PipelineLabel) TypeDescription() string
func (PipelineLabel) TypeName ¶ added in v0.11.0
func (PipelineLabel) TypeName() string
type SchemaResolvers ¶ added in v0.9.4
type UpArgs ¶ added in v0.15.2
type UpArgs struct {
Ports []dagql.InputObject[core.PortForward] `default:"[]"`
Random bool `default:"false"`
}
type WithDirectoryArgs ¶ added in v0.9.7
type WithDirectoryArgs struct {
Path string
Owner string `default:""`
Permissions dagql.Optional[dagql.Int]
Source core.DirectoryID
Directory core.DirectoryID // legacy, use Source instead
core.CopyFilter
}
type WithDirectoryDockerfileCompatArgs ¶ added in v0.21.0
type WithDirectoryDockerfileCompatArgs struct {
Path string
Owner string `default:""`
Permissions dagql.Optional[dagql.Int]
SrcPath string `internal:"true" default:""`
FollowSymlink bool `internal:"true" default:"false"`
DirCopyContents bool `internal:"true" default:"false"`
AttemptUnpackDockerCompatibility bool `internal:"true" default:"false"`
CreateDestPath bool `internal:"true" default:"false"`
AllowWildcard bool `internal:"true" default:"false"`
AllowEmptyWildcard bool `internal:"true" default:"false"`
AlwaysReplaceExistingDestPaths bool `internal:"true" default:"false"`
Source core.DirectoryID
core.CopyFilter
}
type WithFileArgs ¶ added in v0.9.7
type WithFileArgs struct {
Path string
Source core.FileID
Permissions dagql.Optional[dagql.Int]
Owner string `default:""`
// Hidden internal arg used for LLB fidelity; default preserves existing behavior.
DoNotCreateDestPath bool `internal:"true" default:"false"`
// Hidden internal arg used for LLB fidelity; when set, copy behavior matches
// BuildKit ADD archive auto-unpack compatibility semantics.
AttemptUnpackDockerCompatibility bool `internal:"true" default:"false"`
}
type WithFilesArgs ¶ added in v0.9.10
type WithHealthcheckArgs ¶ added in v0.20.1
type WithNewFileArgs ¶ added in v0.18.13
Source Files
¶
- address.go
- cache.go
- checks.go
- cloud.go
- container.go
- coremod.go
- deprecations.go
- directory.go
- engine.go
- env.go
- envfile.go
- error.go
- file.go
- generators.go
- git.go
- host.go
- http.go
- jsonvalue.go
- llm.go
- lockfile.go
- module.go
- module_typedef_canonical.go
- modulesource.go
- platform.go
- query.go
- secret.go
- service.go
- socket.go
- up.go
- util.go
- workspace.go