Documentation
¶
Index ¶
- Variables
- func Load[T Loadable[T]](ctx context.Context, c *Client, id ID) (T, error)
- func Ref[T Loadable[T]](c *Client, id ID) T
- func Tracer() trace.Tracer
- type Address
- func (r *Address) AsNode() Node
- func (r *Address) Container() *Container
- func (r *Address) Directory(opts ...AddressDirectoryOpts) *Directory
- func (r *Address) File(opts ...AddressFileOpts) *File
- func (r *Address) GitRef() *GitRef
- func (r *Address) GitRepository() *GitRepository
- func (r *Address) ID(ctx context.Context) (ID, error)
- func (r *Address) MarshalJSON() ([]byte, error)
- func (r *Address) Secret() *Secret
- func (r *Address) Service() *Service
- func (r *Address) Socket() *Socket
- func (r *Address) Value(ctx context.Context) (string, error)
- func (r *Address) WithGraphQLQuery(q *querybuilder.Selection) *Address
- func (r *Address) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Address) XXX_GraphQLIDType() string
- func (r *Address) XXX_GraphQLType() string
- type AddressDirectoryOpts
- type AddressFileOpts
- type AddressID
- type Arch
- func (r *Arch) AsNode() Node
- func (r *Arch) Gnu(ctx context.Context) (string, error)
- func (r *Arch) ID(ctx context.Context) (ID, error)
- func (r *Arch) MarshalJSON() ([]byte, error)
- func (r *Arch) Microsoft(ctx context.Context) (string, error)
- func (r *Arch) Oci(ctx context.Context) (string, error)
- func (r *Arch) WithGraphQLQuery(q *querybuilder.Selection) *Arch
- func (r *Arch) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Arch) XXX_GraphQLIDType() string
- func (r *Arch) XXX_GraphQLType() string
- type ArchID
- type Archive
- func (r *Archive) AsNode() Node
- func (r *Archive) ID(ctx context.Context) (ID, error)
- func (r *Archive) MarshalJSON() ([]byte, error)
- func (r *Archive) Tar(directory *Directory, opts ...ArchiveTarOpts) *File
- func (r *Archive) Untar(file *File) *Directory
- func (r *Archive) WithGraphQLQuery(q *querybuilder.Selection) *Archive
- func (r *Archive) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Archive) XXX_GraphQLIDType() string
- func (r *Archive) XXX_GraphQLType() string
- func (r *Archive) Zip(directory *Directory) *File
- type ArchiveID
- type ArchiveOpts
- type ArchiveTarOpts
- type BinaryOpts
- type Binding
- func (r *Binding) AsAddress() *Address
- func (r *Binding) AsArch() *Arch
- func (r *Binding) AsArchive() *Archive
- func (r *Binding) AsCacheVolume() *CacheVolume
- func (r *Binding) AsChangeset() *Changeset
- func (r *Binding) AsCheck() *Check
- func (r *Binding) AsCheckGroup() *CheckGroup
- func (r *Binding) AsCloud() *Cloud
- func (r *Binding) AsContainer() *Container
- func (r *Binding) AsDiffStat() *DiffStat
- func (r *Binding) AsDirectory() *Directory
- func (r *Binding) AsEnv() *Env
- func (r *Binding) AsEnvFile() *EnvFile
- func (r *Binding) AsFile() *File
- func (r *Binding) AsGenerator() *Generator
- func (r *Binding) AsGeneratorGroup() *GeneratorGroup
- func (r *Binding) AsGitRef() *GitRef
- func (r *Binding) AsGitRepository() *GitRepository
- func (r *Binding) AsGo() *Go
- func (r *Binding) AsHTTPState() *HTTPState
- func (r *Binding) AsJSONValue() *JSONValue
- func (r *Binding) AsMise() *Mise
- func (r *Binding) AsModule() *Module
- func (r *Binding) AsModuleConfigClient() *ModuleConfigClient
- func (r *Binding) AsModuleSource() *ModuleSource
- func (r *Binding) AsNode() Node
- func (r *Binding) AsSearchResult() *SearchResult
- func (r *Binding) AsSearchSubmatch() *SearchSubmatch
- func (r *Binding) AsSecret() *Secret
- func (r *Binding) AsService() *Service
- func (r *Binding) AsSindri() *Sindri
- func (r *Binding) AsSindriDev() *SindriDev
- func (r *Binding) AsSocket() *Socket
- func (r *Binding) AsStat() *Stat
- func (r *Binding) AsString(ctx context.Context) (string, error)
- func (r *Binding) AsUp() *Up
- func (r *Binding) AsUpGroup() *UpGroup
- func (r *Binding) AsWolfi() *Wolfi
- func (r *Binding) AsWorkspace() *Workspace
- func (r *Binding) Digest(ctx context.Context) (string, error)
- func (r *Binding) ID(ctx context.Context) (ID, error)
- func (r *Binding) IsNull(ctx context.Context) (bool, error)
- func (r *Binding) MarshalJSON() ([]byte, error)
- func (r *Binding) Name(ctx context.Context) (string, error)
- func (r *Binding) TypeName(ctx context.Context) (string, error)
- func (r *Binding) WithGraphQLQuery(q *querybuilder.Selection) *Binding
- func (r *Binding) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Binding) XXX_GraphQLIDType() string
- func (r *Binding) XXX_GraphQLType() string
- type BindingID
- type BuildArg
- type CacheSharingMode
- type CacheVolume
- func (r *CacheVolume) AsNode() Node
- func (r *CacheVolume) ID(ctx context.Context) (ID, error)
- func (r *CacheVolume) MarshalJSON() ([]byte, error)
- func (r *CacheVolume) WithGraphQLQuery(q *querybuilder.Selection) *CacheVolume
- func (r *CacheVolume) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *CacheVolume) XXX_GraphQLIDType() string
- func (r *CacheVolume) XXX_GraphQLType() string
- type CacheVolumeID
- type CacheVolumeOpts
- type Changeset
- func (r *Changeset) AddedPaths(ctx context.Context) ([]string, error)
- func (r *Changeset) After() *Directory
- func (r *Changeset) AsExportable() Exportable
- func (r *Changeset) AsNode() Node
- func (r *Changeset) AsPatch() *File
- func (r *Changeset) AsSyncer() Syncer
- func (r *Changeset) Before() *Directory
- func (r *Changeset) DiffStats(ctx context.Context) ([]DiffStat, error)
- func (r *Changeset) Export(ctx context.Context, path string) (string, error)
- func (r *Changeset) ID(ctx context.Context) (ID, error)
- func (r *Changeset) IsEmpty(ctx context.Context) (bool, error)
- func (r *Changeset) Layer() *Directory
- func (r *Changeset) MarshalJSON() ([]byte, error)
- func (r *Changeset) ModifiedPaths(ctx context.Context) ([]string, error)
- func (r *Changeset) RemovedPaths(ctx context.Context) ([]string, error)
- func (r *Changeset) Sync(ctx context.Context) (*Changeset, error)
- func (r *Changeset) With(f WithChangesetFunc) *Changeset
- func (r *Changeset) WithChangeset(changes *Changeset, opts ...ChangesetWithChangesetOpts) *Changeset
- func (r *Changeset) WithChangesets(changes []*Changeset, opts ...ChangesetWithChangesetsOpts) *Changeset
- func (r *Changeset) WithGraphQLQuery(q *querybuilder.Selection) *Changeset
- func (r *Changeset) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Changeset) XXX_GraphQLIDType() string
- func (r *Changeset) XXX_GraphQLType() string
- type ChangesetID
- type ChangesetMergeConflict
- type ChangesetWithChangesetOpts
- type ChangesetWithChangesetsOpts
- type ChangesetsMergeConflict
- type Check
- func (r *Check) AsNode() Node
- func (r *Check) CheckType(ctx context.Context) (string, error)
- func (r *Check) Completed(ctx context.Context) (bool, error)
- func (r *Check) Description(ctx context.Context) (string, error)
- func (r *Check) Error() *Error
- func (r *Check) ID(ctx context.Context) (ID, error)
- func (r *Check) MarshalJSON() ([]byte, error)
- func (r *Check) Name(ctx context.Context) (string, error)
- func (r *Check) OriginalModule() *Module
- func (r *Check) Passed(ctx context.Context) (bool, error)
- func (r *Check) Path(ctx context.Context) ([]string, error)
- func (r *Check) ResultEmoji(ctx context.Context) (string, error)
- func (r *Check) Run() *Check
- func (r *Check) With(f WithCheckFunc) *Check
- func (r *Check) WithGraphQLQuery(q *querybuilder.Selection) *Check
- func (r *Check) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Check) XXX_GraphQLIDType() string
- func (r *Check) XXX_GraphQLType() string
- type CheckGroup
- func (r *CheckGroup) AsNode() Node
- func (r *CheckGroup) ID(ctx context.Context) (ID, error)
- func (r *CheckGroup) List(ctx context.Context) ([]Check, error)
- func (r *CheckGroup) MarshalJSON() ([]byte, error)
- func (r *CheckGroup) Report() *File
- func (r *CheckGroup) Run(opts ...CheckGroupRunOpts) *CheckGroup
- func (r *CheckGroup) With(f WithCheckGroupFunc) *CheckGroup
- func (r *CheckGroup) WithGraphQLQuery(q *querybuilder.Selection) *CheckGroup
- func (r *CheckGroup) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *CheckGroup) XXX_GraphQLIDType() string
- func (r *CheckGroup) XXX_GraphQLType() string
- type CheckGroupID
- type CheckGroupRunOpts
- type CheckID
- type Client
- type ClientFilesyncMirror
- func (r *ClientFilesyncMirror) AsNode() Node
- func (r *ClientFilesyncMirror) ID(ctx context.Context) (ID, error)
- func (r *ClientFilesyncMirror) MarshalJSON() ([]byte, error)
- func (r *ClientFilesyncMirror) WithGraphQLQuery(q *querybuilder.Selection) *ClientFilesyncMirror
- func (r *ClientFilesyncMirror) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *ClientFilesyncMirror) XXX_GraphQLIDType() string
- func (r *ClientFilesyncMirror) XXX_GraphQLType() string
- type ClientFilesyncMirrorID
- type ClientOpt
- type Cloud
- func (r *Cloud) AsNode() Node
- func (r *Cloud) ID(ctx context.Context) (ID, error)
- func (r *Cloud) MarshalJSON() ([]byte, error)
- func (r *Cloud) TraceURL(ctx context.Context) (string, error)
- func (r *Cloud) WithGraphQLQuery(q *querybuilder.Selection) *Cloud
- func (r *Cloud) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Cloud) XXX_GraphQLIDType() string
- func (r *Cloud) XXX_GraphQLType() string
- type CloudID
- type Container
- func (r *Container) AsExportable() Exportable
- func (r *Container) AsNode() Node
- func (r *Container) AsService(opts ...ContainerAsServiceOpts) *Service
- func (r *Container) AsSyncer() Syncer
- func (r *Container) AsTarball(opts ...ContainerAsTarballOpts) *File
- func (r *Container) CombinedOutput(ctx context.Context) (string, error)
- func (r *Container) DefaultArgs(ctx context.Context) ([]string, error)
- func (r *Container) Directory(path string, opts ...ContainerDirectoryOpts) *Directory
- func (r *Container) DockerHealthcheck() *HealthcheckConfig
- func (r *Container) Entrypoint(ctx context.Context) ([]string, error)
- func (r *Container) EnvVariable(ctx context.Context, name string) (string, error)
- func (r *Container) EnvVariables(ctx context.Context) ([]EnvVariable, error)
- func (r *Container) Exists(ctx context.Context, path string, opts ...ContainerExistsOpts) (bool, error)
- func (r *Container) ExitCode(ctx context.Context) (int, error)
- func (r *Container) ExperimentalWithAllGPUs() *Container
- func (r *Container) ExperimentalWithGPU(devices []string) *Container
- func (r *Container) Export(ctx context.Context, path string, opts ...ContainerExportOpts) (string, error)
- func (r *Container) ExportImage(ctx context.Context, name string, opts ...ContainerExportImageOpts) error
- func (r *Container) ExposedPorts(ctx context.Context) ([]Port, error)
- func (r *Container) File(path string, opts ...ContainerFileOpts) *File
- func (r *Container) From(address string, opts ...ContainerFromOpts) *Container
- func (r *Container) ID(ctx context.Context) (ID, error)
- func (r *Container) ImageRef(ctx context.Context) (string, error)
- func (r *Container) Import(source *File, opts ...ContainerImportOpts) *Container
- func (r *Container) Label(ctx context.Context, name string) (string, error)
- func (r *Container) Labels(ctx context.Context) ([]Label, error)
- func (r *Container) MarshalJSON() ([]byte, error)
- func (r *Container) Mounts(ctx context.Context) ([]string, error)
- func (r *Container) Platform(ctx context.Context) (Platform, error)
- func (r *Container) Publish(ctx context.Context, address string, opts ...ContainerPublishOpts) (string, error)
- func (r *Container) Rootfs() *Directory
- func (r *Container) Stat(path string, opts ...ContainerStatOpts) *Stat
- func (r *Container) Stderr(ctx context.Context) (string, error)
- func (r *Container) Stdout(ctx context.Context) (string, error)
- func (r *Container) Sync(ctx context.Context) (*Container, error)
- func (r *Container) Terminal(opts ...ContainerTerminalOpts) *Container
- func (r *Container) Up(ctx context.Context, opts ...ContainerUpOpts) error
- func (r *Container) User(ctx context.Context) (string, error)
- func (r *Container) With(f WithContainerFunc) *Container
- func (r *Container) WithAnnotation(name string, value string) *Container
- func (r *Container) WithDefaultArgs(args []string) *Container
- func (r *Container) WithDefaultTerminalCmd(args []string, opts ...ContainerWithDefaultTerminalCmdOpts) *Container
- func (r *Container) WithDirectory(path string, source *Directory, opts ...ContainerWithDirectoryOpts) *Container
- func (r *Container) WithDockerHealthcheck(args []string, opts ...ContainerWithDockerHealthcheckOpts) *Container
- func (r *Container) WithEntrypoint(args []string, opts ...ContainerWithEntrypointOpts) *Container
- func (r *Container) WithEnvFileVariables(source *EnvFile) *Container
- func (r *Container) WithEnvVariable(name string, value string, opts ...ContainerWithEnvVariableOpts) *Container
- func (r *Container) WithError(err string) *Container
- func (r *Container) WithExec(args []string, opts ...ContainerWithExecOpts) *Container
- func (r *Container) WithExposedPort(port int, opts ...ContainerWithExposedPortOpts) *Container
- func (r *Container) WithFile(path string, source *File, opts ...ContainerWithFileOpts) *Container
- func (r *Container) WithFiles(path string, sources []*File, opts ...ContainerWithFilesOpts) *Container
- func (r *Container) WithGraphQLQuery(q *querybuilder.Selection) *Container
- func (r *Container) WithLabel(name string, value string) *Container
- func (r *Container) WithMountedCache(path string, cache *CacheVolume, opts ...ContainerWithMountedCacheOpts) *Container
- func (r *Container) WithMountedDirectory(path string, source *Directory, opts ...ContainerWithMountedDirectoryOpts) *Container
- func (r *Container) WithMountedFile(path string, source *File, opts ...ContainerWithMountedFileOpts) *Container
- func (r *Container) WithMountedSecret(path string, source *Secret, opts ...ContainerWithMountedSecretOpts) *Container
- func (r *Container) WithMountedTemp(path string, opts ...ContainerWithMountedTempOpts) *Container
- func (r *Container) WithNewFile(path string, contents string, opts ...ContainerWithNewFileOpts) *Container
- func (r *Container) WithRegistryAuth(address string, username string, secret *Secret) *Container
- func (r *Container) WithRootfs(directory *Directory) *Container
- func (r *Container) WithSecretVariable(name string, secret *Secret) *Container
- func (r *Container) WithServiceBinding(alias string, service *Service) *Container
- func (r *Container) WithSymlink(target string, linkName string, opts ...ContainerWithSymlinkOpts) *Container
- func (r *Container) WithUnixSocket(path string, source *Socket, opts ...ContainerWithUnixSocketOpts) *Container
- func (r *Container) WithUser(name string) *Container
- func (r *Container) WithVolatileVariable(name string, value string) *Container
- func (r *Container) WithWorkdir(path string, opts ...ContainerWithWorkdirOpts) *Container
- func (r *Container) WithoutAnnotation(name string) *Container
- func (r *Container) WithoutDefaultArgs() *Container
- func (r *Container) WithoutDirectory(path string, opts ...ContainerWithoutDirectoryOpts) *Container
- func (r *Container) WithoutDockerHealthcheck() *Container
- func (r *Container) WithoutEntrypoint(opts ...ContainerWithoutEntrypointOpts) *Container
- func (r *Container) WithoutEnvVariable(name string) *Container
- func (r *Container) WithoutExposedPort(port int, opts ...ContainerWithoutExposedPortOpts) *Container
- func (r *Container) WithoutFile(path string, opts ...ContainerWithoutFileOpts) *Container
- func (r *Container) WithoutFiles(paths []string, opts ...ContainerWithoutFilesOpts) *Container
- func (r *Container) WithoutLabel(name string) *Container
- func (r *Container) WithoutMount(path string, opts ...ContainerWithoutMountOpts) *Container
- func (r *Container) WithoutRegistryAuth(address string) *Container
- func (r *Container) WithoutSecretVariable(name string) *Container
- func (r *Container) WithoutUnixSocket(path string, opts ...ContainerWithoutUnixSocketOpts) *Container
- func (r *Container) WithoutUser() *Container
- func (r *Container) WithoutVolatileVariable(name string) *Container
- func (r *Container) WithoutWorkdir() *Container
- func (r *Container) Workdir(ctx context.Context) (string, error)
- func (r *Container) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Container) XXX_GraphQLIDType() string
- func (r *Container) XXX_GraphQLType() string
- type ContainerAsServiceOpts
- type ContainerAsTarballOpts
- type ContainerDirectoryOpts
- type ContainerExistsOpts
- type ContainerExportImageOpts
- type ContainerExportOpts
- type ContainerFileOpts
- type ContainerFromOpts
- type ContainerID
- type ContainerImportOpts
- type ContainerOpts
- type ContainerPublishOpts
- type ContainerStatOpts
- type ContainerTerminalOpts
- type ContainerUpOpts
- type ContainerWithDefaultTerminalCmdOpts
- type ContainerWithDirectoryOpts
- type ContainerWithDockerHealthcheckOpts
- type ContainerWithEntrypointOpts
- type ContainerWithEnvVariableOpts
- type ContainerWithExecOpts
- type ContainerWithExposedPortOpts
- type ContainerWithFileOpts
- type ContainerWithFilesOpts
- type ContainerWithMountedCacheOpts
- type ContainerWithMountedDirectoryOpts
- type ContainerWithMountedFileOpts
- type ContainerWithMountedSecretOpts
- type ContainerWithMountedTempOpts
- type ContainerWithNewFileOpts
- type ContainerWithSymlinkOpts
- type ContainerWithUnixSocketOpts
- type ContainerWithWorkdirOpts
- type ContainerWithoutDirectoryOpts
- type ContainerWithoutEntrypointOpts
- type ContainerWithoutExposedPortOpts
- type ContainerWithoutFileOpts
- type ContainerWithoutFilesOpts
- type ContainerWithoutMountOpts
- type ContainerWithoutUnixSocketOpts
- type CurrentModule
- func (r *CurrentModule) AsNode() Node
- func (r *CurrentModule) Dependencies(ctx context.Context) ([]Module, error)
- func (r *CurrentModule) GeneratedContextDirectory() *Directory
- func (r *CurrentModule) Generators(opts ...CurrentModuleGeneratorsOpts) *GeneratorGroup
- func (r *CurrentModule) ID(ctx context.Context) (ID, error)
- func (r *CurrentModule) MarshalJSON() ([]byte, error)
- func (r *CurrentModule) Name(ctx context.Context) (string, error)
- func (r *CurrentModule) Source() *Directory
- func (r *CurrentModule) WithGraphQLQuery(q *querybuilder.Selection) *CurrentModule
- func (r *CurrentModule) Workdir(path string, opts ...CurrentModuleWorkdirOpts) *Directory
- func (r *CurrentModule) WorkdirFile(path string) *File
- func (r *CurrentModule) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *CurrentModule) XXX_GraphQLIDType() string
- func (r *CurrentModule) XXX_GraphQLType() string
- type CurrentModuleGeneratorsOpts
- type CurrentModuleID
- type CurrentModuleWorkdirOpts
- type CurrentTypeDefsOpts
- type DaggerObject
- type DiffStat
- func (r *DiffStat) AddedLines(ctx context.Context) (int, error)
- func (r *DiffStat) AsNode() Node
- func (r *DiffStat) ID(ctx context.Context) (ID, error)
- func (r *DiffStat) Kind(ctx context.Context) (DiffStatKind, error)
- func (r *DiffStat) MarshalJSON() ([]byte, error)
- func (r *DiffStat) OldPath(ctx context.Context) (string, error)
- func (r *DiffStat) Path(ctx context.Context) (string, error)
- func (r *DiffStat) RemovedLines(ctx context.Context) (int, error)
- func (r *DiffStat) WithGraphQLQuery(q *querybuilder.Selection) *DiffStat
- func (r *DiffStat) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *DiffStat) XXX_GraphQLIDType() string
- func (r *DiffStat) XXX_GraphQLType() string
- type DiffStatID
- type DiffStatKind
- type Directory
- func (r *Directory) AsExportable() Exportable
- func (r *Directory) AsGit() *GitRepository
- func (r *Directory) AsModule(opts ...DirectoryAsModuleOpts) *Module
- func (r *Directory) AsModuleSource(opts ...DirectoryAsModuleSourceOpts) *ModuleSource
- func (r *Directory) AsNode() Node
- func (r *Directory) AsSyncer() Syncer
- func (r *Directory) Changes(from *Directory) *Changeset
- func (r *Directory) Chown(path string, owner string) *Directory
- func (r *Directory) Diff(other *Directory) *Directory
- func (r *Directory) Digest(ctx context.Context) (string, error)
- func (r *Directory) Directory(path string) *Directory
- func (r *Directory) DockerBuild(opts ...DirectoryDockerBuildOpts) *Container
- func (r *Directory) Entries(ctx context.Context, opts ...DirectoryEntriesOpts) ([]string, error)
- func (r *Directory) Exists(ctx context.Context, path string, opts ...DirectoryExistsOpts) (bool, error)
- func (r *Directory) Export(ctx context.Context, path string, opts ...DirectoryExportOpts) (string, error)
- func (r *Directory) File(path string) *File
- func (r *Directory) Filter(opts ...DirectoryFilterOpts) *Directory
- func (r *Directory) FindUp(ctx context.Context, name string, start string) (string, error)
- func (r *Directory) Glob(ctx context.Context, pattern string) ([]string, error)
- func (r *Directory) ID(ctx context.Context) (ID, error)
- func (r *Directory) MarshalJSON() ([]byte, error)
- func (r *Directory) Name(ctx context.Context) (string, error)
- func (r *Directory) Search(ctx context.Context, pattern string, opts ...DirectorySearchOpts) ([]SearchResult, error)
- func (r *Directory) Stat(path string, opts ...DirectoryStatOpts) *Stat
- func (r *Directory) Sync(ctx context.Context) (*Directory, error)
- func (r *Directory) Terminal(opts ...DirectoryTerminalOpts) *Directory
- func (r *Directory) With(f WithDirectoryFunc) *Directory
- func (r *Directory) WithChanges(changes *Changeset) *Directory
- func (r *Directory) WithDirectory(path string, source *Directory, opts ...DirectoryWithDirectoryOpts) *Directory
- func (r *Directory) WithError(err string) *Directory
- func (r *Directory) WithFile(path string, source *File, opts ...DirectoryWithFileOpts) *Directory
- func (r *Directory) WithFiles(path string, sources []*File, opts ...DirectoryWithFilesOpts) *Directory
- func (r *Directory) WithGraphQLQuery(q *querybuilder.Selection) *Directory
- func (r *Directory) WithNewDirectory(path string, opts ...DirectoryWithNewDirectoryOpts) *Directory
- func (r *Directory) WithNewFile(path string, contents string, opts ...DirectoryWithNewFileOpts) *Directory
- func (r *Directory) WithPatch(patch string) *Directory
- func (r *Directory) WithPatchFile(patch *File) *Directory
- func (r *Directory) WithSymlink(target string, linkName string) *Directory
- func (r *Directory) WithTimestamps(timestamp int) *Directory
- func (r *Directory) WithoutDirectory(path string) *Directory
- func (r *Directory) WithoutFile(path string) *Directory
- func (r *Directory) WithoutFiles(paths []string) *Directory
- func (r *Directory) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Directory) XXX_GraphQLIDType() string
- func (r *Directory) XXX_GraphQLType() string
- type DirectoryAsModuleOpts
- type DirectoryAsModuleSourceOpts
- type DirectoryDockerBuildOpts
- type DirectoryEntriesOpts
- type DirectoryExistsOpts
- type DirectoryExportOpts
- type DirectoryFilterOpts
- type DirectoryID
- type DirectorySearchOpts
- type DirectoryStatOpts
- type DirectoryTerminalOpts
- type DirectoryWithDirectoryOpts
- type DirectoryWithFileOpts
- type DirectoryWithFilesOpts
- type DirectoryWithNewDirectoryOpts
- type DirectoryWithNewFileOpts
- type Engine
- func (r *Engine) AsNode() Node
- func (r *Engine) Clients(ctx context.Context) ([]string, error)
- func (r *Engine) ID(ctx context.Context) (ID, error)
- func (r *Engine) LocalCache() *EngineCache
- func (r *Engine) MarshalJSON() ([]byte, error)
- func (r *Engine) Name(ctx context.Context) (string, error)
- func (r *Engine) WithGraphQLQuery(q *querybuilder.Selection) *Engine
- func (r *Engine) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Engine) XXX_GraphQLIDType() string
- func (r *Engine) XXX_GraphQLType() string
- type EngineCache
- func (r *EngineCache) AsNode() Node
- func (r *EngineCache) EntrySet(opts ...EngineCacheEntrySetOpts) *EngineCacheEntrySet
- func (r *EngineCache) ID(ctx context.Context) (ID, error)
- func (r *EngineCache) MarshalJSON() ([]byte, error)
- func (r *EngineCache) MaxUsedSpace(ctx context.Context) (int, error)
- func (r *EngineCache) MinFreeSpace(ctx context.Context) (int, error)
- func (r *EngineCache) Prune(ctx context.Context, opts ...EngineCachePruneOpts) error
- func (r *EngineCache) ReservedSpace(ctx context.Context) (int, error)
- func (r *EngineCache) TargetSpace(ctx context.Context) (int, error)
- func (r *EngineCache) WithGraphQLQuery(q *querybuilder.Selection) *EngineCache
- func (r *EngineCache) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *EngineCache) XXX_GraphQLIDType() string
- func (r *EngineCache) XXX_GraphQLType() string
- type EngineCacheEntry
- func (r *EngineCacheEntry) ActivelyUsed(ctx context.Context) (bool, error)
- func (r *EngineCacheEntry) AsNode() Node
- func (r *EngineCacheEntry) CreatedTimeUnixNano(ctx context.Context) (int, error)
- func (r *EngineCacheEntry) DagqlCall(ctx context.Context) (string, error)
- func (r *EngineCacheEntry) Description(ctx context.Context) (string, error)
- func (r *EngineCacheEntry) DiskSpaceBytes(ctx context.Context) (int, error)
- func (r *EngineCacheEntry) ID(ctx context.Context) (ID, error)
- func (r *EngineCacheEntry) MarshalJSON() ([]byte, error)
- func (r *EngineCacheEntry) MostRecentUseTimeUnixNano(ctx context.Context) (int, error)
- func (r *EngineCacheEntry) RecordType(ctx context.Context) (string, error)
- func (r *EngineCacheEntry) RecordTypes(ctx context.Context) ([]string, error)
- func (r *EngineCacheEntry) WithGraphQLQuery(q *querybuilder.Selection) *EngineCacheEntry
- func (r *EngineCacheEntry) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *EngineCacheEntry) XXX_GraphQLIDType() string
- func (r *EngineCacheEntry) XXX_GraphQLType() string
- type EngineCacheEntryID
- type EngineCacheEntrySet
- func (r *EngineCacheEntrySet) AsNode() Node
- func (r *EngineCacheEntrySet) DiskSpaceBytes(ctx context.Context) (int, error)
- func (r *EngineCacheEntrySet) Entries(ctx context.Context) ([]EngineCacheEntry, error)
- func (r *EngineCacheEntrySet) EntryCount(ctx context.Context) (int, error)
- func (r *EngineCacheEntrySet) ID(ctx context.Context) (ID, error)
- func (r *EngineCacheEntrySet) MarshalJSON() ([]byte, error)
- func (r *EngineCacheEntrySet) WithGraphQLQuery(q *querybuilder.Selection) *EngineCacheEntrySet
- func (r *EngineCacheEntrySet) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *EngineCacheEntrySet) XXX_GraphQLIDType() string
- func (r *EngineCacheEntrySet) XXX_GraphQLType() string
- type EngineCacheEntrySetID
- type EngineCacheEntrySetOpts
- type EngineCacheID
- type EngineCachePruneOpts
- type EngineID
- type EnumTypeDef
- func (r *EnumTypeDef) AsNode() Node
- func (r *EnumTypeDef) Description(ctx context.Context) (string, error)
- func (r *EnumTypeDef) ID(ctx context.Context) (ID, error)
- func (r *EnumTypeDef) MarshalJSON() ([]byte, error)
- func (r *EnumTypeDef) Members(ctx context.Context) ([]EnumValueTypeDef, error)
- func (r *EnumTypeDef) Name(ctx context.Context) (string, error)
- func (r *EnumTypeDef) SourceMap() *SourceMap
- func (r *EnumTypeDef) SourceModuleName(ctx context.Context) (string, error)
- func (r *EnumTypeDef) Values(ctx context.Context) ([]EnumValueTypeDef, error)deprecated
- func (r *EnumTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *EnumTypeDef
- func (r *EnumTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *EnumTypeDef) XXX_GraphQLIDType() string
- func (r *EnumTypeDef) XXX_GraphQLType() string
- type EnumTypeDefID
- type EnumValueTypeDef
- func (r *EnumValueTypeDef) AsNode() Node
- func (r *EnumValueTypeDef) Deprecated(ctx context.Context) (string, error)
- func (r *EnumValueTypeDef) Description(ctx context.Context) (string, error)
- func (r *EnumValueTypeDef) ID(ctx context.Context) (ID, error)
- func (r *EnumValueTypeDef) MarshalJSON() ([]byte, error)
- func (r *EnumValueTypeDef) Name(ctx context.Context) (string, error)
- func (r *EnumValueTypeDef) SourceMap() *SourceMap
- func (r *EnumValueTypeDef) Value(ctx context.Context) (string, error)
- func (r *EnumValueTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *EnumValueTypeDef
- func (r *EnumValueTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *EnumValueTypeDef) XXX_GraphQLIDType() string
- func (r *EnumValueTypeDef) XXX_GraphQLType() string
- type EnumValueTypeDefID
- type Env
- func (r *Env) AsNode() Node
- func (r *Env) Check(name string) *Check
- func (r *Env) Checks(opts ...EnvChecksOpts) *CheckGroup
- func (r *Env) ID(ctx context.Context) (ID, error)
- func (r *Env) Input(name string) *Binding
- func (r *Env) Inputs(ctx context.Context) ([]Binding, error)
- func (r *Env) MarshalJSON() ([]byte, error)
- func (r *Env) Output(name string) *Binding
- func (r *Env) Outputs(ctx context.Context) ([]Binding, error)
- func (r *Env) Services(opts ...EnvServicesOpts) *UpGroup
- func (r *Env) With(f WithEnvFunc) *Env
- func (r *Env) WithAddressInput(name string, value *Address, description string) *Env
- func (r *Env) WithAddressOutput(name string, description string) *Env
- func (r *Env) WithArchInput(name string, value *Arch, description string) *Env
- func (r *Env) WithArchOutput(name string, description string) *Env
- func (r *Env) WithArchiveInput(name string, value *Archive, description string) *Env
- func (r *Env) WithArchiveOutput(name string, description string) *Env
- func (r *Env) WithCacheVolumeInput(name string, value *CacheVolume, description string) *Env
- func (r *Env) WithCacheVolumeOutput(name string, description string) *Env
- func (r *Env) WithChangesetInput(name string, value *Changeset, description string) *Env
- func (r *Env) WithChangesetOutput(name string, description string) *Env
- func (r *Env) WithCheckGroupInput(name string, value *CheckGroup, description string) *Env
- func (r *Env) WithCheckGroupOutput(name string, description string) *Env
- func (r *Env) WithCheckInput(name string, value *Check, description string) *Env
- func (r *Env) WithCheckOutput(name string, description string) *Env
- func (r *Env) WithCloudInput(name string, value *Cloud, description string) *Env
- func (r *Env) WithCloudOutput(name string, description string) *Env
- func (r *Env) WithContainerInput(name string, value *Container, description string) *Env
- func (r *Env) WithContainerOutput(name string, description string) *Env
- func (r *Env) WithCurrentModule() *Env
- func (r *Env) WithDiffStatInput(name string, value *DiffStat, description string) *Env
- func (r *Env) WithDiffStatOutput(name string, description string) *Env
- func (r *Env) WithDirectoryInput(name string, value *Directory, description string) *Env
- func (r *Env) WithDirectoryOutput(name string, description string) *Env
- func (r *Env) WithEnvFileInput(name string, value *EnvFile, description string) *Env
- func (r *Env) WithEnvFileOutput(name string, description string) *Env
- func (r *Env) WithEnvInput(name string, value *Env, description string) *Env
- func (r *Env) WithEnvOutput(name string, description string) *Env
- func (r *Env) WithFileInput(name string, value *File, description string) *Env
- func (r *Env) WithFileOutput(name string, description string) *Env
- func (r *Env) WithGeneratorGroupInput(name string, value *GeneratorGroup, description string) *Env
- func (r *Env) WithGeneratorGroupOutput(name string, description string) *Env
- func (r *Env) WithGeneratorInput(name string, value *Generator, description string) *Env
- func (r *Env) WithGeneratorOutput(name string, description string) *Env
- func (r *Env) WithGitRefInput(name string, value *GitRef, description string) *Env
- func (r *Env) WithGitRefOutput(name string, description string) *Env
- func (r *Env) WithGitRepositoryInput(name string, value *GitRepository, description string) *Env
- func (r *Env) WithGitRepositoryOutput(name string, description string) *Env
- func (r *Env) WithGoInput(name string, value *Go, description string) *Env
- func (r *Env) WithGoOutput(name string, description string) *Env
- func (r *Env) WithGraphQLQuery(q *querybuilder.Selection) *Env
- func (r *Env) WithHTTPStateInput(name string, value *HTTPState, description string) *Env
- func (r *Env) WithHTTPStateOutput(name string, description string) *Env
- func (r *Env) WithJSONValueInput(name string, value *JSONValue, description string) *Env
- func (r *Env) WithJSONValueOutput(name string, description string) *Env
- func (r *Env) WithMainModule(module *Module) *Env
- func (r *Env) WithMiseInput(name string, value *Mise, description string) *Env
- func (r *Env) WithMiseOutput(name string, description string) *Env
- func (r *Env) WithModule(module *Module) *Envdeprecated
- func (r *Env) WithModuleConfigClientInput(name string, value *ModuleConfigClient, description string) *Env
- func (r *Env) WithModuleConfigClientOutput(name string, description string) *Env
- func (r *Env) WithModuleInput(name string, value *Module, description string) *Env
- func (r *Env) WithModuleOutput(name string, description string) *Env
- func (r *Env) WithModuleSourceInput(name string, value *ModuleSource, description string) *Env
- func (r *Env) WithModuleSourceOutput(name string, description string) *Env
- func (r *Env) WithSearchResultInput(name string, value *SearchResult, description string) *Env
- func (r *Env) WithSearchResultOutput(name string, description string) *Env
- func (r *Env) WithSearchSubmatchInput(name string, value *SearchSubmatch, description string) *Env
- func (r *Env) WithSearchSubmatchOutput(name string, description string) *Env
- func (r *Env) WithSecretInput(name string, value *Secret, description string) *Env
- func (r *Env) WithSecretOutput(name string, description string) *Env
- func (r *Env) WithServiceInput(name string, value *Service, description string) *Env
- func (r *Env) WithServiceOutput(name string, description string) *Env
- func (r *Env) WithSindriDevInput(name string, value *SindriDev, description string) *Env
- func (r *Env) WithSindriDevOutput(name string, description string) *Env
- func (r *Env) WithSindriInput(name string, value *Sindri, description string) *Env
- func (r *Env) WithSindriOutput(name string, description string) *Env
- func (r *Env) WithSocketInput(name string, value *Socket, description string) *Env
- func (r *Env) WithSocketOutput(name string, description string) *Env
- func (r *Env) WithStatInput(name string, value *Stat, description string) *Env
- func (r *Env) WithStatOutput(name string, description string) *Env
- func (r *Env) WithStringInput(name string, value string, description string) *Env
- func (r *Env) WithStringOutput(name string, description string) *Env
- func (r *Env) WithUpGroupInput(name string, value *UpGroup, description string) *Env
- func (r *Env) WithUpGroupOutput(name string, description string) *Env
- func (r *Env) WithUpInput(name string, value *Up, description string) *Env
- func (r *Env) WithUpOutput(name string, description string) *Env
- func (r *Env) WithWolfiInput(name string, value *Wolfi, description string) *Env
- func (r *Env) WithWolfiOutput(name string, description string) *Env
- func (r *Env) WithWorkspace(workspace *Directory) *Env
- func (r *Env) WithWorkspaceInput(name string, value *Workspace, description string) *Env
- func (r *Env) WithWorkspaceOutput(name string, description string) *Env
- func (r *Env) WithoutOutputs() *Env
- func (r *Env) Workspace() *Directory
- func (r *Env) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Env) XXX_GraphQLIDType() string
- func (r *Env) XXX_GraphQLType() string
- type EnvChecksOpts
- type EnvFile
- func (r *EnvFile) AsFile() *File
- func (r *EnvFile) AsNode() Node
- func (r *EnvFile) Exists(ctx context.Context, name string) (bool, error)
- func (r *EnvFile) Get(ctx context.Context, name string, opts ...EnvFileGetOpts) (string, error)
- func (r *EnvFile) ID(ctx context.Context) (ID, error)
- func (r *EnvFile) MarshalJSON() ([]byte, error)
- func (r *EnvFile) Namespace(prefix string) *EnvFile
- func (r *EnvFile) Variables(ctx context.Context, opts ...EnvFileVariablesOpts) ([]EnvVariable, error)
- func (r *EnvFile) With(f WithEnvFileFunc) *EnvFile
- func (r *EnvFile) WithGraphQLQuery(q *querybuilder.Selection) *EnvFile
- func (r *EnvFile) WithVariable(name string, value string) *EnvFile
- func (r *EnvFile) WithoutVariable(name string) *EnvFile
- func (r *EnvFile) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *EnvFile) XXX_GraphQLIDType() string
- func (r *EnvFile) XXX_GraphQLType() string
- type EnvFileGetOpts
- type EnvFileID
- type EnvFileOpts
- type EnvFileVariablesOpts
- type EnvID
- type EnvOpts
- type EnvServicesOpts
- type EnvVariable
- func (r *EnvVariable) AsNode() Node
- func (r *EnvVariable) ID(ctx context.Context) (ID, error)
- func (r *EnvVariable) MarshalJSON() ([]byte, error)
- func (r *EnvVariable) Name(ctx context.Context) (string, error)
- func (r *EnvVariable) Value(ctx context.Context) (string, error)
- func (r *EnvVariable) WithGraphQLQuery(q *querybuilder.Selection) *EnvVariable
- func (r *EnvVariable) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *EnvVariable) XXX_GraphQLIDType() string
- func (r *EnvVariable) XXX_GraphQLType() string
- type EnvVariableID
- type Error
- func (r *Error) AsNode() Node
- func (r *Error) ID(ctx context.Context) (ID, error)
- func (r *Error) MarshalJSON() ([]byte, error)
- func (r *Error) Message(ctx context.Context) (string, error)
- func (r *Error) Values(ctx context.Context) ([]ErrorValue, error)
- func (r *Error) With(f WithErrorFunc) *Error
- func (r *Error) WithGraphQLQuery(q *querybuilder.Selection) *Error
- func (r *Error) WithValue(name string, value JSON) *Error
- func (r *Error) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Error) XXX_GraphQLIDType() string
- func (r *Error) XXX_GraphQLType() string
- type ErrorID
- type ErrorValue
- func (r *ErrorValue) AsNode() Node
- func (r *ErrorValue) ID(ctx context.Context) (ID, error)
- func (r *ErrorValue) MarshalJSON() ([]byte, error)
- func (r *ErrorValue) Name(ctx context.Context) (string, error)
- func (r *ErrorValue) Value(ctx context.Context) (JSON, error)
- func (r *ErrorValue) WithGraphQLQuery(q *querybuilder.Selection) *ErrorValue
- func (r *ErrorValue) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *ErrorValue) XXX_GraphQLIDType() string
- func (r *ErrorValue) XXX_GraphQLType() string
- type ErrorValueID
- type ExecError
- type ExistsType
- type Exportable
- type ExportableClient
- func (r *ExportableClient) Concrete(ctx context.Context) (Node, error)
- func (r *ExportableClient) Export(ctx context.Context, path string) (string, error)
- func (r *ExportableClient) ID(ctx context.Context) (ID, error)
- func (r *ExportableClient) MarshalJSON() ([]byte, error)
- func (r *ExportableClient) WithGraphQLQuery(q *querybuilder.Selection) *ExportableClient
- func (r *ExportableClient) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *ExportableClient) XXX_GraphQLIDType() string
- func (r *ExportableClient) XXX_GraphQLType() string
- type ExportableID
- type FieldTypeDef
- func (r *FieldTypeDef) AsNode() Node
- func (r *FieldTypeDef) Deprecated(ctx context.Context) (string, error)
- func (r *FieldTypeDef) Description(ctx context.Context) (string, error)
- func (r *FieldTypeDef) ID(ctx context.Context) (ID, error)
- func (r *FieldTypeDef) MarshalJSON() ([]byte, error)
- func (r *FieldTypeDef) Name(ctx context.Context) (string, error)
- func (r *FieldTypeDef) SourceMap() *SourceMap
- func (r *FieldTypeDef) TypeDef() *TypeDef
- func (r *FieldTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *FieldTypeDef
- func (r *FieldTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *FieldTypeDef) XXX_GraphQLIDType() string
- func (r *FieldTypeDef) XXX_GraphQLType() string
- type FieldTypeDefID
- type File
- func (r *File) AsEnvFile(opts ...FileAsEnvFileOpts) *EnvFile
- func (r *File) AsExportable() Exportable
- func (r *File) AsJSON() *JSONValue
- func (r *File) AsNode() Node
- func (r *File) AsSyncer() Syncer
- func (r *File) Chown(owner string) *File
- func (r *File) Contents(ctx context.Context, opts ...FileContentsOpts) (string, error)
- func (r *File) Digest(ctx context.Context, opts ...FileDigestOpts) (string, error)
- func (r *File) Export(ctx context.Context, path string, opts ...FileExportOpts) (string, error)
- func (r *File) ID(ctx context.Context) (ID, error)
- func (r *File) MarshalJSON() ([]byte, error)
- func (r *File) Name(ctx context.Context) (string, error)
- func (r *File) Search(ctx context.Context, pattern string, opts ...FileSearchOpts) ([]SearchResult, error)
- func (r *File) Size(ctx context.Context) (int, error)
- func (r *File) Stat() *Stat
- func (r *File) Sync(ctx context.Context) (*File, error)
- func (r *File) With(f WithFileFunc) *File
- func (r *File) WithGraphQLQuery(q *querybuilder.Selection) *File
- func (r *File) WithName(name string) *File
- func (r *File) WithReplaced(search string, replacement string, opts ...FileWithReplacedOpts) *File
- func (r *File) WithTimestamps(timestamp int) *File
- func (r *File) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *File) XXX_GraphQLIDType() string
- func (r *File) XXX_GraphQLType() string
- type FileAsEnvFileOpts
- type FileContentsOpts
- type FileDigestOpts
- type FileExportOpts
- type FileID
- type FileOpts
- type FileSearchOpts
- type FileType
- type FileWithReplacedOpts
- type Function
- func (r *Function) Args(ctx context.Context) ([]FunctionArg, error)
- func (r *Function) AsNode() Node
- func (r *Function) Deprecated(ctx context.Context) (string, error)
- func (r *Function) Description(ctx context.Context) (string, error)
- func (r *Function) ID(ctx context.Context) (ID, error)
- func (r *Function) MarshalJSON() ([]byte, error)
- func (r *Function) Name(ctx context.Context) (string, error)
- func (r *Function) ReturnType() *TypeDef
- func (r *Function) SourceMap() *SourceMap
- func (r *Function) SourceModuleName(ctx context.Context) (string, error)
- func (r *Function) With(f WithFunctionFunc) *Function
- func (r *Function) WithArg(name string, typeDef *TypeDef, opts ...FunctionWithArgOpts) *Function
- func (r *Function) WithCachePolicy(policy FunctionCachePolicy, opts ...FunctionWithCachePolicyOpts) *Function
- func (r *Function) WithCheck() *Function
- func (r *Function) WithDeprecated(opts ...FunctionWithDeprecatedOpts) *Function
- func (r *Function) WithDescription(description string) *Function
- func (r *Function) WithGenerator() *Function
- func (r *Function) WithGraphQLQuery(q *querybuilder.Selection) *Function
- func (r *Function) WithSourceMap(sourceMap *SourceMap) *Function
- func (r *Function) WithUp() *Function
- func (r *Function) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Function) XXX_GraphQLIDType() string
- func (r *Function) XXX_GraphQLType() string
- type FunctionArg
- func (r *FunctionArg) AsNode() Node
- func (r *FunctionArg) DefaultAddress(ctx context.Context) (string, error)
- func (r *FunctionArg) DefaultPath(ctx context.Context) (string, error)
- func (r *FunctionArg) DefaultValue(ctx context.Context) (JSON, error)
- func (r *FunctionArg) Deprecated(ctx context.Context) (string, error)
- func (r *FunctionArg) Description(ctx context.Context) (string, error)
- func (r *FunctionArg) ID(ctx context.Context) (ID, error)
- func (r *FunctionArg) Ignore(ctx context.Context) ([]string, error)
- func (r *FunctionArg) MarshalJSON() ([]byte, error)
- func (r *FunctionArg) Name(ctx context.Context) (string, error)
- func (r *FunctionArg) SourceMap() *SourceMap
- func (r *FunctionArg) TypeDef() *TypeDef
- func (r *FunctionArg) WithGraphQLQuery(q *querybuilder.Selection) *FunctionArg
- func (r *FunctionArg) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *FunctionArg) XXX_GraphQLIDType() string
- func (r *FunctionArg) XXX_GraphQLType() string
- type FunctionArgID
- type FunctionCachePolicy
- type FunctionCall
- func (r *FunctionCall) AsNode() Node
- func (r *FunctionCall) ID(ctx context.Context) (ID, error)
- func (r *FunctionCall) InputArgs(ctx context.Context) ([]FunctionCallArgValue, error)
- func (r *FunctionCall) MarshalJSON() ([]byte, error)
- func (r *FunctionCall) Name(ctx context.Context) (string, error)
- func (r *FunctionCall) Parent(ctx context.Context) (JSON, error)
- func (r *FunctionCall) ParentName(ctx context.Context) (string, error)
- func (r *FunctionCall) ReturnError(ctx context.Context, error *Error) error
- func (r *FunctionCall) ReturnValue(ctx context.Context, value JSON) error
- func (r *FunctionCall) WithGraphQLQuery(q *querybuilder.Selection) *FunctionCall
- func (r *FunctionCall) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *FunctionCall) XXX_GraphQLIDType() string
- func (r *FunctionCall) XXX_GraphQLType() string
- type FunctionCallArgValue
- func (r *FunctionCallArgValue) AsNode() Node
- func (r *FunctionCallArgValue) ID(ctx context.Context) (ID, error)
- func (r *FunctionCallArgValue) MarshalJSON() ([]byte, error)
- func (r *FunctionCallArgValue) Name(ctx context.Context) (string, error)
- func (r *FunctionCallArgValue) Value(ctx context.Context) (JSON, error)
- func (r *FunctionCallArgValue) WithGraphQLQuery(q *querybuilder.Selection) *FunctionCallArgValue
- func (r *FunctionCallArgValue) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *FunctionCallArgValue) XXX_GraphQLIDType() string
- func (r *FunctionCallArgValue) XXX_GraphQLType() string
- type FunctionCallArgValueID
- type FunctionCallID
- type FunctionID
- type FunctionWithArgOpts
- type FunctionWithCachePolicyOpts
- type FunctionWithDeprecatedOpts
- type GeneratedCode
- func (r *GeneratedCode) AsNode() Node
- func (r *GeneratedCode) Code() *Directory
- func (r *GeneratedCode) ID(ctx context.Context) (ID, error)
- func (r *GeneratedCode) MarshalJSON() ([]byte, error)
- func (r *GeneratedCode) VcsGeneratedPaths(ctx context.Context) ([]string, error)
- func (r *GeneratedCode) VcsIgnoredPaths(ctx context.Context) ([]string, error)
- func (r *GeneratedCode) With(f WithGeneratedCodeFunc) *GeneratedCode
- func (r *GeneratedCode) WithGraphQLQuery(q *querybuilder.Selection) *GeneratedCode
- func (r *GeneratedCode) WithVCSGeneratedPaths(paths []string) *GeneratedCode
- func (r *GeneratedCode) WithVCSIgnoredPaths(paths []string) *GeneratedCode
- func (r *GeneratedCode) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *GeneratedCode) XXX_GraphQLIDType() string
- func (r *GeneratedCode) XXX_GraphQLType() string
- type GeneratedCodeID
- type Generator
- func (r *Generator) AsNode() Node
- func (r *Generator) Changes() *Changeset
- func (r *Generator) Completed(ctx context.Context) (bool, error)
- func (r *Generator) Description(ctx context.Context) (string, error)
- func (r *Generator) ID(ctx context.Context) (ID, error)
- func (r *Generator) IsEmpty(ctx context.Context) (bool, error)
- func (r *Generator) MarshalJSON() ([]byte, error)
- func (r *Generator) Name(ctx context.Context) (string, error)
- func (r *Generator) OriginalModule() *Module
- func (r *Generator) Path(ctx context.Context) ([]string, error)
- func (r *Generator) Run() *Generator
- func (r *Generator) With(f WithGeneratorFunc) *Generator
- func (r *Generator) WithGraphQLQuery(q *querybuilder.Selection) *Generator
- func (r *Generator) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Generator) XXX_GraphQLIDType() string
- func (r *Generator) XXX_GraphQLType() string
- type GeneratorGroup
- func (r *GeneratorGroup) AsNode() Node
- func (r *GeneratorGroup) Changes(opts ...GeneratorGroupChangesOpts) *Changeset
- func (r *GeneratorGroup) ID(ctx context.Context) (ID, error)
- func (r *GeneratorGroup) IsEmpty(ctx context.Context) (bool, error)
- func (r *GeneratorGroup) List(ctx context.Context) ([]Generator, error)
- func (r *GeneratorGroup) MarshalJSON() ([]byte, error)
- func (r *GeneratorGroup) Run() *GeneratorGroup
- func (r *GeneratorGroup) With(f WithGeneratorGroupFunc) *GeneratorGroup
- func (r *GeneratorGroup) WithGraphQLQuery(q *querybuilder.Selection) *GeneratorGroup
- func (r *GeneratorGroup) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *GeneratorGroup) XXX_GraphQLIDType() string
- func (r *GeneratorGroup) XXX_GraphQLType() string
- type GeneratorGroupChangesOpts
- type GeneratorGroupID
- type GeneratorID
- type GitOpts
- type GitRef
- func (r *GitRef) AsNode() Node
- func (r *GitRef) Commit(ctx context.Context) (string, error)
- func (r *GitRef) CommonAncestor(other *GitRef) *GitRef
- func (r *GitRef) ID(ctx context.Context) (ID, error)
- func (r *GitRef) MarshalJSON() ([]byte, error)
- func (r *GitRef) Ref(ctx context.Context) (string, error)
- func (r *GitRef) Tree(opts ...GitRefTreeOpts) *Directory
- func (r *GitRef) With(f WithGitRefFunc) *GitRef
- func (r *GitRef) WithGraphQLQuery(q *querybuilder.Selection) *GitRef
- func (r *GitRef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *GitRef) XXX_GraphQLIDType() string
- func (r *GitRef) XXX_GraphQLType() string
- type GitRefID
- type GitRefTreeOpts
- type GitRepository
- func (r *GitRepository) AsNode() Node
- func (r *GitRepository) Branch(name string) *GitRef
- func (r *GitRepository) Branches(ctx context.Context, opts ...GitRepositoryBranchesOpts) ([]string, error)
- func (r *GitRepository) Commit(id string) *GitRef
- func (r *GitRepository) Head() *GitRef
- func (r *GitRepository) ID(ctx context.Context) (ID, error)
- func (r *GitRepository) LatestVersion() *GitRef
- func (r *GitRepository) MarshalJSON() ([]byte, error)
- func (r *GitRepository) Ref(name string) *GitRef
- func (r *GitRepository) Tag(name string) *GitRef
- func (r *GitRepository) Tags(ctx context.Context, opts ...GitRepositoryTagsOpts) ([]string, error)
- func (r *GitRepository) URL(ctx context.Context) (string, error)
- func (r *GitRepository) Uncommitted() *Changeset
- func (r *GitRepository) WithGraphQLQuery(q *querybuilder.Selection) *GitRepository
- func (r *GitRepository) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *GitRepository) XXX_GraphQLIDType() string
- func (r *GitRepository) XXX_GraphQLType() string
- type GitRepositoryBranchesOpts
- type GitRepositoryID
- type GitRepositoryTagsOpts
- type Go
- func (r *Go) AsNode() Node
- func (r *Go) Build(opts ...GoBuildOpts) *File
- func (r *Go) Container() *Container
- func (r *Go) Fmt(opts ...GoFmtOpts) *Changeset
- func (r *Go) ID(ctx context.Context) (ID, error)
- func (r *Go) MarshalJSON() ([]byte, error)
- func (r *Go) Staticcheck(ctx context.Context, opts ...GoStaticcheckOpts) error
- func (r *Go) Test(ctx context.Context, opts ...GoTestOpts) error
- func (r *Go) Tidy() *Changeset
- func (r *Go) Vet(ctx context.Context) error
- func (r *Go) Vulncheck(ctx context.Context, opts ...GoVulncheckOpts) error
- func (r *Go) WithGraphQLQuery(q *querybuilder.Selection) *Go
- func (r *Go) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Go) XXX_GraphQLIDType() string
- func (r *Go) XXX_GraphQLType() string
- type GoBuildOpts
- type GoFmtOpts
- type GoID
- type GoOpts
- type GoStaticcheckOpts
- type GoTestOpts
- type GoVulncheckOpts
- type HTTPOpts
- type HTTPState
- func (r *HTTPState) AsNode() Node
- func (r *HTTPState) ID(ctx context.Context) (ID, error)
- func (r *HTTPState) MarshalJSON() ([]byte, error)
- func (r *HTTPState) WithGraphQLQuery(q *querybuilder.Selection) *HTTPState
- func (r *HTTPState) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *HTTPState) XXX_GraphQLIDType() string
- func (r *HTTPState) XXX_GraphQLType() string
- type HTTPStateID
- type HealthcheckConfig
- func (r *HealthcheckConfig) Args(ctx context.Context) ([]string, error)
- func (r *HealthcheckConfig) AsNode() Node
- func (r *HealthcheckConfig) ID(ctx context.Context) (ID, error)
- func (r *HealthcheckConfig) Interval(ctx context.Context) (string, error)
- func (r *HealthcheckConfig) MarshalJSON() ([]byte, error)
- func (r *HealthcheckConfig) Retries(ctx context.Context) (int, error)
- func (r *HealthcheckConfig) Shell(ctx context.Context) (bool, error)
- func (r *HealthcheckConfig) StartInterval(ctx context.Context) (string, error)
- func (r *HealthcheckConfig) StartPeriod(ctx context.Context) (string, error)
- func (r *HealthcheckConfig) Timeout(ctx context.Context) (string, error)
- func (r *HealthcheckConfig) WithGraphQLQuery(q *querybuilder.Selection) *HealthcheckConfig
- func (r *HealthcheckConfig) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *HealthcheckConfig) XXX_GraphQLIDType() string
- func (r *HealthcheckConfig) XXX_GraphQLType() string
- type HealthcheckConfigID
- type Host
- func (r *Host) AsNode() Node
- func (r *Host) ContainerImage(name string) *Container
- func (r *Host) Directory(path string, opts ...HostDirectoryOpts) *Directory
- func (r *Host) File(path string, opts ...HostFileOpts) *File
- func (r *Host) FindUp(ctx context.Context, name string, opts ...HostFindUpOpts) (string, error)
- func (r *Host) ID(ctx context.Context) (ID, error)
- func (r *Host) MarshalJSON() ([]byte, error)
- func (r *Host) Service(ports []PortForward, opts ...HostServiceOpts) *Service
- func (r *Host) Tunnel(service *Service, opts ...HostTunnelOpts) *Service
- func (r *Host) UnixSocket(path string) *Socket
- func (r *Host) WithGraphQLQuery(q *querybuilder.Selection) *Host
- func (r *Host) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Host) XXX_GraphQLIDType() string
- func (r *Host) XXX_GraphQLType() string
- type HostDirectoryOpts
- type HostFileOpts
- type HostFindUpOpts
- type HostID
- type HostServiceOpts
- type HostTunnelOpts
- type ID
- type ImageLayerCompression
- type ImageMediaTypes
- type InputTypeDef
- func (r *InputTypeDef) AsNode() Node
- func (r *InputTypeDef) Fields(ctx context.Context) ([]FieldTypeDef, error)
- func (r *InputTypeDef) ID(ctx context.Context) (ID, error)
- func (r *InputTypeDef) MarshalJSON() ([]byte, error)
- func (r *InputTypeDef) Name(ctx context.Context) (string, error)
- func (r *InputTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *InputTypeDef
- func (r *InputTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *InputTypeDef) XXX_GraphQLIDType() string
- func (r *InputTypeDef) XXX_GraphQLType() string
- type InputTypeDefID
- type InterfaceTypeDef
- func (r *InterfaceTypeDef) AsNode() Node
- func (r *InterfaceTypeDef) Description(ctx context.Context) (string, error)
- func (r *InterfaceTypeDef) Functions(ctx context.Context) ([]Function, error)
- func (r *InterfaceTypeDef) ID(ctx context.Context) (ID, error)
- func (r *InterfaceTypeDef) MarshalJSON() ([]byte, error)
- func (r *InterfaceTypeDef) Name(ctx context.Context) (string, error)
- func (r *InterfaceTypeDef) SourceMap() *SourceMap
- func (r *InterfaceTypeDef) SourceModuleName(ctx context.Context) (string, error)
- func (r *InterfaceTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *InterfaceTypeDef
- func (r *InterfaceTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *InterfaceTypeDef) XXX_GraphQLIDType() string
- func (r *InterfaceTypeDef) XXX_GraphQLType() string
- type InterfaceTypeDefID
- type JSON
- type JSONValue
- func (r *JSONValue) AsArray(ctx context.Context) ([]JSONValue, error)
- func (r *JSONValue) AsBoolean(ctx context.Context) (bool, error)
- func (r *JSONValue) AsInteger(ctx context.Context) (int, error)
- func (r *JSONValue) AsNode() Node
- func (r *JSONValue) AsString(ctx context.Context) (string, error)
- func (r *JSONValue) Contents(ctx context.Context, opts ...JSONValueContentsOpts) (JSON, error)
- func (r *JSONValue) Field(path []string) *JSONValue
- func (r *JSONValue) Fields(ctx context.Context) ([]string, error)
- func (r *JSONValue) ID(ctx context.Context) (ID, error)
- func (r *JSONValue) MarshalJSON() ([]byte, error)
- func (r *JSONValue) NewBoolean(value bool) *JSONValue
- func (r *JSONValue) NewInteger(value int) *JSONValue
- func (r *JSONValue) NewString(value string) *JSONValue
- func (r *JSONValue) With(f WithJSONValueFunc) *JSONValue
- func (r *JSONValue) WithContents(contents JSON) *JSONValue
- func (r *JSONValue) WithField(path []string, value *JSONValue) *JSONValue
- func (r *JSONValue) WithGraphQLQuery(q *querybuilder.Selection) *JSONValue
- func (r *JSONValue) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *JSONValue) XXX_GraphQLIDType() string
- func (r *JSONValue) XXX_GraphQLType() string
- type JSONValueContentsOpts
- type JSONValueID
- type LLM
- func (r *LLM) AsNode() Node
- func (r *LLM) AsSyncer() Syncer
- func (r *LLM) Attempt(number int) *LLM
- func (r *LLM) BindResult(name string) *Binding
- func (r *LLM) Env() *Env
- func (r *LLM) HasPrompt(ctx context.Context) (bool, error)
- func (r *LLM) History(ctx context.Context) ([]string, error)
- func (r *LLM) HistoryJSON(ctx context.Context) (JSON, error)
- func (r *LLM) ID(ctx context.Context) (ID, error)
- func (r *LLM) LastReply(ctx context.Context) (string, error)
- func (r *LLM) Loop() *LLM
- func (r *LLM) MarshalJSON() ([]byte, error)
- func (r *LLM) Model(ctx context.Context) (string, error)
- func (r *LLM) Provider(ctx context.Context) (string, error)
- func (r *LLM) Step(ctx context.Context) (*LLM, error)
- func (r *LLM) Sync(ctx context.Context) (*LLM, error)
- func (r *LLM) TokenUsage() *LLMTokenUsage
- func (r *LLM) Tools(ctx context.Context) (string, error)
- func (r *LLM) With(f WithLLMFunc) *LLM
- func (r *LLM) WithBlockedFunction(typeName string, function string) *LLM
- func (r *LLM) WithEnv(env *Env) *LLM
- func (r *LLM) WithGraphQLQuery(q *querybuilder.Selection) *LLM
- func (r *LLM) WithMCPServer(name string, service *Service) *LLM
- func (r *LLM) WithModel(model string) *LLM
- func (r *LLM) WithPrompt(prompt string) *LLM
- func (r *LLM) WithPromptFile(file *File) *LLM
- func (r *LLM) WithStaticTools() *LLM
- func (r *LLM) WithSystemPrompt(prompt string) *LLM
- func (r *LLM) WithoutDefaultSystemPrompt() *LLM
- func (r *LLM) WithoutMessageHistory() *LLM
- func (r *LLM) WithoutSystemPrompts() *LLM
- func (r *LLM) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *LLM) XXX_GraphQLIDType() string
- func (r *LLM) XXX_GraphQLType() string
- type LLMID
- type LLMOpts
- type LLMTokenUsage
- func (r *LLMTokenUsage) AsNode() Node
- func (r *LLMTokenUsage) CachedTokenReads(ctx context.Context) (int, error)
- func (r *LLMTokenUsage) CachedTokenWrites(ctx context.Context) (int, error)
- func (r *LLMTokenUsage) ID(ctx context.Context) (ID, error)
- func (r *LLMTokenUsage) InputTokens(ctx context.Context) (int, error)
- func (r *LLMTokenUsage) MarshalJSON() ([]byte, error)
- func (r *LLMTokenUsage) OutputTokens(ctx context.Context) (int, error)
- func (r *LLMTokenUsage) TotalTokens(ctx context.Context) (int, error)
- func (r *LLMTokenUsage) WithGraphQLQuery(q *querybuilder.Selection) *LLMTokenUsage
- func (r *LLMTokenUsage) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *LLMTokenUsage) XXX_GraphQLIDType() string
- func (r *LLMTokenUsage) XXX_GraphQLType() string
- type LLMTokenUsageID
- type Label
- func (r *Label) AsNode() Node
- func (r *Label) ID(ctx context.Context) (ID, error)
- func (r *Label) MarshalJSON() ([]byte, error)
- func (r *Label) Name(ctx context.Context) (string, error)
- func (r *Label) Value(ctx context.Context) (string, error)
- func (r *Label) WithGraphQLQuery(q *querybuilder.Selection) *Label
- func (r *Label) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Label) XXX_GraphQLIDType() string
- func (r *Label) XXX_GraphQLType() string
- type LabelID
- type ListTypeDef
- func (r *ListTypeDef) AsNode() Node
- func (r *ListTypeDef) ElementTypeDef() *TypeDef
- func (r *ListTypeDef) ID(ctx context.Context) (ID, error)
- func (r *ListTypeDef) MarshalJSON() ([]byte, error)
- func (r *ListTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *ListTypeDef
- func (r *ListTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *ListTypeDef) XXX_GraphQLIDType() string
- func (r *ListTypeDef) XXX_GraphQLType() string
- type ListTypeDefID
- type Loadable
- type Mise
- func (r *Mise) AsNode() Node
- func (r *Mise) Container(opts ...MiseContainerOpts) *Container
- func (r *Mise) ID(ctx context.Context) (ID, error)
- func (r *Mise) MarshalJSON() ([]byte, error)
- func (r *Mise) WithGraphQLQuery(q *querybuilder.Selection) *Mise
- func (r *Mise) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Mise) XXX_GraphQLIDType() string
- func (r *Mise) XXX_GraphQLType() string
- type MiseContainerOpts
- type MiseID
- type MiseOpts
- type Module
- func (r *Module) AsNode() Node
- func (r *Module) AsSyncer() Syncer
- func (r *Module) Check(name string) *Check
- func (r *Module) Checks(opts ...ModuleChecksOpts) *CheckGroup
- func (r *Module) Dependencies(ctx context.Context) ([]Module, error)
- func (r *Module) Description(ctx context.Context) (string, error)
- func (r *Module) Enums(ctx context.Context) ([]TypeDef, error)
- func (r *Module) GeneratedContextDirectory() *Directory
- func (r *Module) Generator(name string) *Generator
- func (r *Module) Generators(opts ...ModuleGeneratorsOpts) *GeneratorGroup
- func (r *Module) ID(ctx context.Context) (ID, error)
- func (r *Module) Interfaces(ctx context.Context) ([]TypeDef, error)
- func (r *Module) IntrospectionSchemaJSON() *File
- func (r *Module) MarshalJSON() ([]byte, error)
- func (r *Module) Name(ctx context.Context) (string, error)
- func (r *Module) Objects(ctx context.Context) ([]TypeDef, error)
- func (r *Module) Runtime() *Container
- func (r *Module) SDK() *SDKConfig
- func (r *Module) Serve(ctx context.Context, opts ...ModuleServeOpts) error
- func (r *Module) Services(opts ...ModuleServicesOpts) *UpGroup
- func (r *Module) Source() *ModuleSource
- func (r *Module) Sync(ctx context.Context) (*Module, error)
- func (r *Module) UserDefaults() *EnvFile
- func (r *Module) With(f WithModuleFunc) *Module
- func (r *Module) WithDescription(description string) *Module
- func (r *Module) WithEnum(enum *TypeDef) *Module
- func (r *Module) WithGraphQLQuery(q *querybuilder.Selection) *Module
- func (r *Module) WithInterface(iface *TypeDef) *Module
- func (r *Module) WithObject(object *TypeDef) *Module
- func (r *Module) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Module) XXX_GraphQLIDType() string
- func (r *Module) XXX_GraphQLType() string
- type ModuleChecksOpts
- type ModuleConfigClient
- func (r *ModuleConfigClient) AsNode() Node
- func (r *ModuleConfigClient) Directory(ctx context.Context) (string, error)
- func (r *ModuleConfigClient) Generator(ctx context.Context) (string, error)
- func (r *ModuleConfigClient) ID(ctx context.Context) (ID, error)
- func (r *ModuleConfigClient) MarshalJSON() ([]byte, error)
- func (r *ModuleConfigClient) WithGraphQLQuery(q *querybuilder.Selection) *ModuleConfigClient
- func (r *ModuleConfigClient) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *ModuleConfigClient) XXX_GraphQLIDType() string
- func (r *ModuleConfigClient) XXX_GraphQLType() string
- type ModuleConfigClientID
- type ModuleGeneratorsOpts
- type ModuleID
- type ModuleServeOpts
- type ModuleServicesOpts
- type ModuleSource
- func (r *ModuleSource) AsModule() *Module
- func (r *ModuleSource) AsNode() Node
- func (r *ModuleSource) AsString(ctx context.Context) (string, error)
- func (r *ModuleSource) AsSyncer() Syncer
- func (r *ModuleSource) Blueprint() *ModuleSource
- func (r *ModuleSource) CloneRef(ctx context.Context) (string, error)
- func (r *ModuleSource) Commit(ctx context.Context) (string, error)
- func (r *ModuleSource) ConfigClients(ctx context.Context) ([]ModuleConfigClient, error)
- func (r *ModuleSource) ConfigExists(ctx context.Context) (bool, error)
- func (r *ModuleSource) ContextDirectory() *Directory
- func (r *ModuleSource) Dependencies(ctx context.Context) ([]ModuleSource, error)
- func (r *ModuleSource) Digest(ctx context.Context) (string, error)
- func (r *ModuleSource) Directory(path string) *Directory
- func (r *ModuleSource) EngineVersion(ctx context.Context) (string, error)
- func (r *ModuleSource) GeneratedContextChangeset() *Changeset
- func (r *ModuleSource) GeneratedContextDirectory() *Directory
- func (r *ModuleSource) HTMLRepoURL(ctx context.Context) (string, error)
- func (r *ModuleSource) HTMLURL(ctx context.Context) (string, error)
- func (r *ModuleSource) ID(ctx context.Context) (ID, error)
- func (r *ModuleSource) IntrospectionSchemaJSON() *File
- func (r *ModuleSource) Kind(ctx context.Context) (ModuleSourceKind, error)
- func (r *ModuleSource) LocalContextDirectoryPath(ctx context.Context) (string, error)
- func (r *ModuleSource) MarshalJSON() ([]byte, error)
- func (r *ModuleSource) ModuleName(ctx context.Context) (string, error)
- func (r *ModuleSource) ModuleOriginalName(ctx context.Context) (string, error)
- func (r *ModuleSource) OriginalSubpath(ctx context.Context) (string, error)
- func (r *ModuleSource) Pin(ctx context.Context) (string, error)
- func (r *ModuleSource) RepoRootPath(ctx context.Context) (string, error)
- func (r *ModuleSource) SDK() *SDKConfig
- func (r *ModuleSource) SourceRootSubpath(ctx context.Context) (string, error)
- func (r *ModuleSource) SourceSubpath(ctx context.Context) (string, error)
- func (r *ModuleSource) Sync(ctx context.Context) (*ModuleSource, error)
- func (r *ModuleSource) Toolchains(ctx context.Context) ([]ModuleSource, error)
- func (r *ModuleSource) UserDefaults() *EnvFile
- func (r *ModuleSource) Version(ctx context.Context) (string, error)
- func (r *ModuleSource) With(f WithModuleSourceFunc) *ModuleSource
- func (r *ModuleSource) WithBlueprint(blueprint *ModuleSource) *ModuleSource
- func (r *ModuleSource) WithClient(generator string, outputDir string) *ModuleSource
- func (r *ModuleSource) WithDependencies(dependencies []*ModuleSource) *ModuleSource
- func (r *ModuleSource) WithEngineVersion(version string) *ModuleSource
- func (r *ModuleSource) WithExperimentalFeatures(features []ModuleSourceExperimentalFeature) *ModuleSource
- func (r *ModuleSource) WithGraphQLQuery(q *querybuilder.Selection) *ModuleSource
- func (r *ModuleSource) WithIncludes(patterns []string) *ModuleSource
- func (r *ModuleSource) WithName(name string) *ModuleSource
- func (r *ModuleSource) WithSDK(source string) *ModuleSource
- func (r *ModuleSource) WithSourceSubpath(path string) *ModuleSource
- func (r *ModuleSource) WithToolchains(toolchains []*ModuleSource) *ModuleSource
- func (r *ModuleSource) WithUpdateBlueprint() *ModuleSource
- func (r *ModuleSource) WithUpdateDependencies(dependencies []string) *ModuleSource
- func (r *ModuleSource) WithUpdateToolchains(toolchains []string) *ModuleSource
- func (r *ModuleSource) WithUpdatedClients(clients []string) *ModuleSource
- func (r *ModuleSource) WithoutBlueprint() *ModuleSource
- func (r *ModuleSource) WithoutClient(path string) *ModuleSource
- func (r *ModuleSource) WithoutDependencies(dependencies []string) *ModuleSource
- func (r *ModuleSource) WithoutExperimentalFeatures(features []ModuleSourceExperimentalFeature) *ModuleSource
- func (r *ModuleSource) WithoutToolchains(toolchains []string) *ModuleSource
- func (r *ModuleSource) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *ModuleSource) XXX_GraphQLIDType() string
- func (r *ModuleSource) XXX_GraphQLType() string
- type ModuleSourceExperimentalFeature
- func (ModuleSourceExperimentalFeature) IsEnum()
- func (v *ModuleSourceExperimentalFeature) MarshalJSON() ([]byte, error)
- func (v ModuleSourceExperimentalFeature) Name() string
- func (v *ModuleSourceExperimentalFeature) UnmarshalJSON(dt []byte) error
- func (v ModuleSourceExperimentalFeature) Value() string
- type ModuleSourceID
- type ModuleSourceKind
- type ModuleSourceOpts
- type NetworkProtocol
- type Node
- type NodeClient
- func (r *NodeClient) ID(ctx context.Context) (ID, error)
- func (r *NodeClient) MarshalJSON() ([]byte, error)
- func (r *NodeClient) WithGraphQLQuery(q *querybuilder.Selection) *NodeClient
- func (r *NodeClient) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *NodeClient) XXX_GraphQLIDType() string
- func (r *NodeClient) XXX_GraphQLType() string
- type ObjectTypeDef
- func (r *ObjectTypeDef) AsNode() Node
- func (r *ObjectTypeDef) Constructor() *Function
- func (r *ObjectTypeDef) Deprecated(ctx context.Context) (string, error)
- func (r *ObjectTypeDef) Description(ctx context.Context) (string, error)
- func (r *ObjectTypeDef) Fields(ctx context.Context) ([]FieldTypeDef, error)
- func (r *ObjectTypeDef) Functions(ctx context.Context) ([]Function, error)
- func (r *ObjectTypeDef) ID(ctx context.Context) (ID, error)
- func (r *ObjectTypeDef) MarshalJSON() ([]byte, error)
- func (r *ObjectTypeDef) Name(ctx context.Context) (string, error)
- func (r *ObjectTypeDef) SourceMap() *SourceMap
- func (r *ObjectTypeDef) SourceModuleName(ctx context.Context) (string, error)
- func (r *ObjectTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *ObjectTypeDef
- func (r *ObjectTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *ObjectTypeDef) XXX_GraphQLIDType() string
- func (r *ObjectTypeDef) XXX_GraphQLType() string
- type ObjectTypeDefID
- type PipelineLabel
- type Platform
- type Port
- func (r *Port) AsNode() Node
- func (r *Port) Description(ctx context.Context) (string, error)
- func (r *Port) ExperimentalSkipHealthcheck(ctx context.Context) (bool, error)
- func (r *Port) ID(ctx context.Context) (ID, error)
- func (r *Port) MarshalJSON() ([]byte, error)
- func (r *Port) Port(ctx context.Context) (int, error)
- func (r *Port) Protocol(ctx context.Context) (NetworkProtocol, error)
- func (r *Port) WithGraphQLQuery(q *querybuilder.Selection) *Port
- func (r *Port) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Port) XXX_GraphQLIDType() string
- func (r *Port) XXX_GraphQLType() string
- type PortForward
- type PortID
- type Query
- func (r *Query) Address(value string) *Address
- func (r *Query) Arch() *Arch
- func (r *Query) Archive(opts ...ArchiveOpts) *Archive
- func (r *Query) AsNode() Node
- func (r *Query) Binary(opts ...BinaryOpts) *File
- func (r *Query) CacheVolume(key string, opts ...CacheVolumeOpts) *CacheVolume
- func (r *Query) Changeset() *Changeset
- func (r *Query) Cloud() *Cloud
- func (r *Query) Container(opts ...ContainerOpts) *Container
- func (r *Query) CurrentEnv() *Env
- func (r *Query) CurrentFunctionCall() *FunctionCall
- func (r *Query) CurrentModule() *CurrentModule
- func (r *Query) CurrentTypeDefs(ctx context.Context, opts ...CurrentTypeDefsOpts) ([]TypeDef, error)
- func (r *Query) CurrentWorkspace() *Workspace
- func (r *Query) DefaultPlatform(ctx context.Context) (Platform, error)
- func (r *Query) Directory() *Directory
- func (r *Query) Engine() *Engine
- func (r *Query) Env(opts ...EnvOpts) *Env
- func (r *Query) EnvFile(opts ...EnvFileOpts) *EnvFile
- func (r *Query) Error(message string) *Error
- func (r *Query) File(name string, contents string, opts ...FileOpts) *File
- func (r *Query) Function(name string, returnType *TypeDef) *Function
- func (r *Query) GeneratedCode(code *Directory) *GeneratedCode
- func (r *Query) Git(url string, opts ...GitOpts) *GitRepository
- func (r *Query) Go(opts ...GoOpts) *Go
- func (r *Query) HTTP(url string, opts ...HTTPOpts) *File
- func (r *Query) Host() *Host
- func (r *Query) ID(ctx context.Context) (ID, error)
- func (r *Query) JSON() *JSONValue
- func (r *Query) LLM(opts ...LLMOpts) *LLM
- func (r *Query) LoadAddressFromID(id AddressID) *Address
- func (r *Query) LoadArchFromID(id ArchID) *Arch
- func (r *Query) LoadArchiveFromID(id ArchiveID) *Archive
- func (r *Query) LoadBindingFromID(id BindingID) *Binding
- func (r *Query) LoadCacheVolumeFromID(id CacheVolumeID) *CacheVolume
- func (r *Query) LoadChangesetFromID(id ChangesetID) *Changeset
- func (r *Query) LoadCheckFromID(id CheckID) *Check
- func (r *Query) LoadCheckGroupFromID(id CheckGroupID) *CheckGroup
- func (r *Query) LoadClientFilesyncMirrorFromID(id ClientFilesyncMirrorID) *ClientFilesyncMirror
- func (r *Query) LoadCloudFromID(id CloudID) *Cloud
- func (r *Query) LoadContainerFromID(id ContainerID) *Container
- func (r *Query) LoadCurrentModuleFromID(id CurrentModuleID) *CurrentModule
- func (r *Query) LoadDiffStatFromID(id DiffStatID) *DiffStat
- func (r *Query) LoadDirectoryFromID(id DirectoryID) *Directory
- func (r *Query) LoadEngineCacheEntryFromID(id EngineCacheEntryID) *EngineCacheEntry
- func (r *Query) LoadEngineCacheEntrySetFromID(id EngineCacheEntrySetID) *EngineCacheEntrySet
- func (r *Query) LoadEngineCacheFromID(id EngineCacheID) *EngineCache
- func (r *Query) LoadEngineFromID(id EngineID) *Engine
- func (r *Query) LoadEnumTypeDefFromID(id EnumTypeDefID) *EnumTypeDef
- func (r *Query) LoadEnumValueTypeDefFromID(id EnumValueTypeDefID) *EnumValueTypeDef
- func (r *Query) LoadEnvFileFromID(id EnvFileID) *EnvFile
- func (r *Query) LoadEnvFromID(id EnvID) *Env
- func (r *Query) LoadEnvVariableFromID(id EnvVariableID) *EnvVariable
- func (r *Query) LoadErrorFromID(id ErrorID) *Error
- func (r *Query) LoadErrorValueFromID(id ErrorValueID) *ErrorValue
- func (r *Query) LoadExportableFromID(id ExportableID) Exportable
- func (r *Query) LoadFieldTypeDefFromID(id FieldTypeDefID) *FieldTypeDef
- func (r *Query) LoadFileFromID(id FileID) *File
- func (r *Query) LoadFunctionArgFromID(id FunctionArgID) *FunctionArg
- func (r *Query) LoadFunctionCallArgValueFromID(id FunctionCallArgValueID) *FunctionCallArgValue
- func (r *Query) LoadFunctionCallFromID(id FunctionCallID) *FunctionCall
- func (r *Query) LoadFunctionFromID(id FunctionID) *Function
- func (r *Query) LoadGeneratedCodeFromID(id GeneratedCodeID) *GeneratedCode
- func (r *Query) LoadGeneratorFromID(id GeneratorID) *Generator
- func (r *Query) LoadGeneratorGroupFromID(id GeneratorGroupID) *GeneratorGroup
- func (r *Query) LoadGitRefFromID(id GitRefID) *GitRef
- func (r *Query) LoadGitRepositoryFromID(id GitRepositoryID) *GitRepository
- func (r *Query) LoadGoFromID(id GoID) *Go
- func (r *Query) LoadHTTPStateFromID(id HTTPStateID) *HTTPState
- func (r *Query) LoadHealthcheckConfigFromID(id HealthcheckConfigID) *HealthcheckConfig
- func (r *Query) LoadHostFromID(id HostID) *Host
- func (r *Query) LoadInputTypeDefFromID(id InputTypeDefID) *InputTypeDef
- func (r *Query) LoadInterfaceTypeDefFromID(id InterfaceTypeDefID) *InterfaceTypeDef
- func (r *Query) LoadJSONValueFromID(id JSONValueID) *JSONValue
- func (r *Query) LoadLLMFromID(id LLMID) *LLM
- func (r *Query) LoadLLMTokenUsageFromID(id LLMTokenUsageID) *LLMTokenUsage
- func (r *Query) LoadLabelFromID(id LabelID) *Label
- func (r *Query) LoadListTypeDefFromID(id ListTypeDefID) *ListTypeDef
- func (r *Query) LoadMiseFromID(id MiseID) *Mise
- func (r *Query) LoadModuleConfigClientFromID(id ModuleConfigClientID) *ModuleConfigClient
- func (r *Query) LoadModuleFromID(id ModuleID) *Module
- func (r *Query) LoadModuleSourceFromID(id ModuleSourceID) *ModuleSource
- func (r *Query) LoadObjectTypeDefFromID(id ObjectTypeDefID) *ObjectTypeDef
- func (r *Query) LoadPortFromID(id PortID) *Port
- func (r *Query) LoadRemoteGitMirrorFromID(id RemoteGitMirrorID) *RemoteGitMirror
- func (r *Query) LoadSDKConfigFromID(id SDKConfigID) *SDKConfig
- func (r *Query) LoadScalarTypeDefFromID(id ScalarTypeDefID) *ScalarTypeDef
- func (r *Query) LoadSearchResultFromID(id SearchResultID) *SearchResult
- func (r *Query) LoadSearchSubmatchFromID(id SearchSubmatchID) *SearchSubmatch
- func (r *Query) LoadSecretFromID(id SecretID) *Secret
- func (r *Query) LoadServiceFromID(id ServiceID) *Service
- func (r *Query) LoadSindriDevFromID(id SindriDevID) *SindriDev
- func (r *Query) LoadSindriFromID(id SindriID) *Sindri
- func (r *Query) LoadSocketFromID(id SocketID) *Socket
- func (r *Query) LoadSourceMapFromID(id SourceMapID) *SourceMap
- func (r *Query) LoadStatFromID(id StatID) *Stat
- func (r *Query) LoadSyncerFromID(id SyncerID) Syncer
- func (r *Query) LoadTerminalFromID(id TerminalID) *Terminal
- func (r *Query) LoadTypeDefFromID(id TypeDefID) *TypeDef
- func (r *Query) LoadUpFromID(id UpID) *Up
- func (r *Query) LoadUpGroupFromID(id UpGroupID) *UpGroup
- func (r *Query) LoadWolfiFromID(id WolfiID) *Wolfi
- func (r *Query) LoadWorkspaceFromID(id WorkspaceID) *Workspace
- func (r *Query) MarshalJSON() ([]byte, error)
- func (r *Query) Mise(opts ...MiseOpts) *Mise
- func (r *Query) Module() *Module
- func (r *Query) ModuleSource(refString string, opts ...ModuleSourceOpts) *ModuleSource
- func (r *Query) Node(id ID) Node
- func (r *Query) Secret(uri string, opts ...SecretOpts) *Secret
- func (r *Query) Service(opts ...ServiceOpts) *Service
- func (r *Query) SetSecret(name string, plaintext string) *Secret
- func (r *Query) Sindri() *Sindri
- func (r *Query) SourceMap(filename string, line int, column int) *SourceMap
- func (r *Query) Tag(ctx context.Context, opts ...TagOpts) (string, error)
- func (r *Query) Test(ctx context.Context, opts ...TestOpts) error
- func (r *Query) TypeDef() *TypeDef
- func (r *Query) Version(ctx context.Context, opts ...VersionOpts) (string, error)
- func (r *Query) WithGraphQLQuery(q *querybuilder.Selection) *Query
- func (r *Query) Wolfi() *Wolfi
- func (r *Query) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Query) XXX_GraphQLIDType() string
- func (r *Query) XXX_GraphQLType() string
- type RemoteGitMirror
- func (r *RemoteGitMirror) AsNode() Node
- func (r *RemoteGitMirror) ID(ctx context.Context) (ID, error)
- func (r *RemoteGitMirror) MarshalJSON() ([]byte, error)
- func (r *RemoteGitMirror) WithGraphQLQuery(q *querybuilder.Selection) *RemoteGitMirror
- func (r *RemoteGitMirror) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *RemoteGitMirror) XXX_GraphQLIDType() string
- func (r *RemoteGitMirror) XXX_GraphQLType() string
- type RemoteGitMirrorID
- type Request
- type Response
- type ReturnType
- type SDKConfig
- func (r *SDKConfig) AsNode() Node
- func (r *SDKConfig) Debug(ctx context.Context) (bool, error)
- func (r *SDKConfig) ID(ctx context.Context) (ID, error)
- func (r *SDKConfig) MarshalJSON() ([]byte, error)
- func (r *SDKConfig) Source(ctx context.Context) (string, error)
- func (r *SDKConfig) WithGraphQLQuery(q *querybuilder.Selection) *SDKConfig
- func (r *SDKConfig) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *SDKConfig) XXX_GraphQLIDType() string
- func (r *SDKConfig) XXX_GraphQLType() string
- type SDKConfigID
- type ScalarTypeDef
- func (r *ScalarTypeDef) AsNode() Node
- func (r *ScalarTypeDef) Description(ctx context.Context) (string, error)
- func (r *ScalarTypeDef) ID(ctx context.Context) (ID, error)
- func (r *ScalarTypeDef) MarshalJSON() ([]byte, error)
- func (r *ScalarTypeDef) Name(ctx context.Context) (string, error)
- func (r *ScalarTypeDef) SourceModuleName(ctx context.Context) (string, error)
- func (r *ScalarTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *ScalarTypeDef
- func (r *ScalarTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *ScalarTypeDef) XXX_GraphQLIDType() string
- func (r *ScalarTypeDef) XXX_GraphQLType() string
- type ScalarTypeDefID
- type SearchResult
- func (r *SearchResult) AbsoluteOffset(ctx context.Context) (int, error)
- func (r *SearchResult) AsNode() Node
- func (r *SearchResult) FilePath(ctx context.Context) (string, error)
- func (r *SearchResult) ID(ctx context.Context) (ID, error)
- func (r *SearchResult) LineNumber(ctx context.Context) (int, error)
- func (r *SearchResult) MarshalJSON() ([]byte, error)
- func (r *SearchResult) MatchedLines(ctx context.Context) (string, error)
- func (r *SearchResult) Submatches(ctx context.Context) ([]SearchSubmatch, error)
- func (r *SearchResult) WithGraphQLQuery(q *querybuilder.Selection) *SearchResult
- func (r *SearchResult) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *SearchResult) XXX_GraphQLIDType() string
- func (r *SearchResult) XXX_GraphQLType() string
- type SearchResultID
- type SearchSubmatch
- func (r *SearchSubmatch) AsNode() Node
- func (r *SearchSubmatch) End(ctx context.Context) (int, error)
- func (r *SearchSubmatch) ID(ctx context.Context) (ID, error)
- func (r *SearchSubmatch) MarshalJSON() ([]byte, error)
- func (r *SearchSubmatch) Start(ctx context.Context) (int, error)
- func (r *SearchSubmatch) Text(ctx context.Context) (string, error)
- func (r *SearchSubmatch) WithGraphQLQuery(q *querybuilder.Selection) *SearchSubmatch
- func (r *SearchSubmatch) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *SearchSubmatch) XXX_GraphQLIDType() string
- func (r *SearchSubmatch) XXX_GraphQLType() string
- type SearchSubmatchID
- type Secret
- func (r *Secret) AsNode() Node
- func (r *Secret) ID(ctx context.Context) (ID, error)
- func (r *Secret) MarshalJSON() ([]byte, error)
- func (r *Secret) Name(ctx context.Context) (string, error)
- func (r *Secret) Plaintext(ctx context.Context) (string, error)
- func (r *Secret) URI(ctx context.Context) (string, error)
- func (r *Secret) WithGraphQLQuery(q *querybuilder.Selection) *Secret
- func (r *Secret) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Secret) XXX_GraphQLIDType() string
- func (r *Secret) XXX_GraphQLType() string
- type SecretID
- type SecretOpts
- type Service
- func (r *Service) AsNode() Node
- func (r *Service) AsSyncer() Syncer
- func (r *Service) Endpoint(ctx context.Context, opts ...ServiceEndpointOpts) (string, error)
- func (r *Service) Hostname(ctx context.Context) (string, error)
- func (r *Service) ID(ctx context.Context) (ID, error)
- func (r *Service) MarshalJSON() ([]byte, error)
- func (r *Service) Ports(ctx context.Context) ([]Port, error)
- func (r *Service) Start(ctx context.Context) (*Service, error)
- func (r *Service) Stop(ctx context.Context, opts ...ServiceStopOpts) (*Service, error)
- func (r *Service) Sync(ctx context.Context) (*Service, error)
- func (r *Service) Terminal(opts ...ServiceTerminalOpts) *Service
- func (r *Service) Up(ctx context.Context, opts ...ServiceUpOpts) error
- func (r *Service) With(f WithServiceFunc) *Service
- func (r *Service) WithGraphQLQuery(q *querybuilder.Selection) *Service
- func (r *Service) WithHostname(hostname string) *Service
- func (r *Service) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Service) XXX_GraphQLIDType() string
- func (r *Service) XXX_GraphQLType() string
- type ServiceEndpointOpts
- type ServiceID
- type ServiceOpts
- type ServiceStopOpts
- type ServiceTerminalOpts
- type ServiceUpOpts
- type Sindri
- func (r *Sindri) AsNode() Node
- func (r *Sindri) ID(ctx context.Context) (ID, error)
- func (r *Sindri) Image(name string, reference string) *Container
- func (r *Sindri) MarshalJSON() ([]byte, error)
- func (r *Sindri) WithGraphQLQuery(q *querybuilder.Selection) *Sindri
- func (r *Sindri) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Sindri) XXX_GraphQLIDType() string
- func (r *Sindri) XXX_GraphQLType() string
- type SindriDev
- func (r *SindriDev) AsNode() Node
- func (r *SindriDev) Binary(opts ...SindriDevBinaryOpts) *File
- func (r *SindriDev) Container(opts ...SindriDevContainerOpts) *Container
- func (r *SindriDev) ID(ctx context.Context) (ID, error)
- func (r *SindriDev) MarshalJSON() ([]byte, error)
- func (r *SindriDev) Service(opts ...SindriDevServiceOpts) *Service
- func (r *SindriDev) Tag(ctx context.Context, opts ...SindriDevTagOpts) (string, error)
- func (r *SindriDev) Test(ctx context.Context, opts ...SindriDevTestOpts) error
- func (r *SindriDev) Version(ctx context.Context, opts ...SindriDevVersionOpts) (string, error)
- func (r *SindriDev) WithGraphQLQuery(q *querybuilder.Selection) *SindriDev
- func (r *SindriDev) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *SindriDev) XXX_GraphQLIDType() string
- func (r *SindriDev) XXX_GraphQLType() string
- type SindriDevBinaryOpts
- type SindriDevContainerOpts
- type SindriDevID
- type SindriDevServiceOpts
- type SindriDevTagOpts
- type SindriDevTestOpts
- type SindriDevVersionOpts
- type SindriID
- type Socket
- func (r *Socket) AsNode() Node
- func (r *Socket) ID(ctx context.Context) (ID, error)
- func (r *Socket) MarshalJSON() ([]byte, error)
- func (r *Socket) WithGraphQLQuery(q *querybuilder.Selection) *Socket
- func (r *Socket) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Socket) XXX_GraphQLIDType() string
- func (r *Socket) XXX_GraphQLType() string
- type SocketID
- type SourceMap
- func (r *SourceMap) AsNode() Node
- func (r *SourceMap) Column(ctx context.Context) (int, error)
- func (r *SourceMap) Filename(ctx context.Context) (string, error)
- func (r *SourceMap) ID(ctx context.Context) (ID, error)
- func (r *SourceMap) Line(ctx context.Context) (int, error)
- func (r *SourceMap) MarshalJSON() ([]byte, error)
- func (r *SourceMap) Module(ctx context.Context) (string, error)
- func (r *SourceMap) URL(ctx context.Context) (string, error)
- func (r *SourceMap) WithGraphQLQuery(q *querybuilder.Selection) *SourceMap
- func (r *SourceMap) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *SourceMap) XXX_GraphQLIDType() string
- func (r *SourceMap) XXX_GraphQLType() string
- type SourceMapID
- type Stat
- func (r *Stat) AsNode() Node
- func (r *Stat) FileType(ctx context.Context) (FileType, error)
- func (r *Stat) ID(ctx context.Context) (ID, error)
- func (r *Stat) MarshalJSON() ([]byte, error)
- func (r *Stat) Name(ctx context.Context) (string, error)
- func (r *Stat) Permissions(ctx context.Context) (int, error)
- func (r *Stat) Size(ctx context.Context) (int, error)
- func (r *Stat) WithGraphQLQuery(q *querybuilder.Selection) *Stat
- func (r *Stat) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Stat) XXX_GraphQLIDType() string
- func (r *Stat) XXX_GraphQLType() string
- type StatID
- type Syncer
- type SyncerClient
- func (r *SyncerClient) Concrete(ctx context.Context) (Node, error)
- func (r *SyncerClient) ID(ctx context.Context) (ID, error)
- func (r *SyncerClient) MarshalJSON() ([]byte, error)
- func (r *SyncerClient) Sync(ctx context.Context) (Syncer, error)
- func (r *SyncerClient) WithGraphQLQuery(q *querybuilder.Selection) *SyncerClient
- func (r *SyncerClient) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *SyncerClient) XXX_GraphQLIDType() string
- func (r *SyncerClient) XXX_GraphQLType() string
- type SyncerID
- type TagOpts
- type Terminal
- func (r *Terminal) AsNode() Node
- func (r *Terminal) AsSyncer() Syncer
- func (r *Terminal) ID(ctx context.Context) (ID, error)
- func (r *Terminal) MarshalJSON() ([]byte, error)
- func (r *Terminal) Sync(ctx context.Context) (*Terminal, error)
- func (r *Terminal) WithGraphQLQuery(q *querybuilder.Selection) *Terminal
- func (r *Terminal) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Terminal) XXX_GraphQLIDType() string
- func (r *Terminal) XXX_GraphQLType() string
- type TerminalID
- type TestOpts
- type TypeDef
- func (r *TypeDef) AsEnum() *EnumTypeDef
- func (r *TypeDef) AsInput() *InputTypeDef
- func (r *TypeDef) AsInterface() *InterfaceTypeDef
- func (r *TypeDef) AsList() *ListTypeDef
- func (r *TypeDef) AsNode() Node
- func (r *TypeDef) AsObject() *ObjectTypeDef
- func (r *TypeDef) AsScalar() *ScalarTypeDef
- func (r *TypeDef) ID(ctx context.Context) (ID, error)
- func (r *TypeDef) Kind(ctx context.Context) (TypeDefKind, error)
- func (r *TypeDef) MarshalJSON() ([]byte, error)
- func (r *TypeDef) Name(ctx context.Context) (string, error)
- func (r *TypeDef) Optional(ctx context.Context) (bool, error)
- func (r *TypeDef) With(f WithTypeDefFunc) *TypeDef
- func (r *TypeDef) WithConstructor(function *Function) *TypeDef
- func (r *TypeDef) WithEnum(name string, opts ...TypeDefWithEnumOpts) *TypeDef
- func (r *TypeDef) WithEnumMember(name string, opts ...TypeDefWithEnumMemberOpts) *TypeDef
- func (r *TypeDef) WithEnumValue(value string, opts ...TypeDefWithEnumValueOpts) *TypeDefdeprecated
- func (r *TypeDef) WithField(name string, typeDef *TypeDef, opts ...TypeDefWithFieldOpts) *TypeDef
- func (r *TypeDef) WithFunction(function *Function) *TypeDef
- func (r *TypeDef) WithGraphQLQuery(q *querybuilder.Selection) *TypeDef
- func (r *TypeDef) WithInterface(name string, opts ...TypeDefWithInterfaceOpts) *TypeDef
- func (r *TypeDef) WithKind(kind TypeDefKind) *TypeDef
- func (r *TypeDef) WithListOf(elementType *TypeDef) *TypeDef
- func (r *TypeDef) WithObject(name string, opts ...TypeDefWithObjectOpts) *TypeDef
- func (r *TypeDef) WithOptional(optional bool) *TypeDef
- func (r *TypeDef) WithScalar(name string, opts ...TypeDefWithScalarOpts) *TypeDef
- func (r *TypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *TypeDef) XXX_GraphQLIDType() string
- func (r *TypeDef) XXX_GraphQLType() string
- type TypeDefID
- type TypeDefKind
- type TypeDefWithEnumMemberOpts
- type TypeDefWithEnumOpts
- type TypeDefWithEnumValueOpts
- type TypeDefWithFieldOpts
- type TypeDefWithInterfaceOpts
- type TypeDefWithObjectOpts
- type TypeDefWithScalarOpts
- type Up
- func (r *Up) AsNode() Node
- func (r *Up) Description(ctx context.Context) (string, error)
- func (r *Up) ID(ctx context.Context) (ID, error)
- func (r *Up) MarshalJSON() ([]byte, error)
- func (r *Up) Name(ctx context.Context) (string, error)
- func (r *Up) OriginalModule() *Module
- func (r *Up) Path(ctx context.Context) ([]string, error)
- func (r *Up) Run() *Up
- func (r *Up) With(f WithUpFunc) *Up
- func (r *Up) WithGraphQLQuery(q *querybuilder.Selection) *Up
- func (r *Up) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Up) XXX_GraphQLIDType() string
- func (r *Up) XXX_GraphQLType() string
- type UpGroup
- func (r *UpGroup) AsNode() Node
- func (r *UpGroup) ID(ctx context.Context) (ID, error)
- func (r *UpGroup) List(ctx context.Context) ([]Up, error)
- func (r *UpGroup) MarshalJSON() ([]byte, error)
- func (r *UpGroup) Run() *UpGroup
- func (r *UpGroup) With(f WithUpGroupFunc) *UpGroup
- func (r *UpGroup) WithGraphQLQuery(q *querybuilder.Selection) *UpGroup
- func (r *UpGroup) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *UpGroup) XXX_GraphQLIDType() string
- func (r *UpGroup) XXX_GraphQLType() string
- type UpGroupID
- type UpID
- type VersionOpts
- type Void
- type WithChangesetFunc
- type WithCheckFunc
- type WithCheckGroupFunc
- type WithContainerFunc
- type WithDirectoryFunc
- type WithEnvFileFunc
- type WithEnvFunc
- type WithErrorFunc
- type WithFileFunc
- type WithFunctionFunc
- type WithGeneratedCodeFunc
- type WithGeneratorFunc
- type WithGeneratorGroupFunc
- type WithGitRefFunc
- type WithJSONValueFunc
- type WithLLMFunc
- type WithModuleFunc
- type WithModuleSourceFunc
- type WithServiceFunc
- type WithTypeDefFunc
- type WithUpFunc
- type WithUpGroupFunc
- type Wolfi
- func (r *Wolfi) AsNode() Node
- func (r *Wolfi) Container(opts ...WolfiContainerOpts) *Container
- func (r *Wolfi) ID(ctx context.Context) (ID, error)
- func (r *Wolfi) MarshalJSON() ([]byte, error)
- func (r *Wolfi) WithGraphQLQuery(q *querybuilder.Selection) *Wolfi
- func (r *Wolfi) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Wolfi) XXX_GraphQLIDType() string
- func (r *Wolfi) XXX_GraphQLType() string
- type WolfiContainerOpts
- type WolfiID
- type Workspace
- func (r *Workspace) Address(ctx context.Context) (string, error)
- func (r *Workspace) AsNode() Node
- func (r *Workspace) Checks(opts ...WorkspaceChecksOpts) *CheckGroup
- func (r *Workspace) ClientID(ctx context.Context) (string, error)
- func (r *Workspace) ConfigPath(ctx context.Context) (string, error)
- func (r *Workspace) Directory(path string, opts ...WorkspaceDirectoryOpts) *Directory
- func (r *Workspace) File(path string) *File
- func (r *Workspace) FindUp(ctx context.Context, name string, opts ...WorkspaceFindUpOpts) (string, error)
- func (r *Workspace) Generators(opts ...WorkspaceGeneratorsOpts) *GeneratorGroup
- func (r *Workspace) HasConfig(ctx context.Context) (bool, error)
- func (r *Workspace) ID(ctx context.Context) (ID, error)
- func (r *Workspace) Initialized(ctx context.Context) (bool, error)
- func (r *Workspace) MarshalJSON() ([]byte, error)
- func (r *Workspace) Path(ctx context.Context) (string, error)
- func (r *Workspace) Services(opts ...WorkspaceServicesOpts) *UpGroup
- func (r *Workspace) Update() *Changeset
- func (r *Workspace) WithGraphQLQuery(q *querybuilder.Selection) *Workspace
- func (r *Workspace) XXX_GraphQLID(ctx context.Context) (string, error)
- func (r *Workspace) XXX_GraphQLIDType() string
- func (r *Workspace) XXX_GraphQLType() string
- type WorkspaceChecksOpts
- type WorkspaceDirectoryOpts
- type WorkspaceFindUpOpts
- type WorkspaceGeneratorsOpts
- type WorkspaceID
- type WorkspaceServicesOpts
Constants ¶
This section is empty.
Variables ¶
var WithConn = dagger.WithConn
WithConn sets the engine connection explicitly
var WithEnvironmentVariable = dagger.WithEnvironmentVariable
WithEnvironmentVariable sets an environment variable in the CLI subprocess
var WithLoadWorkspaceModules = dagger.WithLoadWorkspaceModules
WithLoadWorkspaceModules opts this client into loading workspace modules based on the working directory when the session is created via the CLI.
var WithLogOutput = dagger.WithLogOutput
WithLogOutput sets the progress writer
var WithRunnerHost = dagger.WithRunnerHost
WithRunnerHost sets the runner host URL
var WithVerbosity = dagger.WithVerbosity
WithVerbosity sets the verbosity level for the progress output
var WithVersionOverride = dagger.WithVersionOverride
WithVersionOverride requests a specific schema version from the engine
var WithWorkdir = dagger.WithWorkdir
WithWorkdir sets the engine workdir
var WithWorkspace = dagger.WithWorkspace
WithWorkspace sets the workspace binding for the engine session
Functions ¶
func Load ¶
Load loads a node by its ID with type safety. It verifies that the node exists and matches the expected type before returning.
The type parameter can be a concrete type or an interface. The __typename check is done through the inline fragment so that interface loads succeed when the concrete type (e.g. "Impl") implements the expected interface (e.g. "CustomIface").
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
A standardized address to load containers, directories, secrets, and other object types. Address format depends on the type, and is validated at type selection.
func (*Address) AsNode ¶
AsNode returns this Address as a Node. This is a local type conversion — no GraphQL call.
func (*Address) Directory ¶
func (r *Address) Directory(opts ...AddressDirectoryOpts) *Directory
Load a directory from the address.
func (*Address) File ¶
func (r *Address) File(opts ...AddressFileOpts) *File
Load a file from the address.
func (*Address) GitRepository ¶
func (r *Address) GitRepository() *GitRepository
Load a git repository from the address.
func (*Address) MarshalJSON ¶
func (*Address) WithGraphQLQuery ¶
func (r *Address) WithGraphQLQuery(q *querybuilder.Selection) *Address
func (*Address) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Address) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Address) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type AddressDirectoryOpts ¶
AddressDirectoryOpts contains options for Address.Directory
type AddressFileOpts ¶
AddressFileOpts contains options for Address.File
type Arch ¶
type Arch struct {
// contains filtered or unexported fields
}
func (*Arch) AsNode ¶
AsNode returns this Arch as a Node. This is a local type conversion — no GraphQL call.
func (*Arch) MarshalJSON ¶
func (*Arch) Microsoft ¶
Microsoft returns the architecture in Microsoft naming (e.g. "x64", "arm64").
func (*Arch) WithGraphQLQuery ¶
func (r *Arch) WithGraphQLQuery(q *querybuilder.Selection) *Arch
func (*Arch) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Arch) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Arch) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Archive ¶
type Archive struct {
// contains filtered or unexported fields
}
func (*Archive) AsNode ¶
AsNode returns this Archive as a Node. This is a local type conversion — no GraphQL call.
func (*Archive) MarshalJSON ¶
func (*Archive) WithGraphQLQuery ¶
func (r *Archive) WithGraphQLQuery(q *querybuilder.Selection) *Archive
func (*Archive) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Archive) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Archive) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ArchiveOpts ¶
type ArchiveOpts struct {
Container *Container // archive (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/archive/main.go#L18)
}
ArchiveOpts contains options for Query.Archive
type ArchiveTarOpts ¶
type ArchiveTarOpts struct {
Gzip bool // archive (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/archive/main.go#L32)
}
ArchiveTarOpts contains options for Archive.Tar
type BinaryOpts ¶
type BinaryOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:179:2)
}
BinaryOpts contains options for Query.Binary
type Binding ¶
type Binding struct {
// contains filtered or unexported fields
}
func (*Binding) AsCacheVolume ¶
func (r *Binding) AsCacheVolume() *CacheVolume
Retrieve the binding value, as type CacheVolume
func (*Binding) AsChangeset ¶
Retrieve the binding value, as type Changeset
func (*Binding) AsCheckGroup ¶
func (r *Binding) AsCheckGroup() *CheckGroup
Retrieve the binding value, as type CheckGroup
func (*Binding) AsContainer ¶
Retrieve the binding value, as type Container
func (*Binding) AsDiffStat ¶
Retrieve the binding value, as type DiffStat
func (*Binding) AsDirectory ¶
Retrieve the binding value, as type Directory
func (*Binding) AsGenerator ¶
Retrieve the binding value, as type Generator
func (*Binding) AsGeneratorGroup ¶
func (r *Binding) AsGeneratorGroup() *GeneratorGroup
Retrieve the binding value, as type GeneratorGroup
func (*Binding) AsGitRepository ¶
func (r *Binding) AsGitRepository() *GitRepository
Retrieve the binding value, as type GitRepository
func (*Binding) AsHTTPState ¶
Retrieve the binding value, as type HTTPState
func (*Binding) AsJSONValue ¶
Retrieve the binding value, as type JSONValue
func (*Binding) AsModuleConfigClient ¶
func (r *Binding) AsModuleConfigClient() *ModuleConfigClient
Retrieve the binding value, as type ModuleConfigClient
func (*Binding) AsModuleSource ¶
func (r *Binding) AsModuleSource() *ModuleSource
Retrieve the binding value, as type ModuleSource
func (*Binding) AsNode ¶
AsNode returns this Binding as a Node. This is a local type conversion — no GraphQL call.
func (*Binding) AsSearchResult ¶
func (r *Binding) AsSearchResult() *SearchResult
Retrieve the binding value, as type SearchResult
func (*Binding) AsSearchSubmatch ¶
func (r *Binding) AsSearchSubmatch() *SearchSubmatch
Retrieve the binding value, as type SearchSubmatch
func (*Binding) AsSindriDev ¶
Retrieve the binding value, as type SindriDev
func (*Binding) AsWorkspace ¶
Retrieve the binding value, as type Workspace
func (*Binding) MarshalJSON ¶
func (*Binding) WithGraphQLQuery ¶
func (r *Binding) WithGraphQLQuery(q *querybuilder.Selection) *Binding
func (*Binding) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Binding) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Binding) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type BuildArg ¶
type BuildArg struct {
// The build argument name.
Name string `json:"name"`
// The build argument value.
Value string `json:"value"`
}
Key value object that represents a build argument.
type CacheSharingMode ¶
type CacheSharingMode string
Sharing mode of the cache volume.
const ( CacheSharingModeShared CacheSharingMode = "SHARED" // Keeps a cache volume for a single build pipeline CacheSharingModePrivate CacheSharingMode = "PRIVATE" // Shares the cache volume amongst many build pipelines, but will serialize the writes CacheSharingModeLocked CacheSharingMode = "LOCKED" )
func (CacheSharingMode) IsEnum ¶
func (CacheSharingMode) IsEnum()
func (*CacheSharingMode) MarshalJSON ¶
func (v *CacheSharingMode) MarshalJSON() ([]byte, error)
func (CacheSharingMode) Name ¶
func (v CacheSharingMode) Name() string
func (*CacheSharingMode) UnmarshalJSON ¶
func (v *CacheSharingMode) UnmarshalJSON(dt []byte) error
func (CacheSharingMode) Value ¶
func (v CacheSharingMode) Value() string
type CacheVolume ¶
type CacheVolume struct {
// contains filtered or unexported fields
}
A directory whose contents persist across runs.
func (*CacheVolume) AsNode ¶
func (r *CacheVolume) AsNode() Node
AsNode returns this CacheVolume as a Node. This is a local type conversion — no GraphQL call.
func (*CacheVolume) ID ¶
func (r *CacheVolume) ID(ctx context.Context) (ID, error)
A unique identifier for this CacheVolume.
func (*CacheVolume) MarshalJSON ¶
func (r *CacheVolume) MarshalJSON() ([]byte, error)
func (*CacheVolume) WithGraphQLQuery ¶
func (r *CacheVolume) WithGraphQLQuery(q *querybuilder.Selection) *CacheVolume
func (*CacheVolume) XXX_GraphQLID ¶
func (r *CacheVolume) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*CacheVolume) XXX_GraphQLIDType ¶
func (r *CacheVolume) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*CacheVolume) XXX_GraphQLType ¶
func (r *CacheVolume) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type CacheVolumeOpts ¶
type CacheVolumeOpts struct {
// Identifier of the directory to use as the cache volume's root.
Source *Directory
// Sharing mode of the cache volume.
//
// Default: SHARED
Sharing CacheSharingMode
// A user:group to set for the cache volume root.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
}
CacheVolumeOpts contains options for Query.CacheVolume
type Changeset ¶
type Changeset struct {
// contains filtered or unexported fields
}
A comparison between two directories representing changes that can be applied.
func (*Changeset) AddedPaths ¶
Files and directories that were added in the newer directory.
func (*Changeset) AsExportable ¶
func (r *Changeset) AsExportable() Exportable
AsExportable returns this Changeset as a Exportable. This is a local type conversion — no GraphQL call.
func (*Changeset) AsNode ¶
AsNode returns this Changeset as a Node. This is a local type conversion — no GraphQL call.
func (*Changeset) AsSyncer ¶
AsSyncer returns this Changeset as a Syncer. This is a local type conversion — no GraphQL call.
func (*Changeset) DiffStats ¶
Structured per-path diff statistics (kind and line counts) for this changeset.
func (*Changeset) MarshalJSON ¶
func (*Changeset) ModifiedPaths ¶
Files and directories that existed before and were updated in the newer directory.
func (*Changeset) RemovedPaths ¶
Files and directories that were removed. Directories are indicated by a trailing slash, and their child paths are not included.
func (*Changeset) With ¶
func (r *Changeset) With(f WithChangesetFunc) *Changeset
With calls the provided function with current Changeset.
This is useful for reusability and readability by not breaking the calling chain.
func (*Changeset) WithChangeset ¶
func (r *Changeset) WithChangeset(changes *Changeset, opts ...ChangesetWithChangesetOpts) *Changeset
Add changes to an existing changeset
By default the operation will fail in case of conflicts, for instance a file modified in both changesets. The behavior can be adjusted using onConflict argument
func (*Changeset) WithChangesets ¶
func (r *Changeset) WithChangesets(changes []*Changeset, opts ...ChangesetWithChangesetsOpts) *Changeset
Add changes from multiple changesets using git octopus merge strategy
This is more efficient than chaining multiple withChangeset calls when merging many changesets.
Only FAIL and FAIL_EARLY conflict strategies are supported (octopus merge cannot use -X ours/theirs).
func (*Changeset) WithGraphQLQuery ¶
func (r *Changeset) WithGraphQLQuery(q *querybuilder.Selection) *Changeset
func (*Changeset) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Changeset) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Changeset) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ChangesetMergeConflict ¶
type ChangesetMergeConflict string
Strategy to use when merging changesets with conflicting changes.
const ( // Fail before attempting merge if file-level conflicts are detected ChangesetMergeConflictFailEarly ChangesetMergeConflict = "FAIL_EARLY" // Attempt the merge and fail if git merge fails due to conflicts ChangesetMergeConflictFail ChangesetMergeConflict = "FAIL" // Let git create conflict markers in files. For modify/delete conflicts, keeps the modified version. Fails on binary conflicts. ChangesetMergeConflictLeaveConflictMarkers ChangesetMergeConflict = "LEAVE_CONFLICT_MARKERS" // The conflict is resolved by applying the version of the calling changeset ChangesetMergeConflictPreferOurs ChangesetMergeConflict = "PREFER_OURS" // The conflict is resolved by applying the version of the other changeset ChangesetMergeConflictPreferTheirs ChangesetMergeConflict = "PREFER_THEIRS" )
func (ChangesetMergeConflict) IsEnum ¶
func (ChangesetMergeConflict) IsEnum()
func (*ChangesetMergeConflict) MarshalJSON ¶
func (v *ChangesetMergeConflict) MarshalJSON() ([]byte, error)
func (ChangesetMergeConflict) Name ¶
func (v ChangesetMergeConflict) Name() string
func (*ChangesetMergeConflict) UnmarshalJSON ¶
func (v *ChangesetMergeConflict) UnmarshalJSON(dt []byte) error
func (ChangesetMergeConflict) Value ¶
func (v ChangesetMergeConflict) Value() string
type ChangesetWithChangesetOpts ¶
type ChangesetWithChangesetOpts struct {
// What to do on a merge conflict
//
// Default: FAIL
OnConflict ChangesetMergeConflict
}
ChangesetWithChangesetOpts contains options for Changeset.WithChangeset
type ChangesetWithChangesetsOpts ¶
type ChangesetWithChangesetsOpts struct {
// What to do on a merge conflict
//
// Default: FAIL
OnConflict ChangesetsMergeConflict
}
ChangesetWithChangesetsOpts contains options for Changeset.WithChangesets
type ChangesetsMergeConflict ¶
type ChangesetsMergeConflict string
Strategy to use when merging multiple changesets with git octopus merge.
const ( // Fail before attempting merge if file-level conflicts are detected between any changesets ChangesetsMergeConflictFailEarly ChangesetsMergeConflict = "FAIL_EARLY" // Attempt the octopus merge and fail if git merge fails due to conflicts ChangesetsMergeConflictFail ChangesetsMergeConflict = "FAIL" )
func (ChangesetsMergeConflict) IsEnum ¶
func (ChangesetsMergeConflict) IsEnum()
func (*ChangesetsMergeConflict) MarshalJSON ¶
func (v *ChangesetsMergeConflict) MarshalJSON() ([]byte, error)
func (ChangesetsMergeConflict) Name ¶
func (v ChangesetsMergeConflict) Name() string
func (*ChangesetsMergeConflict) UnmarshalJSON ¶
func (v *ChangesetsMergeConflict) UnmarshalJSON(dt []byte) error
func (ChangesetsMergeConflict) Value ¶
func (v ChangesetsMergeConflict) Value() string
type Check ¶
type Check struct {
// contains filtered or unexported fields
}
func (*Check) AsNode ¶
AsNode returns this Check as a Node. This is a local type conversion — no GraphQL call.
func (*Check) CheckType ¶
The type of check: 'check' for annotated checks, 'generate' for generate-as-checks
func (*Check) Description ¶
The description of the check
func (*Check) MarshalJSON ¶
func (*Check) OriginalModule ¶
The original module in which the check has been defined
func (*Check) ResultEmoji ¶
An emoji representing the result of the check
func (*Check) With ¶
func (r *Check) With(f WithCheckFunc) *Check
With calls the provided function with current Check.
This is useful for reusability and readability by not breaking the calling chain.
func (*Check) WithGraphQLQuery ¶
func (r *Check) WithGraphQLQuery(q *querybuilder.Selection) *Check
func (*Check) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Check) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Check) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type CheckGroup ¶
type CheckGroup struct {
// contains filtered or unexported fields
}
func (*CheckGroup) AsNode ¶
func (r *CheckGroup) AsNode() Node
AsNode returns this CheckGroup as a Node. This is a local type conversion — no GraphQL call.
func (*CheckGroup) ID ¶
func (r *CheckGroup) ID(ctx context.Context) (ID, error)
A unique identifier for this CheckGroup.
func (*CheckGroup) List ¶
func (r *CheckGroup) List(ctx context.Context) ([]Check, error)
Return a list of individual checks and their details
func (*CheckGroup) MarshalJSON ¶
func (r *CheckGroup) MarshalJSON() ([]byte, error)
func (*CheckGroup) Run ¶
func (r *CheckGroup) Run(opts ...CheckGroupRunOpts) *CheckGroup
Execute all selected checks
func (*CheckGroup) With ¶
func (r *CheckGroup) With(f WithCheckGroupFunc) *CheckGroup
With calls the provided function with current CheckGroup.
This is useful for reusability and readability by not breaking the calling chain.
func (*CheckGroup) WithGraphQLQuery ¶
func (r *CheckGroup) WithGraphQLQuery(q *querybuilder.Selection) *CheckGroup
func (*CheckGroup) XXX_GraphQLID ¶
func (r *CheckGroup) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*CheckGroup) XXX_GraphQLIDType ¶
func (r *CheckGroup) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*CheckGroup) XXX_GraphQLType ¶
func (r *CheckGroup) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type CheckGroupRunOpts ¶
type CheckGroupRunOpts struct {
// If true, stop running checks as soon as any check fails.
FailFast bool
}
CheckGroupRunOpts contains options for CheckGroup.Run
type Client ¶
type Client struct {
*Query
// contains filtered or unexported fields
}
Client is the Dagger Engine Client
func (*Client) GraphQLClient ¶
GraphQLClient returns the underlying graphql.Client
func (*Client) QueryBuilder ¶
func (c *Client) QueryBuilder() *querybuilder.Selection
QueryBuilder returns the underlying query builder
type ClientFilesyncMirror ¶
type ClientFilesyncMirror struct {
// contains filtered or unexported fields
}
An internal persistent filesync mirror.
func (*ClientFilesyncMirror) AsNode ¶
func (r *ClientFilesyncMirror) AsNode() Node
AsNode returns this ClientFilesyncMirror as a Node. This is a local type conversion — no GraphQL call.
func (*ClientFilesyncMirror) ID ¶
func (r *ClientFilesyncMirror) ID(ctx context.Context) (ID, error)
A unique identifier for this ClientFilesyncMirror.
func (*ClientFilesyncMirror) MarshalJSON ¶
func (r *ClientFilesyncMirror) MarshalJSON() ([]byte, error)
func (*ClientFilesyncMirror) WithGraphQLQuery ¶
func (r *ClientFilesyncMirror) WithGraphQLQuery(q *querybuilder.Selection) *ClientFilesyncMirror
func (*ClientFilesyncMirror) XXX_GraphQLID ¶
func (r *ClientFilesyncMirror) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*ClientFilesyncMirror) XXX_GraphQLIDType ¶
func (r *ClientFilesyncMirror) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*ClientFilesyncMirror) XXX_GraphQLType ¶
func (r *ClientFilesyncMirror) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Cloud ¶
type Cloud struct {
// contains filtered or unexported fields
}
Dagger Cloud configuration and state
func (*Cloud) AsNode ¶
AsNode returns this Cloud as a Node. This is a local type conversion — no GraphQL call.
func (*Cloud) MarshalJSON ¶
func (*Cloud) WithGraphQLQuery ¶
func (r *Cloud) WithGraphQLQuery(q *querybuilder.Selection) *Cloud
func (*Cloud) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Cloud) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Cloud) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
An OCI-compatible container, also known as a Docker container.
func (*Container) AsExportable ¶
func (r *Container) AsExportable() Exportable
AsExportable returns this Container as a Exportable. This is a local type conversion — no GraphQL call.
func (*Container) AsNode ¶
AsNode returns this Container as a Node. This is a local type conversion — no GraphQL call.
func (*Container) AsService ¶
func (r *Container) AsService(opts ...ContainerAsServiceOpts) *Service
Turn the container into a Service.
Be sure to set any exposed ports before this conversion.
func (*Container) AsSyncer ¶
AsSyncer returns this Container as a Syncer. This is a local type conversion — no GraphQL call.
func (*Container) AsTarball ¶
func (r *Container) AsTarball(opts ...ContainerAsTarballOpts) *File
Package the container state as an OCI image, and return it as a tar archive
func (*Container) CombinedOutput ¶
The combined buffered standard output and standard error stream of the last executed command
Returns an error if no command was executed
func (*Container) DefaultArgs ¶
Return the container's default arguments.
func (*Container) Directory ¶
func (r *Container) Directory(path string, opts ...ContainerDirectoryOpts) *Directory
Retrieve a directory from the container's root filesystem
Mounts are included.
func (*Container) DockerHealthcheck ¶
func (r *Container) DockerHealthcheck() *HealthcheckConfig
Retrieves this container's configured docker healthcheck.
func (*Container) Entrypoint ¶
Return the container's OCI entrypoint.
func (*Container) EnvVariable ¶
Retrieves the value of the specified persistent environment variable.
func (*Container) EnvVariables ¶
func (r *Container) EnvVariables(ctx context.Context) ([]EnvVariable, error)
Retrieves the list of persistent environment variables configured on the container.
func (*Container) Exists ¶
func (r *Container) Exists(ctx context.Context, path string, opts ...ContainerExistsOpts) (bool, error)
check if a file or directory exists
func (*Container) ExitCode ¶
The exit code of the last executed command
Returns an error if no command was executed
func (*Container) ExperimentalWithAllGPUs ¶
EXPERIMENTAL API! Subject to change/removal at any time.
Configures all available GPUs on the host to be accessible to this container.
This currently works for Nvidia devices only.
func (*Container) ExperimentalWithGPU ¶
EXPERIMENTAL API! Subject to change/removal at any time.
Configures the provided list of devices to be accessible to this container.
This currently works for Nvidia devices only.
func (*Container) Export ¶
func (r *Container) Export(ctx context.Context, path string, opts ...ContainerExportOpts) (string, error)
Writes the container as an OCI tarball to the destination file path on the host.
It can also export platform variants.
func (*Container) ExportImage ¶
func (r *Container) ExportImage(ctx context.Context, name string, opts ...ContainerExportImageOpts) error
Exports the container as an image to the host's container image store.
func (*Container) ExposedPorts ¶
Retrieves the list of exposed ports.
This includes ports already exposed by the image, even if not explicitly added with dagger.
func (*Container) File ¶
func (r *Container) File(path string, opts ...ContainerFileOpts) *File
Retrieves a file at the given path.
Mounts are included.
func (*Container) From ¶
func (r *Container) From(address string, opts ...ContainerFromOpts) *Container
Download a container image, and apply it to the container state. All previous state will be lost.
func (*Container) ImageRef ¶
The unique image reference which can only be retrieved immediately after the 'Container.From' call.
func (*Container) Import ¶
func (r *Container) Import(source *File, opts ...ContainerImportOpts) *Container
Reads the container from an OCI tarball.
func (*Container) MarshalJSON ¶
func (*Container) Publish ¶
func (r *Container) Publish(ctx context.Context, address string, opts ...ContainerPublishOpts) (string, error)
Package the container state as an OCI image, and publish it to a registry
Returns the fully qualified address of the published image, with digest
func (*Container) Rootfs ¶
Return a snapshot of the container's root filesystem. The snapshot can be modified then written back using withRootfs. Use that method for filesystem modifications.
func (*Container) Stat ¶
func (r *Container) Stat(path string, opts ...ContainerStatOpts) *Stat
Return file status
func (*Container) Stderr ¶
The buffered standard error stream of the last executed command
Returns an error if no command was executed
func (*Container) Stdout ¶
The buffered standard output stream of the last executed command
Returns an error if no command was executed
func (*Container) Sync ¶
Forces evaluation of the pipeline in the engine.
It doesn't run the default command if no exec has been set.
func (*Container) Terminal ¶
func (r *Container) Terminal(opts ...ContainerTerminalOpts) *Container
Opens an interactive terminal for this container using its configured default terminal command if not overridden by args (or sh as a fallback default).
func (*Container) Up ¶
func (r *Container) Up(ctx context.Context, opts ...ContainerUpOpts) error
Starts a Service and creates a tunnel that forwards traffic from the caller's network to that service.
Be sure to set any exposed ports before calling this api.
func (*Container) With ¶
func (r *Container) With(f WithContainerFunc) *Container
With calls the provided function with current Container.
This is useful for reusability and readability by not breaking the calling chain.
func (*Container) WithAnnotation ¶
Retrieves this container plus the given OCI annotation.
func (*Container) WithDefaultArgs ¶
Configures default arguments for future commands. Like CMD in Dockerfile.
func (*Container) WithDefaultTerminalCmd ¶
func (r *Container) WithDefaultTerminalCmd(args []string, opts ...ContainerWithDefaultTerminalCmdOpts) *Container
Set the default command to invoke for the container's terminal API.
func (*Container) WithDirectory ¶
func (r *Container) WithDirectory(path string, source *Directory, opts ...ContainerWithDirectoryOpts) *Container
Return a new container snapshot, with a directory added to its filesystem
func (*Container) WithDockerHealthcheck ¶
func (r *Container) WithDockerHealthcheck(args []string, opts ...ContainerWithDockerHealthcheckOpts) *Container
Retrieves this container with the specificed docker healtcheck command set.
func (*Container) WithEntrypoint ¶
func (r *Container) WithEntrypoint(args []string, opts ...ContainerWithEntrypointOpts) *Container
Set an OCI-style entrypoint. It will be included in the container's OCI configuration. Note, withExec ignores the entrypoint by default.
func (*Container) WithEnvFileVariables ¶
Export environment variables from an env-file to the container.
func (*Container) WithEnvVariable ¶
func (r *Container) WithEnvVariable(name string, value string, opts ...ContainerWithEnvVariableOpts) *Container
Set a new environment variable in the container.
func (*Container) WithExec ¶
func (r *Container) WithExec(args []string, opts ...ContainerWithExecOpts) *Container
Execute a command in the container, and return a new snapshot of the container state after execution.
func (*Container) WithExposedPort ¶
func (r *Container) WithExposedPort(port int, opts ...ContainerWithExposedPortOpts) *Container
Expose a network port. Like EXPOSE in Dockerfile (but with healthcheck support)
Exposed ports serve two purposes:
- For health checks and introspection, when running services
- For setting the EXPOSE OCI field when publishing the container
func (*Container) WithFile ¶
func (r *Container) WithFile(path string, source *File, opts ...ContainerWithFileOpts) *Container
Return a container snapshot with a file added
func (*Container) WithFiles ¶
func (r *Container) WithFiles(path string, sources []*File, opts ...ContainerWithFilesOpts) *Container
Retrieves this container plus the contents of the given files copied to the given path.
func (*Container) WithGraphQLQuery ¶
func (r *Container) WithGraphQLQuery(q *querybuilder.Selection) *Container
func (*Container) WithMountedCache ¶
func (r *Container) WithMountedCache(path string, cache *CacheVolume, opts ...ContainerWithMountedCacheOpts) *Container
Retrieves this container plus a cache volume mounted at the given path.
func (*Container) WithMountedDirectory ¶
func (r *Container) WithMountedDirectory(path string, source *Directory, opts ...ContainerWithMountedDirectoryOpts) *Container
Retrieves this container plus a directory mounted at the given path.
func (*Container) WithMountedFile ¶
func (r *Container) WithMountedFile(path string, source *File, opts ...ContainerWithMountedFileOpts) *Container
Retrieves this container plus a file mounted at the given path.
func (*Container) WithMountedSecret ¶
func (r *Container) WithMountedSecret(path string, source *Secret, opts ...ContainerWithMountedSecretOpts) *Container
Retrieves this container plus a secret mounted into a file at the given path.
func (*Container) WithMountedTemp ¶
func (r *Container) WithMountedTemp(path string, opts ...ContainerWithMountedTempOpts) *Container
Retrieves this container plus a temporary directory mounted at the given path. Any writes will be ephemeral to a single withExec call; they will not be persisted to subsequent withExecs.
func (*Container) WithNewFile ¶
func (r *Container) WithNewFile(path string, contents string, opts ...ContainerWithNewFileOpts) *Container
Return a new container snapshot, with a file added to its filesystem with text content
func (*Container) WithRegistryAuth ¶
Attach credentials for future publishing to a registry. Use in combination with publish
func (*Container) WithRootfs ¶
Change the container's root filesystem. The previous root filesystem will be lost.
func (*Container) WithSecretVariable ¶
Set a new environment variable, using a secret value
func (*Container) WithServiceBinding ¶
Establish a runtime dependency from a container to a network service.
The service will be started automatically when needed and detached when it is no longer needed, executing the default command if none is set.
The service will be reachable from the container via the provided hostname alias.
The service dependency will also convey to any files or directories produced by the container.
func (*Container) WithSymlink ¶
func (r *Container) WithSymlink(target string, linkName string, opts ...ContainerWithSymlinkOpts) *Container
Return a snapshot with a symlink
func (*Container) WithUnixSocket ¶
func (r *Container) WithUnixSocket(path string, source *Socket, opts ...ContainerWithUnixSocketOpts) *Container
Retrieves this container plus a socket forwarded to the given Unix socket path.
func (*Container) WithVolatileVariable ¶
Set a new non-secret environment variable for future execs without invalidating exec cache when only its value changes.
This is an expert-only escape hatch. If a volatile value affects observable exec results, stale cached results may be reused.
func (*Container) WithWorkdir ¶
func (r *Container) WithWorkdir(path string, opts ...ContainerWithWorkdirOpts) *Container
Change the container's working directory. Like WORKDIR in Dockerfile.
func (*Container) WithoutAnnotation ¶
Retrieves this container minus the given OCI annotation.
func (*Container) WithoutDefaultArgs ¶
Remove the container's default arguments.
func (*Container) WithoutDirectory ¶
func (r *Container) WithoutDirectory(path string, opts ...ContainerWithoutDirectoryOpts) *Container
Return a new container snapshot, with a directory removed from its filesystem
func (*Container) WithoutDockerHealthcheck ¶
Retrieves this container without a configured docker healtcheck command.
func (*Container) WithoutEntrypoint ¶
func (r *Container) WithoutEntrypoint(opts ...ContainerWithoutEntrypointOpts) *Container
Reset the container's OCI entrypoint.
func (*Container) WithoutEnvVariable ¶
Retrieves this container minus the given environment variable.
func (*Container) WithoutExposedPort ¶
func (r *Container) WithoutExposedPort(port int, opts ...ContainerWithoutExposedPortOpts) *Container
Unexpose a previously exposed port.
func (*Container) WithoutFile ¶
func (r *Container) WithoutFile(path string, opts ...ContainerWithoutFileOpts) *Container
Retrieves this container with the file at the given path removed.
func (*Container) WithoutFiles ¶
func (r *Container) WithoutFiles(paths []string, opts ...ContainerWithoutFilesOpts) *Container
Return a new container spanshot with specified files removed
func (*Container) WithoutLabel ¶
Retrieves this container minus the given environment label.
func (*Container) WithoutMount ¶
func (r *Container) WithoutMount(path string, opts ...ContainerWithoutMountOpts) *Container
Retrieves this container after unmounting everything at the given path.
func (*Container) WithoutRegistryAuth ¶
Retrieves this container without the registry authentication of a given address.
func (*Container) WithoutSecretVariable ¶
Retrieves this container minus the given environment variable containing the secret.
func (*Container) WithoutUnixSocket ¶
func (r *Container) WithoutUnixSocket(path string, opts ...ContainerWithoutUnixSocketOpts) *Container
Retrieves this container with a previously added Unix socket removed.
func (*Container) WithoutUser ¶
Retrieves this container with an unset command user.
Should default to root.
func (*Container) WithoutVolatileVariable ¶
Retrieves this container minus the given volatile environment variable.
func (*Container) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Container) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Container) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ContainerAsServiceOpts ¶
type ContainerAsServiceOpts struct {
// Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
//
// If empty, the container's default command is used.
Args []string
// If the container has an entrypoint, prepend it to the args.
UseEntrypoint bool
// Provides Dagger access to the executed command.
ExperimentalPrivilegedNesting bool
// Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
InsecureRootCapabilities bool
// Replace "${VAR}" or "$VAR" in the args according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
// If set, skip the automatic init process injected into containers by default.
//
// This should only be used if the user requires that their exec process be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
NoInit bool
}
ContainerAsServiceOpts contains options for Container.AsService
type ContainerAsTarballOpts ¶
type ContainerAsTarballOpts struct {
// Identifiers for other platform specific containers.
//
// Used for multi-platform images.
PlatformVariants []*Container
// Force each layer of the image to use the specified compression algorithm.
//
// If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip.
ForcedCompression ImageLayerCompression
// Use the specified media types for the image's layers.
//
// Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support.
//
// Default: OCIMediaTypes
MediaTypes ImageMediaTypes
}
ContainerAsTarballOpts contains options for Container.AsTarball
type ContainerDirectoryOpts ¶
type ContainerDirectoryOpts struct {
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerDirectoryOpts contains options for Container.Directory
type ContainerExistsOpts ¶
type ContainerExistsOpts struct {
// If specified, also validate the type of file (e.g. "REGULAR_TYPE", "DIRECTORY_TYPE", or "SYMLINK_TYPE").
ExpectedType ExistsType
// If specified, do not follow symlinks.
DoNotFollowSymlinks bool
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerExistsOpts contains options for Container.Exists
type ContainerExportImageOpts ¶
type ContainerExportImageOpts struct {
// Identifiers for other platform specific containers.
//
// Used for multi-platform image.
PlatformVariants []*Container
// Force each layer of the exported image to use the specified compression algorithm.
//
// If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip.
ForcedCompression ImageLayerCompression
// Use the specified media types for the exported image's layers.
//
// Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support.
//
// Default: OCIMediaTypes
MediaTypes ImageMediaTypes
}
ContainerExportImageOpts contains options for Container.ExportImage
type ContainerExportOpts ¶
type ContainerExportOpts struct {
// Identifiers for other platform specific containers.
//
// Used for multi-platform image.
PlatformVariants []*Container
// Force each layer of the exported image to use the specified compression algorithm.
//
// If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip.
ForcedCompression ImageLayerCompression
// Use the specified media types for the exported image's layers.
//
// Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support.
//
// Default: OCIMediaTypes
MediaTypes ImageMediaTypes
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerExportOpts contains options for Container.Export
type ContainerFileOpts ¶
type ContainerFileOpts struct {
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
Expand bool
}
ContainerFileOpts contains options for Container.File
type ContainerFromOpts ¶
type ContainerFromOpts struct {
// Service to use as the registry endpoint for the image address.
//
// The service will be started only for this pull.
RegistryService *Service
}
ContainerFromOpts contains options for Container.From
type ContainerImportOpts ¶
type ContainerImportOpts struct {
// Identifies the tag to import from the archive, if the archive bundles multiple tags.
Tag string
}
ContainerImportOpts contains options for Container.Import
type ContainerOpts ¶
type ContainerOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:32:2)
Module string // sindri-dev (../../.dagger/main.go:34:2)
}
ContainerOpts contains options for Query.Container
type ContainerPublishOpts ¶
type ContainerPublishOpts struct {
// Identifiers for other platform specific containers.
//
// Used for multi-platform image.
PlatformVariants []*Container
// Force each layer of the published image to use the specified compression algorithm.
//
// If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip.
ForcedCompression ImageLayerCompression
// Use the specified media types for the published image's layers.
//
// Defaults to "OCI", which is compatible with most recent registries, but "Docker" may be needed for older registries without OCI support.
//
// Default: OCIMediaTypes
MediaTypes ImageMediaTypes
// Service to use as the registry endpoint for the image address.
//
// The service will be started only for this push.
RegistryService *Service
}
ContainerPublishOpts contains options for Container.Publish
type ContainerStatOpts ¶
type ContainerStatOpts struct {
// If specified, do not follow symlinks.
DoNotFollowSymlinks bool
}
ContainerStatOpts contains options for Container.Stat
type ContainerTerminalOpts ¶
type ContainerTerminalOpts struct {
// If set, override the container's default terminal command and invoke these command arguments instead.
Cmd []string
// Provides Dagger access to the executed command.
ExperimentalPrivilegedNesting bool
// Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
InsecureRootCapabilities bool
}
ContainerTerminalOpts contains options for Container.Terminal
type ContainerUpOpts ¶
type ContainerUpOpts struct {
// Bind each tunnel port to a random port on the host.
Random bool
// List of frontend/backend port mappings to forward.
//
// Frontend is the port accepting traffic on the host, backend is the service port.
Ports []PortForward
// Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
//
// If empty, the container's default command is used.
Args []string
// If the container has an entrypoint, prepend it to the args.
UseEntrypoint bool
// Provides Dagger access to the executed command.
ExperimentalPrivilegedNesting bool
// Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
InsecureRootCapabilities bool
// Replace "${VAR}" or "$VAR" in the args according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
// If set, skip the automatic init process injected into containers by default.
//
// This should only be used if the user requires that their exec process be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
NoInit bool
}
ContainerUpOpts contains options for Container.Up
type ContainerWithDefaultTerminalCmdOpts ¶
type ContainerWithDefaultTerminalCmdOpts struct {
// Provides Dagger access to the executed command.
ExperimentalPrivilegedNesting bool
// Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
InsecureRootCapabilities bool
}
ContainerWithDefaultTerminalCmdOpts contains options for Container.WithDefaultTerminalCmd
type ContainerWithDirectoryOpts ¶
type ContainerWithDirectoryOpts struct {
// Patterns to exclude in the written directory (e.g. ["node_modules/**", ".gitignore", ".git/"]).
Exclude []string
// Patterns to include in the written directory (e.g. ["*.go", "go.mod", "go.sum"]).
Include []string
// Apply .gitignore rules when writing the directory.
Gitignore bool
// A user:group to set for the directory and its contents.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
Permissions int
}
ContainerWithDirectoryOpts contains options for Container.WithDirectory
type ContainerWithDockerHealthcheckOpts ¶
type ContainerWithDockerHealthcheckOpts struct {
// When true, command must be a single element, which is run using the container's shell
Shell bool
// Interval between running healthcheck. Example: "30s"
Interval string
// Healthcheck timeout. Example: "3s"
Timeout string
// StartPeriod allows for failures during this initial startup period which do not count towards maximum number of retries. Example: "0s"
StartPeriod string
// StartInterval configures the duration between checks during the startup phase. Example: "5s"
StartInterval string
// The maximum number of consecutive failures before the container is marked as unhealthy. Example: "3"
Retries int
}
ContainerWithDockerHealthcheckOpts contains options for Container.WithDockerHealthcheck
type ContainerWithEntrypointOpts ¶
type ContainerWithEntrypointOpts struct {
// Don't reset the default arguments when setting the entrypoint. By default it is reset, since entrypoint and default args are often tightly coupled.
KeepDefaultArgs bool
}
ContainerWithEntrypointOpts contains options for Container.WithEntrypoint
type ContainerWithEnvVariableOpts ¶
type ContainerWithEnvVariableOpts struct {
// Replace "${VAR}" or "$VAR" in the value according to the current environment variables defined in the container (e.g. "/opt/bin:$PATH").
Expand bool
}
ContainerWithEnvVariableOpts contains options for Container.WithEnvVariable
type ContainerWithExecOpts ¶
type ContainerWithExecOpts struct {
// Apply the OCI entrypoint, if present, by prepending it to the args. Ignored by default.
UseEntrypoint bool
// Content to write to the command's standard input. Example: "Hello world")
Stdin string
// Redirect the command's standard input from a file in the container. Example: "./stdin.txt"
RedirectStdin string
// Redirect the command's standard output to a file in the container. Example: "./stdout.txt"
RedirectStdout string
// Redirect the command's standard error to a file in the container. Example: "./stderr.txt"
RedirectStderr string
// Exit codes this command is allowed to exit with without error
//
// Default: SUCCESS
Expect ReturnType
// Provides Dagger access to the executed command.
ExperimentalPrivilegedNesting bool
// Execute the command with all root capabilities. Like --privileged in Docker
//
// DANGER: this grants the command full access to the host system. Only use when 1) you trust the command being executed and 2) you specifically need this level of access.
InsecureRootCapabilities bool
// Replace "${VAR}" or "$VAR" in the args according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
// Skip the automatic init process injected into containers by default.
//
// Only use this if you specifically need the command to be pid 1 in the container. Otherwise it may result in unexpected behavior. If you're not sure, you don't need this.
NoInit bool
}
ContainerWithExecOpts contains options for Container.WithExec
type ContainerWithExposedPortOpts ¶
type ContainerWithExposedPortOpts struct {
// Network protocol. Example: "tcp"
//
// Default: TCP
Protocol NetworkProtocol
// Port description. Example: "payment API endpoint"
Description string
// Skip the health check when run as a service.
ExperimentalSkipHealthcheck bool
}
ContainerWithExposedPortOpts contains options for Container.WithExposedPort
type ContainerWithFileOpts ¶
type ContainerWithFileOpts struct {
// Permissions of the new file. Example: 0600
Permissions int
// A user:group to set for the file.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
Expand bool
}
ContainerWithFileOpts contains options for Container.WithFile
type ContainerWithFilesOpts ¶
type ContainerWithFilesOpts struct {
// Permission given to the copied files (e.g., 0600).
Permissions int
// A user:group to set for the files.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
Expand bool
}
ContainerWithFilesOpts contains options for Container.WithFiles
type ContainerWithMountedCacheOpts ¶
type ContainerWithMountedCacheOpts struct {
// Identifier of the directory to use as the cache volume's root.
Source *Directory
// Sharing mode of the cache volume.
//
// Default: SHARED
Sharing CacheSharingMode
// A user:group to set for the mounted cache directory.
//
// Note that this changes the ownership of the specified mount along with the initial filesystem provided by source (if any). It does not have any effect if/when the cache has already been created.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithMountedCacheOpts contains options for Container.WithMountedCache
type ContainerWithMountedDirectoryOpts ¶
type ContainerWithMountedDirectoryOpts struct {
// A user:group to set for the mounted directory and its contents.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Mount the directory read-only.
ReadOnly bool
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithMountedDirectoryOpts contains options for Container.WithMountedDirectory
type ContainerWithMountedFileOpts ¶
type ContainerWithMountedFileOpts struct {
// A user or user:group to set for the mounted file.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
Expand bool
}
ContainerWithMountedFileOpts contains options for Container.WithMountedFile
type ContainerWithMountedSecretOpts ¶
type ContainerWithMountedSecretOpts struct {
// A user:group to set for the mounted secret.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Permission given to the mounted secret (e.g., 0600).
//
// This option requires an owner to be set to be active.
//
// Default: 256
Mode int
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithMountedSecretOpts contains options for Container.WithMountedSecret
type ContainerWithMountedTempOpts ¶
type ContainerWithMountedTempOpts struct {
// Size of the temporary directory in bytes.
Size int
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithMountedTempOpts contains options for Container.WithMountedTemp
type ContainerWithNewFileOpts ¶
type ContainerWithNewFileOpts struct {
// Permissions of the new file. Example: 0600
//
// Default: 420
Permissions int
// A user:group to set for the file.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
Expand bool
}
ContainerWithNewFileOpts contains options for Container.WithNewFile
type ContainerWithSymlinkOpts ¶
type ContainerWithSymlinkOpts struct {
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
Expand bool
}
ContainerWithSymlinkOpts contains options for Container.WithSymlink
type ContainerWithUnixSocketOpts ¶
type ContainerWithUnixSocketOpts struct {
// A user:group to set for the mounted socket.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithUnixSocketOpts contains options for Container.WithUnixSocket
type ContainerWithWorkdirOpts ¶
type ContainerWithWorkdirOpts struct {
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithWorkdirOpts contains options for Container.WithWorkdir
type ContainerWithoutDirectoryOpts ¶
type ContainerWithoutDirectoryOpts struct {
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithoutDirectoryOpts contains options for Container.WithoutDirectory
type ContainerWithoutEntrypointOpts ¶
type ContainerWithoutEntrypointOpts struct {
// Don't remove the default arguments when unsetting the entrypoint.
KeepDefaultArgs bool
}
ContainerWithoutEntrypointOpts contains options for Container.WithoutEntrypoint
type ContainerWithoutExposedPortOpts ¶
type ContainerWithoutExposedPortOpts struct {
// Port protocol to unexpose
//
// Default: TCP
Protocol NetworkProtocol
}
ContainerWithoutExposedPortOpts contains options for Container.WithoutExposedPort
type ContainerWithoutFileOpts ¶
type ContainerWithoutFileOpts struct {
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
Expand bool
}
ContainerWithoutFileOpts contains options for Container.WithoutFile
type ContainerWithoutFilesOpts ¶
type ContainerWithoutFilesOpts struct {
// Replace "${VAR}" or "$VAR" in the value of paths according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
Expand bool
}
ContainerWithoutFilesOpts contains options for Container.WithoutFiles
type ContainerWithoutMountOpts ¶
type ContainerWithoutMountOpts struct {
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithoutMountOpts contains options for Container.WithoutMount
type ContainerWithoutUnixSocketOpts ¶
type ContainerWithoutUnixSocketOpts struct {
// Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
Expand bool
}
ContainerWithoutUnixSocketOpts contains options for Container.WithoutUnixSocket
type CurrentModule ¶
type CurrentModule struct {
// contains filtered or unexported fields
}
Reflective module API provided to functions at runtime.
func (*CurrentModule) AsNode ¶
func (r *CurrentModule) AsNode() Node
AsNode returns this CurrentModule as a Node. This is a local type conversion — no GraphQL call.
func (*CurrentModule) Dependencies ¶
func (r *CurrentModule) Dependencies(ctx context.Context) ([]Module, error)
The dependencies of the module.
func (*CurrentModule) GeneratedContextDirectory ¶
func (r *CurrentModule) GeneratedContextDirectory() *Directory
The generated files and directories made on top of the module source's context directory.
func (*CurrentModule) Generators ¶
func (r *CurrentModule) Generators(opts ...CurrentModuleGeneratorsOpts) *GeneratorGroup
Return all generators defined by the module
Experimental: This API is highly experimental and may be removed or replaced entirely.
func (*CurrentModule) ID ¶
func (r *CurrentModule) ID(ctx context.Context) (ID, error)
A unique identifier for this CurrentModule.
func (*CurrentModule) MarshalJSON ¶
func (r *CurrentModule) MarshalJSON() ([]byte, error)
func (*CurrentModule) Name ¶
func (r *CurrentModule) Name(ctx context.Context) (string, error)
The name of the module being executed in
func (*CurrentModule) Source ¶
func (r *CurrentModule) Source() *Directory
The directory containing the module's source code loaded into the engine (plus any generated code that may have been created).
func (*CurrentModule) WithGraphQLQuery ¶
func (r *CurrentModule) WithGraphQLQuery(q *querybuilder.Selection) *CurrentModule
func (*CurrentModule) Workdir ¶
func (r *CurrentModule) Workdir(path string, opts ...CurrentModuleWorkdirOpts) *Directory
Load a directory from the module's scratch working directory, including any changes that may have been made to it during module function execution.
func (*CurrentModule) WorkdirFile ¶
func (r *CurrentModule) WorkdirFile(path string) *File
Load a file from the module's scratch working directory, including any changes that may have been made to it during module function execution.Load a file from the module's scratch working directory, including any changes that may have been made to it during module function execution.
func (*CurrentModule) XXX_GraphQLID ¶
func (r *CurrentModule) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*CurrentModule) XXX_GraphQLIDType ¶
func (r *CurrentModule) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*CurrentModule) XXX_GraphQLType ¶
func (r *CurrentModule) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type CurrentModuleGeneratorsOpts ¶
type CurrentModuleGeneratorsOpts struct {
// Only include generators matching the specified patterns
Include []string
}
CurrentModuleGeneratorsOpts contains options for CurrentModule.Generators
type CurrentModuleWorkdirOpts ¶
type CurrentModuleWorkdirOpts struct {
// Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
Exclude []string
// Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
Include []string
// Apply .gitignore filter rules inside the directory
Gitignore bool
}
CurrentModuleWorkdirOpts contains options for CurrentModule.Workdir
type CurrentTypeDefsOpts ¶
type CurrentTypeDefsOpts struct {
// Return the full referenced typedef closure instead of only top-level served typedefs.
ReturnAllTypes bool
// Strip core API functions from the Query type, leaving only module-sourced functions (constructors, entrypoint proxies, etc.).
//
// Core types (Container, Directory, etc.) are kept so return types and method chaining still work.
HideCore bool
}
CurrentTypeDefsOpts contains options for Query.CurrentTypeDefs
type DaggerObject ¶
type DaggerObject interface {
querybuilder.GraphQLMarshaller
ID(ctx context.Context) (ID, error)
}
type DiffStat ¶
type DiffStat struct {
// contains filtered or unexported fields
}
func (*DiffStat) AddedLines ¶
Number of added lines for this path.
func (*DiffStat) AsNode ¶
AsNode returns this DiffStat as a Node. This is a local type conversion — no GraphQL call.
func (*DiffStat) Kind ¶
func (r *DiffStat) Kind(ctx context.Context) (DiffStatKind, error)
Type of change.
func (*DiffStat) MarshalJSON ¶
func (*DiffStat) RemovedLines ¶
Number of removed lines for this path.
func (*DiffStat) WithGraphQLQuery ¶
func (r *DiffStat) WithGraphQLQuery(q *querybuilder.Selection) *DiffStat
func (*DiffStat) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*DiffStat) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*DiffStat) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type DiffStatKind ¶
type DiffStatKind string
The type of change for a diff stat entry.
const ( // A file or directory was added. DiffStatKindAdded DiffStatKind = "ADDED" // A file was modified. DiffStatKindModified DiffStatKind = "MODIFIED" // A file or directory was removed. DiffStatKindRemoved DiffStatKind = "REMOVED" // A file was renamed. DiffStatKindRenamed DiffStatKind = "RENAMED" )
func (DiffStatKind) IsEnum ¶
func (DiffStatKind) IsEnum()
func (*DiffStatKind) MarshalJSON ¶
func (v *DiffStatKind) MarshalJSON() ([]byte, error)
func (DiffStatKind) Name ¶
func (v DiffStatKind) Name() string
func (*DiffStatKind) UnmarshalJSON ¶
func (v *DiffStatKind) UnmarshalJSON(dt []byte) error
func (DiffStatKind) Value ¶
func (v DiffStatKind) Value() string
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
A directory.
func (*Directory) AsExportable ¶
func (r *Directory) AsExportable() Exportable
AsExportable returns this Directory as a Exportable. This is a local type conversion — no GraphQL call.
func (*Directory) AsGit ¶
func (r *Directory) AsGit() *GitRepository
Converts this directory to a local git repository
func (*Directory) AsModule ¶
func (r *Directory) AsModule(opts ...DirectoryAsModuleOpts) *Module
Load the directory as a Dagger module source
func (*Directory) AsModuleSource ¶
func (r *Directory) AsModuleSource(opts ...DirectoryAsModuleSourceOpts) *ModuleSource
Load the directory as a Dagger module source
func (*Directory) AsNode ¶
AsNode returns this Directory as a Node. This is a local type conversion — no GraphQL call.
func (*Directory) AsSyncer ¶
AsSyncer returns this Directory as a Syncer. This is a local type conversion — no GraphQL call.
func (*Directory) Changes ¶
Return the difference between this directory and another directory, typically an older snapshot.
The difference is encoded as a changeset, which also tracks removed files, and can be applied to other directories.
func (*Directory) Diff ¶
Return the difference between this directory and an another directory. The difference is encoded as a directory.
func (*Directory) Digest ¶
Return the directory's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
func (*Directory) DockerBuild ¶
func (r *Directory) DockerBuild(opts ...DirectoryDockerBuildOpts) *Container
Use Dockerfile compatibility to build a container from this directory. Only use this function for Dockerfile compatibility. Otherwise use the native Container type directly, it is feature-complete and supports all Dockerfile features.
func (*Directory) Exists ¶
func (r *Directory) Exists(ctx context.Context, path string, opts ...DirectoryExistsOpts) (bool, error)
check if a file or directory exists
func (*Directory) Export ¶
func (r *Directory) Export(ctx context.Context, path string, opts ...DirectoryExportOpts) (string, error)
Writes the contents of the directory to a path on the host.
func (*Directory) Filter ¶
func (r *Directory) Filter(opts ...DirectoryFilterOpts) *Directory
Return a snapshot with some paths included or excluded
func (*Directory) FindUp ¶
Search up the directory tree for a file or directory, and return its path. If no match, return null
func (*Directory) MarshalJSON ¶
func (*Directory) Search ¶
func (r *Directory) Search(ctx context.Context, pattern string, opts ...DirectorySearchOpts) ([]SearchResult, error)
Searches for content matching the given regular expression or literal string.
Uses Rust regex syntax; escape literal ., [, ], {, }, | with backslashes.
func (*Directory) Stat ¶
func (r *Directory) Stat(path string, opts ...DirectoryStatOpts) *Stat
Return file status
func (*Directory) Terminal ¶
func (r *Directory) Terminal(opts ...DirectoryTerminalOpts) *Directory
Opens an interactive terminal in new container with this directory mounted inside.
func (*Directory) With ¶
func (r *Directory) With(f WithDirectoryFunc) *Directory
With calls the provided function with current Directory.
This is useful for reusability and readability by not breaking the calling chain.
func (*Directory) WithChanges ¶
Return a directory with changes from another directory applied to it.
func (*Directory) WithDirectory ¶
func (r *Directory) WithDirectory(path string, source *Directory, opts ...DirectoryWithDirectoryOpts) *Directory
Return a snapshot with a directory added
func (*Directory) WithFile ¶
func (r *Directory) WithFile(path string, source *File, opts ...DirectoryWithFileOpts) *Directory
Retrieves this directory plus the contents of the given file copied to the given path.
func (*Directory) WithFiles ¶
func (r *Directory) WithFiles(path string, sources []*File, opts ...DirectoryWithFilesOpts) *Directory
Retrieves this directory plus the contents of the given files copied to the given path.
func (*Directory) WithGraphQLQuery ¶
func (r *Directory) WithGraphQLQuery(q *querybuilder.Selection) *Directory
func (*Directory) WithNewDirectory ¶
func (r *Directory) WithNewDirectory(path string, opts ...DirectoryWithNewDirectoryOpts) *Directory
Retrieves this directory plus a new directory created at the given path.
func (*Directory) WithNewFile ¶
func (r *Directory) WithNewFile(path string, contents string, opts ...DirectoryWithNewFileOpts) *Directory
Return a snapshot with a new file added
func (*Directory) WithPatch ¶
Retrieves this directory with the given Git-compatible patch applied.
Experimental: This API is highly experimental and may be removed or replaced entirely.
func (*Directory) WithPatchFile ¶
Retrieves this directory with the given Git-compatible patch file applied.
Experimental: This API is highly experimental and may be removed or replaced entirely.
func (*Directory) WithSymlink ¶
Return a snapshot with a symlink
func (*Directory) WithTimestamps ¶
Retrieves this directory with all file/dir timestamps set to the given time.
func (*Directory) WithoutDirectory ¶
Return a snapshot with a subdirectory removed
func (*Directory) WithoutFile ¶
Return a snapshot with a file removed
func (*Directory) WithoutFiles ¶
Return a snapshot with files removed
func (*Directory) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Directory) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Directory) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type DirectoryAsModuleOpts ¶
type DirectoryAsModuleOpts struct {
// An optional subpath of the directory which contains the module's configuration file.
//
// If not set, the module source code is loaded from the root of the directory.
//
// Default: "."
SourceRootPath string
}
DirectoryAsModuleOpts contains options for Directory.AsModule
type DirectoryAsModuleSourceOpts ¶
type DirectoryAsModuleSourceOpts struct {
// An optional subpath of the directory which contains the module's configuration file.
//
// If not set, the module source code is loaded from the root of the directory.
//
// Default: "."
SourceRootPath string
}
DirectoryAsModuleSourceOpts contains options for Directory.AsModuleSource
type DirectoryDockerBuildOpts ¶
type DirectoryDockerBuildOpts struct {
// Path to the Dockerfile to use (e.g., "frontend.Dockerfile").
//
// Default: "Dockerfile"
Dockerfile string
// The platform to build.
Platform Platform
// Build arguments to use in the build.
BuildArgs []BuildArg
// Target build stage to build.
Target string
// Secrets to pass to the build.
//
// They will be mounted at /run/secrets/[secret-name].
Secrets []*Secret
// If set, skip the automatic init process injected into containers created by RUN statements.
//
// This should only be used if the user requires that their exec processes be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
NoInit bool
// A socket to use for SSH authentication during the build
//
// (e.g., for Dockerfile RUN --mount=type=ssh instructions).
//
// Typically obtained via host.unixSocket() pointing to the SSH_AUTH_SOCK.
SSH *Socket
}
DirectoryDockerBuildOpts contains options for Directory.DockerBuild
type DirectoryEntriesOpts ¶
type DirectoryEntriesOpts struct {
// Location of the directory to look at (e.g., "/src").
Path string
}
DirectoryEntriesOpts contains options for Directory.Entries
type DirectoryExistsOpts ¶
type DirectoryExistsOpts struct {
// If specified, also validate the type of file (e.g. "REGULAR_TYPE", "DIRECTORY_TYPE", or "SYMLINK_TYPE").
ExpectedType ExistsType
// If specified, do not follow symlinks.
DoNotFollowSymlinks bool
}
DirectoryExistsOpts contains options for Directory.Exists
type DirectoryExportOpts ¶
type DirectoryExportOpts struct {
// If true, then the host directory will be wiped clean before exporting so that it exactly matches the directory being exported; this means it will delete any files on the host that aren't in the exported dir. If false (the default), the contents of the directory will be merged with any existing contents of the host directory, leaving any existing files on the host that aren't in the exported directory alone.
Wipe bool
}
DirectoryExportOpts contains options for Directory.Export
type DirectoryFilterOpts ¶
type DirectoryFilterOpts struct {
// If set, paths matching one of these glob patterns is excluded from the new snapshot. Example: ["node_modules/", ".git*", ".env"]
Exclude []string
// If set, only paths matching one of these glob patterns is included in the new snapshot. Example: (e.g., ["app/", "package.*"]).
Include []string
// If set, apply .gitignore rules when filtering the directory.
Gitignore bool
}
DirectoryFilterOpts contains options for Directory.Filter
type DirectorySearchOpts ¶
type DirectorySearchOpts struct {
// Directory or file paths to search
Paths []string
// Glob patterns to match (e.g., "*.md")
Globs []string
// Interpret the pattern as a literal string instead of a regular expression.
Literal bool
// Enable searching across multiple lines.
Multiline bool
// Allow the . pattern to match newlines in multiline mode.
Dotall bool
// Enable case-insensitive matching.
Insensitive bool
// Honor .gitignore, .ignore, and .rgignore files.
SkipIgnored bool
// Skip hidden files (files starting with .).
SkipHidden bool
// Only return matching files, not lines and content
FilesOnly bool
// Limit the number of results to return
Limit int
}
DirectorySearchOpts contains options for Directory.Search
type DirectoryStatOpts ¶
type DirectoryStatOpts struct {
// If specified, do not follow symlinks.
DoNotFollowSymlinks bool
}
DirectoryStatOpts contains options for Directory.Stat
type DirectoryTerminalOpts ¶
type DirectoryTerminalOpts struct {
// If set, override the default container used for the terminal.
Container *Container
// If set, override the container's default terminal command and invoke these command arguments instead.
Cmd []string
// Provides Dagger access to the executed command.
ExperimentalPrivilegedNesting bool
// Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
InsecureRootCapabilities bool
}
DirectoryTerminalOpts contains options for Directory.Terminal
type DirectoryWithDirectoryOpts ¶
type DirectoryWithDirectoryOpts struct {
// Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
Exclude []string
// Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
Include []string
// Apply .gitignore filter rules inside the directory
Gitignore bool
// A user:group to set for the copied directory and its contents.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
// Permission given to the copied directory and contents (e.g., 0755).
Permissions int
}
DirectoryWithDirectoryOpts contains options for Directory.WithDirectory
type DirectoryWithFileOpts ¶
type DirectoryWithFileOpts struct {
// Permission given to the copied file (e.g., 0600).
Permissions int
// A user:group to set for the copied directory and its contents.
//
// The user and group can either be an ID (1000:1000) or a name (foo:bar).
//
// If the group is omitted, it defaults to the same as the user.
Owner string
}
DirectoryWithFileOpts contains options for Directory.WithFile
type DirectoryWithFilesOpts ¶
type DirectoryWithFilesOpts struct {
// Permission given to the copied files (e.g., 0600).
Permissions int
}
DirectoryWithFilesOpts contains options for Directory.WithFiles
type DirectoryWithNewDirectoryOpts ¶
type DirectoryWithNewDirectoryOpts struct {
// Permission granted to the created directory (e.g., 0777).
//
// Default: 420
Permissions int
}
DirectoryWithNewDirectoryOpts contains options for Directory.WithNewDirectory
type DirectoryWithNewFileOpts ¶
type DirectoryWithNewFileOpts struct {
// Permissions of the new file. Example: 0600
//
// Default: 420
Permissions int
}
DirectoryWithNewFileOpts contains options for Directory.WithNewFile
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
The Dagger engine configuration and state
func (*Engine) AsNode ¶
AsNode returns this Engine as a Node. This is a local type conversion — no GraphQL call.
func (*Engine) LocalCache ¶
func (r *Engine) LocalCache() *EngineCache
The local engine cache state tracked by dagql
func (*Engine) MarshalJSON ¶
func (*Engine) WithGraphQLQuery ¶
func (r *Engine) WithGraphQLQuery(q *querybuilder.Selection) *Engine
func (*Engine) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Engine) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Engine) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type EngineCache ¶
type EngineCache struct {
// contains filtered or unexported fields
}
A cache storage for the Dagger engine
func (*EngineCache) AsNode ¶
func (r *EngineCache) AsNode() Node
AsNode returns this EngineCache as a Node. This is a local type conversion — no GraphQL call.
func (*EngineCache) EntrySet ¶
func (r *EngineCache) EntrySet(opts ...EngineCacheEntrySetOpts) *EngineCacheEntrySet
The current set of entries in the cache
func (*EngineCache) ID ¶
func (r *EngineCache) ID(ctx context.Context) (ID, error)
A unique identifier for this EngineCache.
func (*EngineCache) MarshalJSON ¶
func (r *EngineCache) MarshalJSON() ([]byte, error)
func (*EngineCache) MaxUsedSpace ¶
func (r *EngineCache) MaxUsedSpace(ctx context.Context) (int, error)
The maximum bytes to keep in the cache without pruning.
func (*EngineCache) MinFreeSpace ¶
func (r *EngineCache) MinFreeSpace(ctx context.Context) (int, error)
The target amount of free disk space the garbage collector will attempt to leave.
func (*EngineCache) Prune ¶
func (r *EngineCache) Prune(ctx context.Context, opts ...EngineCachePruneOpts) error
Prune the cache of releaseable entries
func (*EngineCache) ReservedSpace ¶
func (r *EngineCache) ReservedSpace(ctx context.Context) (int, error)
The minimum amount of disk space this policy is guaranteed to retain.
func (*EngineCache) TargetSpace ¶
func (r *EngineCache) TargetSpace(ctx context.Context) (int, error)
The target number of bytes to keep when pruning.
func (*EngineCache) WithGraphQLQuery ¶
func (r *EngineCache) WithGraphQLQuery(q *querybuilder.Selection) *EngineCache
func (*EngineCache) XXX_GraphQLID ¶
func (r *EngineCache) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*EngineCache) XXX_GraphQLIDType ¶
func (r *EngineCache) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*EngineCache) XXX_GraphQLType ¶
func (r *EngineCache) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type EngineCacheEntry ¶
type EngineCacheEntry struct {
// contains filtered or unexported fields
}
An individual cache entry in a cache entry set
func (*EngineCacheEntry) ActivelyUsed ¶
func (r *EngineCacheEntry) ActivelyUsed(ctx context.Context) (bool, error)
Whether the cache entry is actively being used.
func (*EngineCacheEntry) AsNode ¶
func (r *EngineCacheEntry) AsNode() Node
AsNode returns this EngineCacheEntry as a Node. This is a local type conversion — no GraphQL call.
func (*EngineCacheEntry) CreatedTimeUnixNano ¶
func (r *EngineCacheEntry) CreatedTimeUnixNano(ctx context.Context) (int, error)
The time the cache entry was created, in Unix nanoseconds.
func (*EngineCacheEntry) DagqlCall ¶
func (r *EngineCacheEntry) DagqlCall(ctx context.Context) (string, error)
The DagQL call that produced this cache entry.
func (*EngineCacheEntry) Description ¶
func (r *EngineCacheEntry) Description(ctx context.Context) (string, error)
The description of the cache entry.
func (*EngineCacheEntry) DiskSpaceBytes ¶
func (r *EngineCacheEntry) DiskSpaceBytes(ctx context.Context) (int, error)
The disk space used by the cache entry.
func (*EngineCacheEntry) ID ¶
func (r *EngineCacheEntry) ID(ctx context.Context) (ID, error)
A unique identifier for this EngineCacheEntry.
func (*EngineCacheEntry) MarshalJSON ¶
func (r *EngineCacheEntry) MarshalJSON() ([]byte, error)
func (*EngineCacheEntry) MostRecentUseTimeUnixNano ¶
func (r *EngineCacheEntry) MostRecentUseTimeUnixNano(ctx context.Context) (int, error)
The most recent time the cache entry was used, in Unix nanoseconds.
func (*EngineCacheEntry) RecordType ¶
func (r *EngineCacheEntry) RecordType(ctx context.Context) (string, error)
The type of the cache record (e.g. regular, internal, frontend, source.local, source.git.checkout, exec.cachemount).
func (*EngineCacheEntry) RecordTypes ¶
func (r *EngineCacheEntry) RecordTypes(ctx context.Context) ([]string, error)
The storage record types represented by this cache entry.
func (*EngineCacheEntry) WithGraphQLQuery ¶
func (r *EngineCacheEntry) WithGraphQLQuery(q *querybuilder.Selection) *EngineCacheEntry
func (*EngineCacheEntry) XXX_GraphQLID ¶
func (r *EngineCacheEntry) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*EngineCacheEntry) XXX_GraphQLIDType ¶
func (r *EngineCacheEntry) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*EngineCacheEntry) XXX_GraphQLType ¶
func (r *EngineCacheEntry) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type EngineCacheEntrySet ¶
type EngineCacheEntrySet struct {
// contains filtered or unexported fields
}
A set of cache entries returned by a query to a cache
func (*EngineCacheEntrySet) AsNode ¶
func (r *EngineCacheEntrySet) AsNode() Node
AsNode returns this EngineCacheEntrySet as a Node. This is a local type conversion — no GraphQL call.
func (*EngineCacheEntrySet) DiskSpaceBytes ¶
func (r *EngineCacheEntrySet) DiskSpaceBytes(ctx context.Context) (int, error)
The total disk space used by the cache entries in this set.
func (*EngineCacheEntrySet) Entries ¶
func (r *EngineCacheEntrySet) Entries(ctx context.Context) ([]EngineCacheEntry, error)
The list of individual cache entries in the set
func (*EngineCacheEntrySet) EntryCount ¶
func (r *EngineCacheEntrySet) EntryCount(ctx context.Context) (int, error)
The number of cache entries in this set.
func (*EngineCacheEntrySet) ID ¶
func (r *EngineCacheEntrySet) ID(ctx context.Context) (ID, error)
A unique identifier for this EngineCacheEntrySet.
func (*EngineCacheEntrySet) MarshalJSON ¶
func (r *EngineCacheEntrySet) MarshalJSON() ([]byte, error)
func (*EngineCacheEntrySet) WithGraphQLQuery ¶
func (r *EngineCacheEntrySet) WithGraphQLQuery(q *querybuilder.Selection) *EngineCacheEntrySet
func (*EngineCacheEntrySet) XXX_GraphQLID ¶
func (r *EngineCacheEntrySet) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*EngineCacheEntrySet) XXX_GraphQLIDType ¶
func (r *EngineCacheEntrySet) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*EngineCacheEntrySet) XXX_GraphQLType ¶
func (r *EngineCacheEntrySet) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type EngineCacheEntrySetOpts ¶
type EngineCacheEntrySetOpts struct {
Key string
}
EngineCacheEntrySetOpts contains options for EngineCache.EntrySet
type EngineCachePruneOpts ¶
type EngineCachePruneOpts struct {
// Use the engine-wide default pruning policy if true, otherwise prune the whole cache of any releasable entries.
UseDefaultPolicy bool
// Override the maximum disk space to keep before pruning (e.g. "200GB" or "80%").
MaxUsedSpace string
// Override the minimum disk space to retain during pruning (e.g. "500GB" or "10%").
ReservedSpace string
// Override the minimum free disk space target during pruning (e.g. "20GB" or "20%").
MinFreeSpace string
// Override the target disk space to keep after pruning (e.g. "200GB" or "50%").
TargetSpace string
}
EngineCachePruneOpts contains options for EngineCache.Prune
type EnumTypeDef ¶
type EnumTypeDef struct {
// contains filtered or unexported fields
}
A definition of a custom enum defined in a Module.
func (*EnumTypeDef) AsNode ¶
func (r *EnumTypeDef) AsNode() Node
AsNode returns this EnumTypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*EnumTypeDef) Description ¶
func (r *EnumTypeDef) Description(ctx context.Context) (string, error)
A doc string for the enum, if any.
func (*EnumTypeDef) ID ¶
func (r *EnumTypeDef) ID(ctx context.Context) (ID, error)
A unique identifier for this EnumTypeDef.
func (*EnumTypeDef) MarshalJSON ¶
func (r *EnumTypeDef) MarshalJSON() ([]byte, error)
func (*EnumTypeDef) Members ¶
func (r *EnumTypeDef) Members(ctx context.Context) ([]EnumValueTypeDef, error)
The members of the enum.
func (*EnumTypeDef) Name ¶
func (r *EnumTypeDef) Name(ctx context.Context) (string, error)
The name of the enum.
func (*EnumTypeDef) SourceMap ¶
func (r *EnumTypeDef) SourceMap() *SourceMap
The location of this enum declaration.
func (*EnumTypeDef) SourceModuleName ¶
func (r *EnumTypeDef) SourceModuleName(ctx context.Context) (string, error)
If this EnumTypeDef is associated with a Module, the name of the module. Unset otherwise.
func (*EnumTypeDef) Values
deprecated
func (r *EnumTypeDef) Values(ctx context.Context) ([]EnumValueTypeDef, error)
The members of the enum.
Deprecated: use members instead
func (*EnumTypeDef) WithGraphQLQuery ¶
func (r *EnumTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *EnumTypeDef
func (*EnumTypeDef) XXX_GraphQLID ¶
func (r *EnumTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*EnumTypeDef) XXX_GraphQLIDType ¶
func (r *EnumTypeDef) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*EnumTypeDef) XXX_GraphQLType ¶
func (r *EnumTypeDef) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type EnumValueTypeDef ¶
type EnumValueTypeDef struct {
// contains filtered or unexported fields
}
A definition of a value in a custom enum defined in a Module.
func (*EnumValueTypeDef) AsNode ¶
func (r *EnumValueTypeDef) AsNode() Node
AsNode returns this EnumValueTypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*EnumValueTypeDef) Deprecated ¶
func (r *EnumValueTypeDef) Deprecated(ctx context.Context) (string, error)
The reason this enum member is deprecated, if any.
func (*EnumValueTypeDef) Description ¶
func (r *EnumValueTypeDef) Description(ctx context.Context) (string, error)
A doc string for the enum member, if any.
func (*EnumValueTypeDef) ID ¶
func (r *EnumValueTypeDef) ID(ctx context.Context) (ID, error)
A unique identifier for this EnumValueTypeDef.
func (*EnumValueTypeDef) MarshalJSON ¶
func (r *EnumValueTypeDef) MarshalJSON() ([]byte, error)
func (*EnumValueTypeDef) Name ¶
func (r *EnumValueTypeDef) Name(ctx context.Context) (string, error)
The name of the enum member.
func (*EnumValueTypeDef) SourceMap ¶
func (r *EnumValueTypeDef) SourceMap() *SourceMap
The location of this enum member declaration.
func (*EnumValueTypeDef) Value ¶
func (r *EnumValueTypeDef) Value(ctx context.Context) (string, error)
The value of the enum member
func (*EnumValueTypeDef) WithGraphQLQuery ¶
func (r *EnumValueTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *EnumValueTypeDef
func (*EnumValueTypeDef) XXX_GraphQLID ¶
func (r *EnumValueTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*EnumValueTypeDef) XXX_GraphQLIDType ¶
func (r *EnumValueTypeDef) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*EnumValueTypeDef) XXX_GraphQLType ¶
func (r *EnumValueTypeDef) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func (*Env) AsNode ¶
AsNode returns this Env as a Node. This is a local type conversion — no GraphQL call.
func (*Env) Check ¶
Return the check with the given name from the installed modules. Must match exactly one check.
Experimental: Checks API is highly experimental and may be removed or replaced entirely.
func (*Env) Checks ¶
func (r *Env) Checks(opts ...EnvChecksOpts) *CheckGroup
Return all checks defined by the installed modules
Experimental: Checks API is highly experimental and may be removed or replaced entirely.
func (*Env) MarshalJSON ¶
func (*Env) Services ¶
func (r *Env) Services(opts ...EnvServicesOpts) *UpGroup
Return all services defined by the installed modules
Experimental: Services API is highly experimental and may be removed or replaced entirely.
func (*Env) With ¶
func (r *Env) With(f WithEnvFunc) *Env
With calls the provided function with current Env.
This is useful for reusability and readability by not breaking the calling chain.
func (*Env) WithAddressInput ¶
Create or update a binding of type Address in the environment
func (*Env) WithAddressOutput ¶
Declare a desired Address output to be assigned in the environment
func (*Env) WithArchInput ¶
Create or update a binding of type Arch in the environment
func (*Env) WithArchOutput ¶
Declare a desired Arch output to be assigned in the environment
func (*Env) WithArchiveInput ¶
Create or update a binding of type Archive in the environment
func (*Env) WithArchiveOutput ¶
Declare a desired Archive output to be assigned in the environment
func (*Env) WithCacheVolumeInput ¶
func (r *Env) WithCacheVolumeInput(name string, value *CacheVolume, description string) *Env
Create or update a binding of type CacheVolume in the environment
func (*Env) WithCacheVolumeOutput ¶
Declare a desired CacheVolume output to be assigned in the environment
func (*Env) WithChangesetInput ¶
Create or update a binding of type Changeset in the environment
func (*Env) WithChangesetOutput ¶
Declare a desired Changeset output to be assigned in the environment
func (*Env) WithCheckGroupInput ¶
func (r *Env) WithCheckGroupInput(name string, value *CheckGroup, description string) *Env
Create or update a binding of type CheckGroup in the environment
func (*Env) WithCheckGroupOutput ¶
Declare a desired CheckGroup output to be assigned in the environment
func (*Env) WithCheckInput ¶
Create or update a binding of type Check in the environment
func (*Env) WithCheckOutput ¶
Declare a desired Check output to be assigned in the environment
func (*Env) WithCloudInput ¶
Create or update a binding of type Cloud in the environment
func (*Env) WithCloudOutput ¶
Declare a desired Cloud output to be assigned in the environment
func (*Env) WithContainerInput ¶
Create or update a binding of type Container in the environment
func (*Env) WithContainerOutput ¶
Declare a desired Container output to be assigned in the environment
func (*Env) WithCurrentModule ¶
Installs the current module into the environment, exposing its functions to the model
Contextual path arguments will be populated using the environment's workspace.
func (*Env) WithDiffStatInput ¶
Create or update a binding of type DiffStat in the environment
func (*Env) WithDiffStatOutput ¶
Declare a desired DiffStat output to be assigned in the environment
func (*Env) WithDirectoryInput ¶
Create or update a binding of type Directory in the environment
func (*Env) WithDirectoryOutput ¶
Declare a desired Directory output to be assigned in the environment
func (*Env) WithEnvFileInput ¶
Create or update a binding of type EnvFile in the environment
func (*Env) WithEnvFileOutput ¶
Declare a desired EnvFile output to be assigned in the environment
func (*Env) WithEnvInput ¶
Create or update a binding of type Env in the environment
func (*Env) WithEnvOutput ¶
Declare a desired Env output to be assigned in the environment
func (*Env) WithFileInput ¶
Create or update a binding of type File in the environment
func (*Env) WithFileOutput ¶
Declare a desired File output to be assigned in the environment
func (*Env) WithGeneratorGroupInput ¶
func (r *Env) WithGeneratorGroupInput(name string, value *GeneratorGroup, description string) *Env
Create or update a binding of type GeneratorGroup in the environment
func (*Env) WithGeneratorGroupOutput ¶
Declare a desired GeneratorGroup output to be assigned in the environment
func (*Env) WithGeneratorInput ¶
Create or update a binding of type Generator in the environment
func (*Env) WithGeneratorOutput ¶
Declare a desired Generator output to be assigned in the environment
func (*Env) WithGitRefInput ¶
Create or update a binding of type GitRef in the environment
func (*Env) WithGitRefOutput ¶
Declare a desired GitRef output to be assigned in the environment
func (*Env) WithGitRepositoryInput ¶
func (r *Env) WithGitRepositoryInput(name string, value *GitRepository, description string) *Env
Create or update a binding of type GitRepository in the environment
func (*Env) WithGitRepositoryOutput ¶
Declare a desired GitRepository output to be assigned in the environment
func (*Env) WithGoInput ¶
Create or update a binding of type Go in the environment
func (*Env) WithGoOutput ¶
Declare a desired Go output to be assigned in the environment
func (*Env) WithGraphQLQuery ¶
func (r *Env) WithGraphQLQuery(q *querybuilder.Selection) *Env
func (*Env) WithHTTPStateInput ¶
Create or update a binding of type HTTPState in the environment
func (*Env) WithHTTPStateOutput ¶
Declare a desired HTTPState output to be assigned in the environment
func (*Env) WithJSONValueInput ¶
Create or update a binding of type JSONValue in the environment
func (*Env) WithJSONValueOutput ¶
Declare a desired JSONValue output to be assigned in the environment
func (*Env) WithMainModule ¶
Sets the main module for this environment (the project being worked on)
Contextual path arguments will be populated using the environment's workspace.
func (*Env) WithMiseInput ¶
Create or update a binding of type Mise in the environment
func (*Env) WithMiseOutput ¶
Declare a desired Mise output to be assigned in the environment
func (*Env) WithModule
deprecated
func (*Env) WithModuleConfigClientInput ¶
func (r *Env) WithModuleConfigClientInput(name string, value *ModuleConfigClient, description string) *Env
Create or update a binding of type ModuleConfigClient in the environment
func (*Env) WithModuleConfigClientOutput ¶
Declare a desired ModuleConfigClient output to be assigned in the environment
func (*Env) WithModuleInput ¶
Create or update a binding of type Module in the environment
func (*Env) WithModuleOutput ¶
Declare a desired Module output to be assigned in the environment
func (*Env) WithModuleSourceInput ¶
func (r *Env) WithModuleSourceInput(name string, value *ModuleSource, description string) *Env
Create or update a binding of type ModuleSource in the environment
func (*Env) WithModuleSourceOutput ¶
Declare a desired ModuleSource output to be assigned in the environment
func (*Env) WithSearchResultInput ¶
func (r *Env) WithSearchResultInput(name string, value *SearchResult, description string) *Env
Create or update a binding of type SearchResult in the environment
func (*Env) WithSearchResultOutput ¶
Declare a desired SearchResult output to be assigned in the environment
func (*Env) WithSearchSubmatchInput ¶
func (r *Env) WithSearchSubmatchInput(name string, value *SearchSubmatch, description string) *Env
Create or update a binding of type SearchSubmatch in the environment
func (*Env) WithSearchSubmatchOutput ¶
Declare a desired SearchSubmatch output to be assigned in the environment
func (*Env) WithSecretInput ¶
Create or update a binding of type Secret in the environment
func (*Env) WithSecretOutput ¶
Declare a desired Secret output to be assigned in the environment
func (*Env) WithServiceInput ¶
Create or update a binding of type Service in the environment
func (*Env) WithServiceOutput ¶
Declare a desired Service output to be assigned in the environment
func (*Env) WithSindriDevInput ¶
Create or update a binding of type SindriDev in the environment
func (*Env) WithSindriDevOutput ¶
Declare a desired SindriDev output to be assigned in the environment
func (*Env) WithSindriInput ¶
Create or update a binding of type Sindri in the environment
func (*Env) WithSindriOutput ¶
Declare a desired Sindri output to be assigned in the environment
func (*Env) WithSocketInput ¶
Create or update a binding of type Socket in the environment
func (*Env) WithSocketOutput ¶
Declare a desired Socket output to be assigned in the environment
func (*Env) WithStatInput ¶
Create or update a binding of type Stat in the environment
func (*Env) WithStatOutput ¶
Declare a desired Stat output to be assigned in the environment
func (*Env) WithStringInput ¶
Provides a string input binding to the environment
func (*Env) WithStringOutput ¶
Declares a desired string output binding
func (*Env) WithUpGroupInput ¶
Create or update a binding of type UpGroup in the environment
func (*Env) WithUpGroupOutput ¶
Declare a desired UpGroup output to be assigned in the environment
func (*Env) WithUpInput ¶
Create or update a binding of type Up in the environment
func (*Env) WithUpOutput ¶
Declare a desired Up output to be assigned in the environment
func (*Env) WithWolfiInput ¶
Create or update a binding of type Wolfi in the environment
func (*Env) WithWolfiOutput ¶
Declare a desired Wolfi output to be assigned in the environment
func (*Env) WithWorkspace ¶
Returns a new environment with the provided workspace
func (*Env) WithWorkspaceInput ¶
Create or update a binding of type Workspace in the environment
func (*Env) WithWorkspaceOutput ¶
Declare a desired Workspace output to be assigned in the environment
func (*Env) WithoutOutputs ¶
Returns a new environment without any outputs
func (*Env) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Env) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Env) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type EnvChecksOpts ¶
type EnvChecksOpts struct {
// Only include checks matching the specified patterns
Include []string
// When true, only return annotated check functions; exclude generate-as-checks
NoGenerate bool
}
EnvChecksOpts contains options for Env.Checks
type EnvFile ¶
type EnvFile struct {
// contains filtered or unexported fields
}
A collection of environment variables.
func (*EnvFile) AsNode ¶
AsNode returns this EnvFile as a Node. This is a local type conversion — no GraphQL call.
func (*EnvFile) Get ¶
Lookup a variable (last occurrence wins) and return its value, or an empty string
func (*EnvFile) MarshalJSON ¶
func (*EnvFile) Namespace ¶
Filters variables by prefix and removes the pref from keys. Variables without the prefix are excluded. For example, with the prefix "MY_APP_" and variables: MY_APP_TOKEN=topsecret MY_APP_NAME=hello FOO=bar the resulting environment will contain: TOKEN=topsecret NAME=hello
func (*EnvFile) Variables ¶
func (r *EnvFile) Variables(ctx context.Context, opts ...EnvFileVariablesOpts) ([]EnvVariable, error)
Return all variables
func (*EnvFile) With ¶
func (r *EnvFile) With(f WithEnvFileFunc) *EnvFile
With calls the provided function with current EnvFile.
This is useful for reusability and readability by not breaking the calling chain.
func (*EnvFile) WithGraphQLQuery ¶
func (r *EnvFile) WithGraphQLQuery(q *querybuilder.Selection) *EnvFile
func (*EnvFile) WithVariable ¶
Add a variable
func (*EnvFile) WithoutVariable ¶
Remove all occurrences of the named variable
func (*EnvFile) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*EnvFile) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*EnvFile) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type EnvFileGetOpts ¶
type EnvFileGetOpts struct {
// Return the value exactly as written to the file. No quote removal or variable expansion
Raw bool
}
EnvFileGetOpts contains options for EnvFile.Get
type EnvFileOpts ¶
type EnvFileOpts struct {
// Replace "${VAR}" or "$VAR" with the value of other vars
// Deprecated: Variable expansion is now enabled by default
Expand bool
}
EnvFileOpts contains options for Query.EnvFile
type EnvFileVariablesOpts ¶
type EnvFileVariablesOpts struct {
// Return values exactly as written to the file. No quote removal or variable expansion
Raw bool
}
EnvFileVariablesOpts contains options for EnvFile.Variables
type EnvOpts ¶
type EnvOpts struct {
// Give the environment the same privileges as the caller: core API including host access, current module, and dependencies
Privileged bool
// Allow new outputs to be declared and saved in the environment
Writable bool
}
EnvOpts contains options for Query.Env
type EnvServicesOpts ¶
type EnvServicesOpts struct {
// Only include services matching the specified patterns
Include []string
}
EnvServicesOpts contains options for Env.Services
type EnvVariable ¶
type EnvVariable struct {
// contains filtered or unexported fields
}
An environment variable name and value.
func (*EnvVariable) AsNode ¶
func (r *EnvVariable) AsNode() Node
AsNode returns this EnvVariable as a Node. This is a local type conversion — no GraphQL call.
func (*EnvVariable) ID ¶
func (r *EnvVariable) ID(ctx context.Context) (ID, error)
A unique identifier for this EnvVariable.
func (*EnvVariable) MarshalJSON ¶
func (r *EnvVariable) MarshalJSON() ([]byte, error)
func (*EnvVariable) Name ¶
func (r *EnvVariable) Name(ctx context.Context) (string, error)
The environment variable name.
func (*EnvVariable) Value ¶
func (r *EnvVariable) Value(ctx context.Context) (string, error)
The environment variable value.
func (*EnvVariable) WithGraphQLQuery ¶
func (r *EnvVariable) WithGraphQLQuery(q *querybuilder.Selection) *EnvVariable
func (*EnvVariable) XXX_GraphQLID ¶
func (r *EnvVariable) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*EnvVariable) XXX_GraphQLIDType ¶
func (r *EnvVariable) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*EnvVariable) XXX_GraphQLType ¶
func (r *EnvVariable) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) AsNode ¶
AsNode returns this Error as a Node. This is a local type conversion — no GraphQL call.
func (*Error) MarshalJSON ¶
func (*Error) Values ¶
func (r *Error) Values(ctx context.Context) ([]ErrorValue, error)
The extensions of the error.
func (*Error) With ¶
func (r *Error) With(f WithErrorFunc) *Error
With calls the provided function with current Error.
This is useful for reusability and readability by not breaking the calling chain.
func (*Error) WithGraphQLQuery ¶
func (r *Error) WithGraphQLQuery(q *querybuilder.Selection) *Error
func (*Error) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Error) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Error) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ErrorValue ¶
type ErrorValue struct {
// contains filtered or unexported fields
}
func (*ErrorValue) AsNode ¶
func (r *ErrorValue) AsNode() Node
AsNode returns this ErrorValue as a Node. This is a local type conversion — no GraphQL call.
func (*ErrorValue) ID ¶
func (r *ErrorValue) ID(ctx context.Context) (ID, error)
A unique identifier for this ErrorValue.
func (*ErrorValue) MarshalJSON ¶
func (r *ErrorValue) MarshalJSON() ([]byte, error)
func (*ErrorValue) Name ¶
func (r *ErrorValue) Name(ctx context.Context) (string, error)
The name of the value.
func (*ErrorValue) WithGraphQLQuery ¶
func (r *ErrorValue) WithGraphQLQuery(q *querybuilder.Selection) *ErrorValue
func (*ErrorValue) XXX_GraphQLID ¶
func (r *ErrorValue) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*ErrorValue) XXX_GraphQLIDType ¶
func (r *ErrorValue) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*ErrorValue) XXX_GraphQLType ¶
func (r *ErrorValue) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ExecError ¶
type ExecError struct {
Cmd []string
ExitCode int
Stdout string
Stderr string
// contains filtered or unexported fields
}
ExecError is an API error from an exec operation.
func (*ExecError) Extensions ¶
type ExistsType ¶
type ExistsType string
File type.
const ( // Tests path is a regular file ExistsTypeRegularType ExistsType = "REGULAR_TYPE" // Tests path is a directory ExistsTypeDirectoryType ExistsType = "DIRECTORY_TYPE" // Tests path is a symlink ExistsTypeSymlinkType ExistsType = "SYMLINK_TYPE" )
func (ExistsType) IsEnum ¶
func (ExistsType) IsEnum()
func (*ExistsType) MarshalJSON ¶
func (v *ExistsType) MarshalJSON() ([]byte, error)
func (ExistsType) Name ¶
func (v ExistsType) Name() string
func (*ExistsType) UnmarshalJSON ¶
func (v *ExistsType) UnmarshalJSON(dt []byte) error
func (ExistsType) Value ¶
func (v ExistsType) Value() string
type Exportable ¶
type Exportable interface {
DaggerObject
Export(ctx context.Context, path string) (string, error)
ID(ctx context.Context) (ID, error)
// Concrete loads and returns the underlying concrete type of this
// interface, which can then be used with a type switch.
Concrete(ctx context.Context) (Node, error)
}
An object that can be exported to the host.
Calling export writes the object to a path on the host filesystem and returns the path that was written.
type ExportableClient ¶
type ExportableClient struct {
// contains filtered or unexported fields
}
ExportableClient is the query-builder for the Exportable interface.
func (*ExportableClient) Concrete ¶
func (r *ExportableClient) Concrete(ctx context.Context) (Node, error)
Concrete loads and returns the underlying concrete type of this interface, which can then be used with a type switch.
func (*ExportableClient) MarshalJSON ¶
func (r *ExportableClient) MarshalJSON() ([]byte, error)
func (*ExportableClient) WithGraphQLQuery ¶
func (r *ExportableClient) WithGraphQLQuery(q *querybuilder.Selection) *ExportableClient
func (*ExportableClient) XXX_GraphQLID ¶
func (r *ExportableClient) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*ExportableClient) XXX_GraphQLIDType ¶
func (r *ExportableClient) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*ExportableClient) XXX_GraphQLType ¶
func (r *ExportableClient) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type FieldTypeDef ¶
type FieldTypeDef struct {
// contains filtered or unexported fields
}
A definition of a field on a custom object defined in a Module.
A field on an object has a static value, as opposed to a function on an object whose value is computed by invoking code (and can accept arguments).
func (*FieldTypeDef) AsNode ¶
func (r *FieldTypeDef) AsNode() Node
AsNode returns this FieldTypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*FieldTypeDef) Deprecated ¶
func (r *FieldTypeDef) Deprecated(ctx context.Context) (string, error)
The reason this enum member is deprecated, if any.
func (*FieldTypeDef) Description ¶
func (r *FieldTypeDef) Description(ctx context.Context) (string, error)
A doc string for the field, if any.
func (*FieldTypeDef) ID ¶
func (r *FieldTypeDef) ID(ctx context.Context) (ID, error)
A unique identifier for this FieldTypeDef.
func (*FieldTypeDef) MarshalJSON ¶
func (r *FieldTypeDef) MarshalJSON() ([]byte, error)
func (*FieldTypeDef) Name ¶
func (r *FieldTypeDef) Name(ctx context.Context) (string, error)
The name of the field in lowerCamelCase format.
func (*FieldTypeDef) SourceMap ¶
func (r *FieldTypeDef) SourceMap() *SourceMap
The location of this field declaration.
func (*FieldTypeDef) WithGraphQLQuery ¶
func (r *FieldTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *FieldTypeDef
func (*FieldTypeDef) XXX_GraphQLID ¶
func (r *FieldTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*FieldTypeDef) XXX_GraphQLIDType ¶
func (r *FieldTypeDef) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*FieldTypeDef) XXX_GraphQLType ¶
func (r *FieldTypeDef) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type File ¶
type File struct {
// contains filtered or unexported fields
}
A file.
func (*File) AsEnvFile ¶
func (r *File) AsEnvFile(opts ...FileAsEnvFileOpts) *EnvFile
Parse as an env file
func (*File) AsExportable ¶
func (r *File) AsExportable() Exportable
AsExportable returns this File as a Exportable. This is a local type conversion — no GraphQL call.
func (*File) AsNode ¶
AsNode returns this File as a Node. This is a local type conversion — no GraphQL call.
func (*File) AsSyncer ¶
AsSyncer returns this File as a Syncer. This is a local type conversion — no GraphQL call.
func (*File) Digest ¶
Return the file's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
func (*File) MarshalJSON ¶
func (*File) Search ¶
func (r *File) Search(ctx context.Context, pattern string, opts ...FileSearchOpts) ([]SearchResult, error)
Searches for content matching the given regular expression or literal string.
Uses Rust regex syntax; escape literal ., [, ], {, }, | with backslashes.
func (*File) With ¶
func (r *File) With(f WithFileFunc) *File
With calls the provided function with current File.
This is useful for reusability and readability by not breaking the calling chain.
func (*File) WithGraphQLQuery ¶
func (r *File) WithGraphQLQuery(q *querybuilder.Selection) *File
func (*File) WithReplaced ¶
func (r *File) WithReplaced(search string, replacement string, opts ...FileWithReplacedOpts) *File
Retrieves the file with content replaced with the given text.
If 'all' is true, all occurrences of the pattern will be replaced.
If 'firstAfter' is specified, only the first match starting at the specified line will be replaced.
If neither are specified, and there are multiple matches for the pattern, this will error.
If there are no matches for the pattern, this will error.
func (*File) WithTimestamps ¶
Retrieves this file with its created/modified timestamps set to the given time.
func (*File) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*File) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*File) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type FileAsEnvFileOpts ¶
type FileAsEnvFileOpts struct {
// Replace "${VAR}" or "$VAR" with the value of other vars
// Deprecated: Variable expansion is now enabled by default
Expand bool
}
FileAsEnvFileOpts contains options for File.AsEnvFile
type FileContentsOpts ¶
type FileContentsOpts struct {
// Start reading after this line
OffsetLines int
// Maximum number of lines to read
LimitLines int
}
FileContentsOpts contains options for File.Contents
type FileDigestOpts ¶
type FileDigestOpts struct {
// If true, exclude metadata from the digest.
ExcludeMetadata bool
}
FileDigestOpts contains options for File.Digest
type FileExportOpts ¶
type FileExportOpts struct {
// If allowParentDirPath is true, the path argument can be a directory path, in which case the file will be created in that directory.
AllowParentDirPath bool
}
FileExportOpts contains options for File.Export
type FileOpts ¶
type FileOpts struct {
// Permissions of the new file. Example: 0600
//
// Default: 420
Permissions int
}
FileOpts contains options for Query.File
type FileSearchOpts ¶
type FileSearchOpts struct {
// Interpret the pattern as a literal string instead of a regular expression.
Literal bool
// Enable searching across multiple lines.
Multiline bool
// Allow the . pattern to match newlines in multiline mode.
Dotall bool
// Enable case-insensitive matching.
Insensitive bool
// Honor .gitignore, .ignore, and .rgignore files.
SkipIgnored bool
// Skip hidden files (files starting with .).
SkipHidden bool
// Only return matching files, not lines and content
FilesOnly bool
// Limit the number of results to return
Limit int
Paths []string
Globs []string
}
FileSearchOpts contains options for File.Search
type FileType ¶
type FileType string
File type.
const ( // unknown file type FileTypeUnknown FileType = "UNKNOWN" // regular file type FileTypeRegular FileType = "REGULAR" // regular file type FileTypeRegularType FileType = FileTypeRegular // directory file type FileTypeDirectory FileType = "DIRECTORY" // directory file type FileTypeDirectoryType FileType = FileTypeDirectory // symlink file type FileTypeSymlink FileType = "SYMLINK" // symlink file type FileTypeSymlinkType FileType = FileTypeSymlink )
func (*FileType) MarshalJSON ¶
func (*FileType) UnmarshalJSON ¶
type FileWithReplacedOpts ¶
type FileWithReplacedOpts struct {
// Replace all occurrences of the pattern.
All bool
// Replace the first match starting from the specified line.
FirstFrom int
}
FileWithReplacedOpts contains options for File.WithReplaced
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
Function represents a resolver provided by a Module.
A function always evaluates against a parent object and is given a set of named arguments.
func (*Function) Args ¶
func (r *Function) Args(ctx context.Context) ([]FunctionArg, error)
Arguments accepted by the function, if any.
func (*Function) AsNode ¶
AsNode returns this Function as a Node. This is a local type conversion — no GraphQL call.
func (*Function) Deprecated ¶
The reason this function is deprecated, if any.
func (*Function) Description ¶
A doc string for the function, if any.
func (*Function) MarshalJSON ¶
func (*Function) ReturnType ¶
The type returned by the function.
func (*Function) SourceModuleName ¶
If this function is provided by a module, the name of the module. Unset otherwise.
func (*Function) With ¶
func (r *Function) With(f WithFunctionFunc) *Function
With calls the provided function with current Function.
This is useful for reusability and readability by not breaking the calling chain.
func (*Function) WithArg ¶
func (r *Function) WithArg(name string, typeDef *TypeDef, opts ...FunctionWithArgOpts) *Function
Returns the function with the provided argument
func (*Function) WithCachePolicy ¶
func (r *Function) WithCachePolicy(policy FunctionCachePolicy, opts ...FunctionWithCachePolicyOpts) *Function
Returns the function updated to use the provided cache policy.
func (*Function) WithDeprecated ¶
func (r *Function) WithDeprecated(opts ...FunctionWithDeprecatedOpts) *Function
Returns the function with the provided deprecation reason.
func (*Function) WithDescription ¶
Returns the function with the given doc string.
func (*Function) WithGenerator ¶
Returns the function with a flag indicating it's a generator.
func (*Function) WithGraphQLQuery ¶
func (r *Function) WithGraphQLQuery(q *querybuilder.Selection) *Function
func (*Function) WithSourceMap ¶
Returns the function with the given source map.
func (*Function) WithUp ¶
Returns the function with a flag indicating it returns a service for dagger up.
func (*Function) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Function) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Function) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type FunctionArg ¶
type FunctionArg struct {
// contains filtered or unexported fields
}
An argument accepted by a function.
This is a specification for an argument at function definition time, not an argument passed at function call time.
func (*FunctionArg) AsNode ¶
func (r *FunctionArg) AsNode() Node
AsNode returns this FunctionArg as a Node. This is a local type conversion — no GraphQL call.
func (*FunctionArg) DefaultAddress ¶
func (r *FunctionArg) DefaultAddress(ctx context.Context) (string, error)
Only applies to arguments of type Container. If the argument is not set, load it from the given address (e.g. alpine:latest)
func (*FunctionArg) DefaultPath ¶
func (r *FunctionArg) DefaultPath(ctx context.Context) (string, error)
Only applies to arguments of type File or Directory. If the argument is not set, load it from the given path in the context directory
func (*FunctionArg) DefaultValue ¶
func (r *FunctionArg) DefaultValue(ctx context.Context) (JSON, error)
A default value to use for this argument when not explicitly set by the caller, if any.
func (*FunctionArg) Deprecated ¶
func (r *FunctionArg) Deprecated(ctx context.Context) (string, error)
The reason this function is deprecated, if any.
func (*FunctionArg) Description ¶
func (r *FunctionArg) Description(ctx context.Context) (string, error)
A doc string for the argument, if any.
func (*FunctionArg) ID ¶
func (r *FunctionArg) ID(ctx context.Context) (ID, error)
A unique identifier for this FunctionArg.
func (*FunctionArg) Ignore ¶
func (r *FunctionArg) Ignore(ctx context.Context) ([]string, error)
Only applies to arguments of type Directory. The ignore patterns are applied to the input directory, and matching entries are filtered out, in a cache-efficient manner.
func (*FunctionArg) MarshalJSON ¶
func (r *FunctionArg) MarshalJSON() ([]byte, error)
func (*FunctionArg) Name ¶
func (r *FunctionArg) Name(ctx context.Context) (string, error)
The name of the argument in lowerCamelCase format.
func (*FunctionArg) SourceMap ¶
func (r *FunctionArg) SourceMap() *SourceMap
The location of this arg declaration.
func (*FunctionArg) WithGraphQLQuery ¶
func (r *FunctionArg) WithGraphQLQuery(q *querybuilder.Selection) *FunctionArg
func (*FunctionArg) XXX_GraphQLID ¶
func (r *FunctionArg) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*FunctionArg) XXX_GraphQLIDType ¶
func (r *FunctionArg) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*FunctionArg) XXX_GraphQLType ¶
func (r *FunctionArg) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type FunctionCachePolicy ¶
type FunctionCachePolicy string
The behavior configured for function result caching.
const ( FunctionCachePolicyDefault FunctionCachePolicy = "Default" FunctionCachePolicyPerSession FunctionCachePolicy = "PerSession" FunctionCachePolicyNever FunctionCachePolicy = "Never" )
func (FunctionCachePolicy) IsEnum ¶
func (FunctionCachePolicy) IsEnum()
func (*FunctionCachePolicy) MarshalJSON ¶
func (v *FunctionCachePolicy) MarshalJSON() ([]byte, error)
func (FunctionCachePolicy) Name ¶
func (v FunctionCachePolicy) Name() string
func (*FunctionCachePolicy) UnmarshalJSON ¶
func (v *FunctionCachePolicy) UnmarshalJSON(dt []byte) error
func (FunctionCachePolicy) Value ¶
func (v FunctionCachePolicy) Value() string
type FunctionCall ¶
type FunctionCall struct {
// contains filtered or unexported fields
}
An active function call.
func (*FunctionCall) AsNode ¶
func (r *FunctionCall) AsNode() Node
AsNode returns this FunctionCall as a Node. This is a local type conversion — no GraphQL call.
func (*FunctionCall) ID ¶
func (r *FunctionCall) ID(ctx context.Context) (ID, error)
A unique identifier for this FunctionCall.
func (*FunctionCall) InputArgs ¶
func (r *FunctionCall) InputArgs(ctx context.Context) ([]FunctionCallArgValue, error)
The argument values the function is being invoked with.
func (*FunctionCall) MarshalJSON ¶
func (r *FunctionCall) MarshalJSON() ([]byte, error)
func (*FunctionCall) Name ¶
func (r *FunctionCall) Name(ctx context.Context) (string, error)
The name of the function being called.
func (*FunctionCall) Parent ¶
func (r *FunctionCall) Parent(ctx context.Context) (JSON, error)
The value of the parent object of the function being called. If the function is top-level to the module, this is always an empty object.
func (*FunctionCall) ParentName ¶
func (r *FunctionCall) ParentName(ctx context.Context) (string, error)
The name of the parent object of the function being called. If the function is top-level to the module, this is the name of the module.
func (*FunctionCall) ReturnError ¶
func (r *FunctionCall) ReturnError(ctx context.Context, error *Error) error
Return an error from the function.
func (*FunctionCall) ReturnValue ¶
func (r *FunctionCall) ReturnValue(ctx context.Context, value JSON) error
Set the return value of the function call to the provided value.
func (*FunctionCall) WithGraphQLQuery ¶
func (r *FunctionCall) WithGraphQLQuery(q *querybuilder.Selection) *FunctionCall
func (*FunctionCall) XXX_GraphQLID ¶
func (r *FunctionCall) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*FunctionCall) XXX_GraphQLIDType ¶
func (r *FunctionCall) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*FunctionCall) XXX_GraphQLType ¶
func (r *FunctionCall) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type FunctionCallArgValue ¶
type FunctionCallArgValue struct {
// contains filtered or unexported fields
}
A value passed as a named argument to a function call.
func (*FunctionCallArgValue) AsNode ¶
func (r *FunctionCallArgValue) AsNode() Node
AsNode returns this FunctionCallArgValue as a Node. This is a local type conversion — no GraphQL call.
func (*FunctionCallArgValue) ID ¶
func (r *FunctionCallArgValue) ID(ctx context.Context) (ID, error)
A unique identifier for this FunctionCallArgValue.
func (*FunctionCallArgValue) MarshalJSON ¶
func (r *FunctionCallArgValue) MarshalJSON() ([]byte, error)
func (*FunctionCallArgValue) Name ¶
func (r *FunctionCallArgValue) Name(ctx context.Context) (string, error)
The name of the argument.
func (*FunctionCallArgValue) Value ¶
func (r *FunctionCallArgValue) Value(ctx context.Context) (JSON, error)
The value of the argument represented as a JSON serialized string.
func (*FunctionCallArgValue) WithGraphQLQuery ¶
func (r *FunctionCallArgValue) WithGraphQLQuery(q *querybuilder.Selection) *FunctionCallArgValue
func (*FunctionCallArgValue) XXX_GraphQLID ¶
func (r *FunctionCallArgValue) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*FunctionCallArgValue) XXX_GraphQLIDType ¶
func (r *FunctionCallArgValue) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*FunctionCallArgValue) XXX_GraphQLType ¶
func (r *FunctionCallArgValue) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type FunctionWithArgOpts ¶
type FunctionWithArgOpts struct {
// A doc string for the argument, if any
Description string
// A default value to use for this argument if not explicitly set by the caller, if any
DefaultValue JSON
// If the argument is a Directory or File type, default to load path from context directory, relative to root directory.
DefaultPath string
// Patterns to ignore when loading the contextual argument value.
Ignore []string
// The source map for the argument definition.
SourceMap *SourceMap
// If deprecated, the reason or migration path.
Deprecated string
DefaultAddress string
}
FunctionWithArgOpts contains options for Function.WithArg
type FunctionWithCachePolicyOpts ¶
type FunctionWithCachePolicyOpts struct {
// The TTL for the cache policy, if applicable. Provided as a duration string, e.g. "5m", "1h30s".
TimeToLive string
}
FunctionWithCachePolicyOpts contains options for Function.WithCachePolicy
type FunctionWithDeprecatedOpts ¶
type FunctionWithDeprecatedOpts struct {
// Reason or migration path describing the deprecation.
Reason string
}
FunctionWithDeprecatedOpts contains options for Function.WithDeprecated
type GeneratedCode ¶
type GeneratedCode struct {
// contains filtered or unexported fields
}
The result of running an SDK's codegen.
func (*GeneratedCode) AsNode ¶
func (r *GeneratedCode) AsNode() Node
AsNode returns this GeneratedCode as a Node. This is a local type conversion — no GraphQL call.
func (*GeneratedCode) Code ¶
func (r *GeneratedCode) Code() *Directory
The directory containing the generated code.
func (*GeneratedCode) ID ¶
func (r *GeneratedCode) ID(ctx context.Context) (ID, error)
A unique identifier for this GeneratedCode.
func (*GeneratedCode) MarshalJSON ¶
func (r *GeneratedCode) MarshalJSON() ([]byte, error)
func (*GeneratedCode) VcsGeneratedPaths ¶
func (r *GeneratedCode) VcsGeneratedPaths(ctx context.Context) ([]string, error)
List of paths to mark generated in version control (i.e. .gitattributes).
func (*GeneratedCode) VcsIgnoredPaths ¶
func (r *GeneratedCode) VcsIgnoredPaths(ctx context.Context) ([]string, error)
List of paths to ignore in version control (i.e. .gitignore).
func (*GeneratedCode) With ¶
func (r *GeneratedCode) With(f WithGeneratedCodeFunc) *GeneratedCode
With calls the provided function with current GeneratedCode.
This is useful for reusability and readability by not breaking the calling chain.
func (*GeneratedCode) WithGraphQLQuery ¶
func (r *GeneratedCode) WithGraphQLQuery(q *querybuilder.Selection) *GeneratedCode
func (*GeneratedCode) WithVCSGeneratedPaths ¶
func (r *GeneratedCode) WithVCSGeneratedPaths(paths []string) *GeneratedCode
Set the list of paths to mark generated in version control.
func (*GeneratedCode) WithVCSIgnoredPaths ¶
func (r *GeneratedCode) WithVCSIgnoredPaths(paths []string) *GeneratedCode
Set the list of paths to ignore in version control.
func (*GeneratedCode) XXX_GraphQLID ¶
func (r *GeneratedCode) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*GeneratedCode) XXX_GraphQLIDType ¶
func (r *GeneratedCode) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*GeneratedCode) XXX_GraphQLType ¶
func (r *GeneratedCode) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) AsNode ¶
AsNode returns this Generator as a Node. This is a local type conversion — no GraphQL call.
func (*Generator) Description ¶
Return the description of the generator
func (*Generator) MarshalJSON ¶
func (*Generator) OriginalModule ¶
The original module in which the generator has been defined
func (*Generator) With ¶
func (r *Generator) With(f WithGeneratorFunc) *Generator
With calls the provided function with current Generator.
This is useful for reusability and readability by not breaking the calling chain.
func (*Generator) WithGraphQLQuery ¶
func (r *Generator) WithGraphQLQuery(q *querybuilder.Selection) *Generator
func (*Generator) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Generator) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Generator) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type GeneratorGroup ¶
type GeneratorGroup struct {
// contains filtered or unexported fields
}
func (*GeneratorGroup) AsNode ¶
func (r *GeneratorGroup) AsNode() Node
AsNode returns this GeneratorGroup as a Node. This is a local type conversion — no GraphQL call.
func (*GeneratorGroup) Changes ¶
func (r *GeneratorGroup) Changes(opts ...GeneratorGroupChangesOpts) *Changeset
The combined changes from the last run of the generators
If any conflict occurs, for instance if the same file is modified by multiple generators, or if a file is both modified and deleted, an error is raised and the merge of the changesets will failed.
Set 'continueOnConflicts' flag to force to merge the changes in a 'last write wins' strategy.
func (*GeneratorGroup) ID ¶
func (r *GeneratorGroup) ID(ctx context.Context) (ID, error)
A unique identifier for this GeneratorGroup.
func (*GeneratorGroup) IsEmpty ¶
func (r *GeneratorGroup) IsEmpty(ctx context.Context) (bool, error)
Whether the generated changeset from the last run is empty or not
func (*GeneratorGroup) List ¶
func (r *GeneratorGroup) List(ctx context.Context) ([]Generator, error)
Return a list of individual generators and their details
func (*GeneratorGroup) MarshalJSON ¶
func (r *GeneratorGroup) MarshalJSON() ([]byte, error)
func (*GeneratorGroup) Run ¶
func (r *GeneratorGroup) Run() *GeneratorGroup
Execute all selected generators
func (*GeneratorGroup) With ¶
func (r *GeneratorGroup) With(f WithGeneratorGroupFunc) *GeneratorGroup
With calls the provided function with current GeneratorGroup.
This is useful for reusability and readability by not breaking the calling chain.
func (*GeneratorGroup) WithGraphQLQuery ¶
func (r *GeneratorGroup) WithGraphQLQuery(q *querybuilder.Selection) *GeneratorGroup
func (*GeneratorGroup) XXX_GraphQLID ¶
func (r *GeneratorGroup) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*GeneratorGroup) XXX_GraphQLIDType ¶
func (r *GeneratorGroup) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*GeneratorGroup) XXX_GraphQLType ¶
func (r *GeneratorGroup) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type GeneratorGroupChangesOpts ¶
type GeneratorGroupChangesOpts struct {
// Strategy to apply on conflicts between generators
//
// Default: FAIL_EARLY
OnConflict ChangesetsMergeConflict
}
GeneratorGroupChangesOpts contains options for GeneratorGroup.Changes
type GitOpts ¶
type GitOpts struct {
// DEPRECATED: Set to true to keep .git directory.
//
// Default: true
// Deprecated: Set to true to keep .git directory.
KeepGitDir bool
// Set SSH known hosts
SSHKnownHosts string
// Set SSH auth socket
SSHAuthSocket *Socket
// Username used to populate the password during basic HTTP Authorization
HTTPAuthUsername string
// Secret used to populate the password during basic HTTP Authorization
HTTPAuthToken *Secret
// Secret used to populate the Authorization HTTP header
HTTPAuthHeader *Secret
// A service which must be started before the repo is fetched.
ExperimentalServiceHost *Service
}
GitOpts contains options for Query.Git
type GitRef ¶
type GitRef struct {
// contains filtered or unexported fields
}
A git ref (tag, branch, or commit).
func (*GitRef) AsNode ¶
AsNode returns this GitRef as a Node. This is a local type conversion — no GraphQL call.
func (*GitRef) CommonAncestor ¶
Find the best common ancestor between this ref and another ref.
func (*GitRef) MarshalJSON ¶
func (*GitRef) Tree ¶
func (r *GitRef) Tree(opts ...GitRefTreeOpts) *Directory
The filesystem tree at this ref.
func (*GitRef) With ¶
func (r *GitRef) With(f WithGitRefFunc) *GitRef
With calls the provided function with current GitRef.
This is useful for reusability and readability by not breaking the calling chain.
func (*GitRef) WithGraphQLQuery ¶
func (r *GitRef) WithGraphQLQuery(q *querybuilder.Selection) *GitRef
func (*GitRef) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*GitRef) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*GitRef) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type GitRefTreeOpts ¶
type GitRefTreeOpts struct {
// Set to true to discard .git directory.
DiscardGitDir bool
// The depth of the tree to fetch.
//
// Default: 1
Depth int
// Set to true to populate tag refs in the local checkout .git.
IncludeTags bool
}
GitRefTreeOpts contains options for GitRef.Tree
type GitRepository ¶
type GitRepository struct {
// contains filtered or unexported fields
}
A git repository.
func (*GitRepository) AsNode ¶
func (r *GitRepository) AsNode() Node
AsNode returns this GitRepository as a Node. This is a local type conversion — no GraphQL call.
func (*GitRepository) Branch ¶
func (r *GitRepository) Branch(name string) *GitRef
Returns details of a branch.
func (*GitRepository) Branches ¶
func (r *GitRepository) Branches(ctx context.Context, opts ...GitRepositoryBranchesOpts) ([]string, error)
branches that match any of the given glob patterns.
func (*GitRepository) Commit ¶
func (r *GitRepository) Commit(id string) *GitRef
Returns details of a commit.
func (*GitRepository) ID ¶
func (r *GitRepository) ID(ctx context.Context) (ID, error)
A unique identifier for this GitRepository.
func (*GitRepository) LatestVersion ¶
func (r *GitRepository) LatestVersion() *GitRef
Returns details for the latest semver tag.
func (*GitRepository) MarshalJSON ¶
func (r *GitRepository) MarshalJSON() ([]byte, error)
func (*GitRepository) Ref ¶
func (r *GitRepository) Ref(name string) *GitRef
Returns details of a ref.
func (*GitRepository) Tag ¶
func (r *GitRepository) Tag(name string) *GitRef
Returns details of a tag.
func (*GitRepository) Tags ¶
func (r *GitRepository) Tags(ctx context.Context, opts ...GitRepositoryTagsOpts) ([]string, error)
tags that match any of the given glob patterns.
func (*GitRepository) URL ¶
func (r *GitRepository) URL(ctx context.Context) (string, error)
The URL of the git repository.
func (*GitRepository) Uncommitted ¶
func (r *GitRepository) Uncommitted() *Changeset
Returns the changeset of uncommitted changes in the git repository.
func (*GitRepository) WithGraphQLQuery ¶
func (r *GitRepository) WithGraphQLQuery(q *querybuilder.Selection) *GitRepository
func (*GitRepository) XXX_GraphQLID ¶
func (r *GitRepository) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*GitRepository) XXX_GraphQLIDType ¶
func (r *GitRepository) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*GitRepository) XXX_GraphQLType ¶
func (r *GitRepository) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type GitRepositoryBranchesOpts ¶
type GitRepositoryBranchesOpts struct {
// Glob patterns (e.g., "refs/tags/v*").
Patterns []string
}
GitRepositoryBranchesOpts contains options for GitRepository.Branches
type GitRepositoryTagsOpts ¶
type GitRepositoryTagsOpts struct {
// Glob patterns (e.g., "refs/tags/v*").
Patterns []string
}
GitRepositoryTagsOpts contains options for GitRepository.Tags
type Go ¶
type Go struct {
// contains filtered or unexported fields
}
func (*Go) AsNode ¶
AsNode returns this Go as a Node. This is a local type conversion — no GraphQL call.
func (*Go) Build ¶
func (r *Go) Build(opts ...GoBuildOpts) *File
func (*Go) MarshalJSON ¶
func (*Go) Staticcheck ¶
func (r *Go) Staticcheck(ctx context.Context, opts ...GoStaticcheckOpts) error
func (*Go) WithGraphQLQuery ¶
func (r *Go) WithGraphQLQuery(q *querybuilder.Selection) *Go
func (*Go) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Go) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Go) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type GoBuildOpts ¶
type GoBuildOpts struct {
// Default: "./"
Pkg string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L95)
// Default: "-s -w"
Ldflags string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L98)
Cgo bool // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L100)
Goarch string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L102)
Goos string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L104)
}
GoBuildOpts contains options for Go.Build
type GoFmtOpts ¶
type GoFmtOpts struct {
// Default: "./..."
Pkg string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L176)
}
GoFmtOpts contains options for Go.Fmt
type GoOpts ¶
type GoOpts struct {
Workspace *Workspace // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L21)
// Default: "."
Path string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L24)
Container *Container // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L26)
}
GoOpts contains options for Query.Go
type GoStaticcheckOpts ¶
type GoStaticcheckOpts struct {
// Default: "latest"
Version string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L213)
}
GoStaticcheckOpts contains options for Go.Staticcheck
type GoTestOpts ¶
type GoTestOpts struct {
// Default: "./..."
Pkg string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L142)
Race bool // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L144)
Cgo bool // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L146)
Tags []string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L148)
}
GoTestOpts contains options for Go.Test
type GoVulncheckOpts ¶
type GoVulncheckOpts struct {
// Default: "latest"
Version string // go (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/go/main.go#L191)
}
GoVulncheckOpts contains options for Go.Vulncheck
type HTTPOpts ¶
type HTTPOpts struct {
// File name to use for the file. Defaults to the last part of the URL.
Name string
// Permissions to set on the file.
Permissions int
// Expected digest of the downloaded content (e.g., "sha256:...").
Checksum string
// Secret used to populate the Authorization HTTP header
AuthHeader *Secret
// A service which must be started before the URL is fetched.
ExperimentalServiceHost *Service
}
HTTPOpts contains options for Query.HTTP
type HTTPState ¶
type HTTPState struct {
// contains filtered or unexported fields
}
An internal persistent HTTP state.
func (*HTTPState) AsNode ¶
AsNode returns this HTTPState as a Node. This is a local type conversion — no GraphQL call.
func (*HTTPState) MarshalJSON ¶
func (*HTTPState) WithGraphQLQuery ¶
func (r *HTTPState) WithGraphQLQuery(q *querybuilder.Selection) *HTTPState
func (*HTTPState) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*HTTPState) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*HTTPState) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type HealthcheckConfig ¶
type HealthcheckConfig struct {
// contains filtered or unexported fields
}
Image healthcheck configuration.
func (*HealthcheckConfig) Args ¶
func (r *HealthcheckConfig) Args(ctx context.Context) ([]string, error)
Healthcheck command arguments.
func (*HealthcheckConfig) AsNode ¶
func (r *HealthcheckConfig) AsNode() Node
AsNode returns this HealthcheckConfig as a Node. This is a local type conversion — no GraphQL call.
func (*HealthcheckConfig) ID ¶
func (r *HealthcheckConfig) ID(ctx context.Context) (ID, error)
A unique identifier for this HealthcheckConfig.
func (*HealthcheckConfig) Interval ¶
func (r *HealthcheckConfig) Interval(ctx context.Context) (string, error)
Interval between running healthcheck. Example:30s
func (*HealthcheckConfig) MarshalJSON ¶
func (r *HealthcheckConfig) MarshalJSON() ([]byte, error)
func (*HealthcheckConfig) Retries ¶
func (r *HealthcheckConfig) Retries(ctx context.Context) (int, error)
The maximum number of consecutive failures before the container is marked as unhealthy. Example:3
func (*HealthcheckConfig) Shell ¶
func (r *HealthcheckConfig) Shell(ctx context.Context) (bool, error)
Healthcheck command is a shell command.
func (*HealthcheckConfig) StartInterval ¶
func (r *HealthcheckConfig) StartInterval(ctx context.Context) (string, error)
StartInterval configures the duration between checks during the startup phase. Example:5s
func (*HealthcheckConfig) StartPeriod ¶
func (r *HealthcheckConfig) StartPeriod(ctx context.Context) (string, error)
StartPeriod allows for failures during this initial startup period which do not count towards maximum number of retries. Example:0s
func (*HealthcheckConfig) Timeout ¶
func (r *HealthcheckConfig) Timeout(ctx context.Context) (string, error)
Healthcheck timeout. Example:3s
func (*HealthcheckConfig) WithGraphQLQuery ¶
func (r *HealthcheckConfig) WithGraphQLQuery(q *querybuilder.Selection) *HealthcheckConfig
func (*HealthcheckConfig) XXX_GraphQLID ¶
func (r *HealthcheckConfig) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*HealthcheckConfig) XXX_GraphQLIDType ¶
func (r *HealthcheckConfig) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*HealthcheckConfig) XXX_GraphQLType ¶
func (r *HealthcheckConfig) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
Information about the host environment.
func (*Host) AsNode ¶
AsNode returns this Host as a Node. This is a local type conversion — no GraphQL call.
func (*Host) ContainerImage ¶
Accesses a container image on the host.
func (*Host) Directory ¶
func (r *Host) Directory(path string, opts ...HostDirectoryOpts) *Directory
Accesses a directory on the host.
func (*Host) File ¶
func (r *Host) File(path string, opts ...HostFileOpts) *File
Accesses a file on the host.
func (*Host) FindUp ¶
Search for a file or directory by walking up the tree from system workdir. Return its relative path. If no match, return null
func (*Host) MarshalJSON ¶
func (*Host) Service ¶
func (r *Host) Service(ports []PortForward, opts ...HostServiceOpts) *Service
Creates a service that forwards traffic to a specified address via the host.
func (*Host) Tunnel ¶
func (r *Host) Tunnel(service *Service, opts ...HostTunnelOpts) *Service
Creates a tunnel that forwards traffic from the host to a service.
func (*Host) UnixSocket ¶
Accesses a Unix socket on the host.
func (*Host) WithGraphQLQuery ¶
func (r *Host) WithGraphQLQuery(q *querybuilder.Selection) *Host
func (*Host) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Host) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Host) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type HostDirectoryOpts ¶
type HostDirectoryOpts struct {
// Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
Exclude []string
// Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
Include []string
// If true, the directory will always be reloaded from the host.
NoCache bool
// Apply .gitignore filter rules inside the directory
Gitignore bool
}
HostDirectoryOpts contains options for Host.Directory
type HostFileOpts ¶
type HostFileOpts struct {
// If true, the file will always be reloaded from the host.
NoCache bool
}
HostFileOpts contains options for Host.File
type HostFindUpOpts ¶
type HostFindUpOpts struct {
NoCache bool
}
HostFindUpOpts contains options for Host.FindUp
type HostServiceOpts ¶
type HostServiceOpts struct {
// Upstream host to forward traffic to.
//
// Default: "localhost"
Host string
}
HostServiceOpts contains options for Host.Service
type HostTunnelOpts ¶
type HostTunnelOpts struct {
// Map each service port to the same port on the host, as if the service were running natively.
//
// Note: enabling may result in port conflicts.
Native bool
// Configure explicit port forwarding rules for the tunnel.
//
// If a port's frontend is unspecified or 0, a random port will be chosen by the host.
//
// If no ports are given, all of the service's ports are forwarded. If native is true, each port maps to the same port on the host. If native is false, each port maps to a random port chosen by the host.
//
// If ports are given and native is true, the ports are additive.
Ports []PortForward
}
HostTunnelOpts contains options for Host.Tunnel
type ImageLayerCompression ¶
type ImageLayerCompression string
Compression algorithm to use for image layers.
const ( ImageLayerCompressionGzip ImageLayerCompression = "Gzip" ImageLayerCompressionZstd ImageLayerCompression = "Zstd" ImageLayerCompressionEstarGz ImageLayerCompression = "EStarGZ" ImageLayerCompressionEstargz ImageLayerCompression = ImageLayerCompressionEstarGz ImageLayerCompressionUncompressed ImageLayerCompression = "Uncompressed" )
func (ImageLayerCompression) IsEnum ¶
func (ImageLayerCompression) IsEnum()
func (*ImageLayerCompression) MarshalJSON ¶
func (v *ImageLayerCompression) MarshalJSON() ([]byte, error)
func (ImageLayerCompression) Name ¶
func (v ImageLayerCompression) Name() string
func (*ImageLayerCompression) UnmarshalJSON ¶
func (v *ImageLayerCompression) UnmarshalJSON(dt []byte) error
func (ImageLayerCompression) Value ¶
func (v ImageLayerCompression) Value() string
type ImageMediaTypes ¶
type ImageMediaTypes string
Mediatypes to use in published or exported image metadata.
const ( ImageMediaTypesOcimediaTypes ImageMediaTypes = "OCIMediaTypes" ImageMediaTypesOci ImageMediaTypes = ImageMediaTypesOcimediaTypes ImageMediaTypesDockerMediaTypes ImageMediaTypes = "DockerMediaTypes" ImageMediaTypesDocker ImageMediaTypes = ImageMediaTypesDockerMediaTypes )
func (ImageMediaTypes) IsEnum ¶
func (ImageMediaTypes) IsEnum()
func (*ImageMediaTypes) MarshalJSON ¶
func (v *ImageMediaTypes) MarshalJSON() ([]byte, error)
func (ImageMediaTypes) Name ¶
func (v ImageMediaTypes) Name() string
func (*ImageMediaTypes) UnmarshalJSON ¶
func (v *ImageMediaTypes) UnmarshalJSON(dt []byte) error
func (ImageMediaTypes) Value ¶
func (v ImageMediaTypes) Value() string
type InputTypeDef ¶
type InputTypeDef struct {
// contains filtered or unexported fields
}
A graphql input type, which is essentially just a group of named args. This is currently only used to represent pre-existing usage of graphql input types in the core API. It is not used by user modules and shouldn't ever be as user module accept input objects via their id rather than graphql input types.
func (*InputTypeDef) AsNode ¶
func (r *InputTypeDef) AsNode() Node
AsNode returns this InputTypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*InputTypeDef) Fields ¶
func (r *InputTypeDef) Fields(ctx context.Context) ([]FieldTypeDef, error)
Static fields defined on this input object, if any.
func (*InputTypeDef) ID ¶
func (r *InputTypeDef) ID(ctx context.Context) (ID, error)
A unique identifier for this InputTypeDef.
func (*InputTypeDef) MarshalJSON ¶
func (r *InputTypeDef) MarshalJSON() ([]byte, error)
func (*InputTypeDef) Name ¶
func (r *InputTypeDef) Name(ctx context.Context) (string, error)
The name of the input object.
func (*InputTypeDef) WithGraphQLQuery ¶
func (r *InputTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *InputTypeDef
func (*InputTypeDef) XXX_GraphQLID ¶
func (r *InputTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*InputTypeDef) XXX_GraphQLIDType ¶
func (r *InputTypeDef) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*InputTypeDef) XXX_GraphQLType ¶
func (r *InputTypeDef) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type InterfaceTypeDef ¶
type InterfaceTypeDef struct {
// contains filtered or unexported fields
}
A definition of a custom interface defined in a Module.
func (*InterfaceTypeDef) AsNode ¶
func (r *InterfaceTypeDef) AsNode() Node
AsNode returns this InterfaceTypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*InterfaceTypeDef) Description ¶
func (r *InterfaceTypeDef) Description(ctx context.Context) (string, error)
The doc string for the interface, if any.
func (*InterfaceTypeDef) Functions ¶
func (r *InterfaceTypeDef) Functions(ctx context.Context) ([]Function, error)
Functions defined on this interface, if any.
func (*InterfaceTypeDef) ID ¶
func (r *InterfaceTypeDef) ID(ctx context.Context) (ID, error)
A unique identifier for this InterfaceTypeDef.
func (*InterfaceTypeDef) MarshalJSON ¶
func (r *InterfaceTypeDef) MarshalJSON() ([]byte, error)
func (*InterfaceTypeDef) Name ¶
func (r *InterfaceTypeDef) Name(ctx context.Context) (string, error)
The name of the interface.
func (*InterfaceTypeDef) SourceMap ¶
func (r *InterfaceTypeDef) SourceMap() *SourceMap
The location of this interface declaration.
func (*InterfaceTypeDef) SourceModuleName ¶
func (r *InterfaceTypeDef) SourceModuleName(ctx context.Context) (string, error)
If this InterfaceTypeDef is associated with a Module, the name of the module. Unset otherwise.
func (*InterfaceTypeDef) WithGraphQLQuery ¶
func (r *InterfaceTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *InterfaceTypeDef
func (*InterfaceTypeDef) XXX_GraphQLID ¶
func (r *InterfaceTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*InterfaceTypeDef) XXX_GraphQLIDType ¶
func (r *InterfaceTypeDef) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*InterfaceTypeDef) XXX_GraphQLType ¶
func (r *InterfaceTypeDef) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type JSONValue ¶
type JSONValue struct {
// contains filtered or unexported fields
}
func (*JSONValue) AsNode ¶
AsNode returns this JSONValue as a Node. This is a local type conversion — no GraphQL call.
func (*JSONValue) MarshalJSON ¶
func (*JSONValue) NewBoolean ¶
Encode a boolean to json
func (*JSONValue) NewInteger ¶
Encode an integer to json
func (*JSONValue) With ¶
func (r *JSONValue) With(f WithJSONValueFunc) *JSONValue
With calls the provided function with current JSONValue.
This is useful for reusability and readability by not breaking the calling chain.
func (*JSONValue) WithContents ¶
Return a new json value, decoded from the given content
func (*JSONValue) WithGraphQLQuery ¶
func (r *JSONValue) WithGraphQLQuery(q *querybuilder.Selection) *JSONValue
func (*JSONValue) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*JSONValue) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*JSONValue) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type JSONValueContentsOpts ¶
type JSONValueContentsOpts struct {
// Pretty-print
Pretty bool
// Optional line prefix
//
// Default: " "
Indent string
}
JSONValueContentsOpts contains options for JSONValue.Contents
type LLM ¶
type LLM struct {
// contains filtered or unexported fields
}
func (*LLM) AsNode ¶
AsNode returns this LLM as a Node. This is a local type conversion — no GraphQL call.
func (*LLM) AsSyncer ¶
AsSyncer returns this LLM as a Syncer. This is a local type conversion — no GraphQL call.
func (*LLM) BindResult ¶
returns the type of the current state
func (*LLM) HasPrompt ¶
Indicates whether there are any queued prompts or tool results to send to the model
func (*LLM) HistoryJSON ¶
return the raw llm message history as json
func (*LLM) Loop ¶
Submit the queued prompt, evaluate any tool calls, queue their results, and keep going until the model ends its turn
func (*LLM) MarshalJSON ¶
func (*LLM) Step ¶
Submit the queued prompt or tool call results, evaluate any tool calls, and queue their results
func (*LLM) TokenUsage ¶
func (r *LLM) TokenUsage() *LLMTokenUsage
returns the token usage of the current state
func (*LLM) With ¶
func (r *LLM) With(f WithLLMFunc) *LLM
With calls the provided function with current LLM.
This is useful for reusability and readability by not breaking the calling chain.
func (*LLM) WithBlockedFunction ¶
Return a new LLM with the specified function no longer exposed as a tool
func (*LLM) WithGraphQLQuery ¶
func (r *LLM) WithGraphQLQuery(q *querybuilder.Selection) *LLM
func (*LLM) WithMCPServer ¶
Add an external MCP server to the LLM
func (*LLM) WithPrompt ¶
append a prompt to the llm context
func (*LLM) WithPromptFile ¶
append the contents of a file to the llm context
func (*LLM) WithStaticTools ¶
Use a static set of tools for method calls, e.g. for MCP clients that do not support dynamic tool registration
func (*LLM) WithSystemPrompt ¶
Add a system prompt to the LLM's environment
func (*LLM) WithoutDefaultSystemPrompt ¶
Disable the default system prompt
func (*LLM) WithoutMessageHistory ¶
Clear the message history, leaving only the system prompts
func (*LLM) WithoutSystemPrompts ¶
Clear the system prompts, leaving only the default system prompt
func (*LLM) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*LLM) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*LLM) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type LLMOpts ¶
type LLMOpts struct {
// Model to use
Model string
// Cap the number of API calls for this LLM
MaxAPICalls int
}
LLMOpts contains options for Query.LLM
type LLMTokenUsage ¶
type LLMTokenUsage struct {
// contains filtered or unexported fields
}
func (*LLMTokenUsage) AsNode ¶
func (r *LLMTokenUsage) AsNode() Node
AsNode returns this LLMTokenUsage as a Node. This is a local type conversion — no GraphQL call.
func (*LLMTokenUsage) CachedTokenReads ¶
func (r *LLMTokenUsage) CachedTokenReads(ctx context.Context) (int, error)
func (*LLMTokenUsage) CachedTokenWrites ¶
func (r *LLMTokenUsage) CachedTokenWrites(ctx context.Context) (int, error)
func (*LLMTokenUsage) ID ¶
func (r *LLMTokenUsage) ID(ctx context.Context) (ID, error)
A unique identifier for this LLMTokenUsage.
func (*LLMTokenUsage) InputTokens ¶
func (r *LLMTokenUsage) InputTokens(ctx context.Context) (int, error)
func (*LLMTokenUsage) MarshalJSON ¶
func (r *LLMTokenUsage) MarshalJSON() ([]byte, error)
func (*LLMTokenUsage) OutputTokens ¶
func (r *LLMTokenUsage) OutputTokens(ctx context.Context) (int, error)
func (*LLMTokenUsage) TotalTokens ¶
func (r *LLMTokenUsage) TotalTokens(ctx context.Context) (int, error)
func (*LLMTokenUsage) WithGraphQLQuery ¶
func (r *LLMTokenUsage) WithGraphQLQuery(q *querybuilder.Selection) *LLMTokenUsage
func (*LLMTokenUsage) XXX_GraphQLID ¶
func (r *LLMTokenUsage) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*LLMTokenUsage) XXX_GraphQLIDType ¶
func (r *LLMTokenUsage) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*LLMTokenUsage) XXX_GraphQLType ¶
func (r *LLMTokenUsage) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Label ¶
type Label struct {
// contains filtered or unexported fields
}
A simple key value object that represents a label.
func (*Label) AsNode ¶
AsNode returns this Label as a Node. This is a local type conversion — no GraphQL call.
func (*Label) MarshalJSON ¶
func (*Label) WithGraphQLQuery ¶
func (r *Label) WithGraphQLQuery(q *querybuilder.Selection) *Label
func (*Label) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Label) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Label) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ListTypeDef ¶
type ListTypeDef struct {
// contains filtered or unexported fields
}
A definition of a list type in a Module.
func (*ListTypeDef) AsNode ¶
func (r *ListTypeDef) AsNode() Node
AsNode returns this ListTypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*ListTypeDef) ElementTypeDef ¶
func (r *ListTypeDef) ElementTypeDef() *TypeDef
The type of the elements in the list.
func (*ListTypeDef) ID ¶
func (r *ListTypeDef) ID(ctx context.Context) (ID, error)
A unique identifier for this ListTypeDef.
func (*ListTypeDef) MarshalJSON ¶
func (r *ListTypeDef) MarshalJSON() ([]byte, error)
func (*ListTypeDef) WithGraphQLQuery ¶
func (r *ListTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *ListTypeDef
func (*ListTypeDef) XXX_GraphQLID ¶
func (r *ListTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*ListTypeDef) XXX_GraphQLIDType ¶
func (r *ListTypeDef) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*ListTypeDef) XXX_GraphQLType ¶
func (r *ListTypeDef) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Loadable ¶
type Loadable[T any] interface { Node WithGraphQLQuery(*querybuilder.Selection) T }
Loadable is the constraint for types that can be loaded from an ID. Every generated object and interface client type satisfies this.
type Mise ¶
type Mise struct {
// contains filtered or unexported fields
}
func (*Mise) AsNode ¶
AsNode returns this Mise as a Node. This is a local type conversion — no GraphQL call.
func (*Mise) Container ¶
func (r *Mise) Container(opts ...MiseContainerOpts) *Container
func (*Mise) MarshalJSON ¶
func (*Mise) WithGraphQLQuery ¶
func (r *Mise) WithGraphQLQuery(q *querybuilder.Selection) *Mise
func (*Mise) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Mise) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Mise) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type MiseContainerOpts ¶
type MiseContainerOpts struct {
NoEnv bool // mise (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/mise/main.go#L189)
NoHooks bool // mise (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/mise/main.go#L191)
Tools []string // mise (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/mise/main.go#L193)
Include []string // mise (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/mise/main.go#L195)
Container *Container // mise (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/mise/main.go#L197)
}
MiseContainerOpts contains options for Mise.Container
type MiseOpts ¶
type MiseOpts struct {
Workspace *Workspace // mise (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/mise/main.go#L153)
// Default: "."
Path string // mise (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/mise/main.go#L156)
// Default: "2026.5.15"
Version string // mise (https://github.com/frantjc/daggerverse/tree/f22c1fc85dfa656d4216ea5a5086dee4eabefd5a/mise/main.go#L159)
}
MiseOpts contains options for Query.Mise
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
A Dagger module.
func (*Module) AsNode ¶
AsNode returns this Module as a Node. This is a local type conversion — no GraphQL call.
func (*Module) AsSyncer ¶
AsSyncer returns this Module as a Syncer. This is a local type conversion — no GraphQL call.
func (*Module) Check ¶
Return the check defined by the module with the given name. Must match to exactly one check.
Experimental: This API is highly experimental and may be removed or replaced entirely.
func (*Module) Checks ¶
func (r *Module) Checks(opts ...ModuleChecksOpts) *CheckGroup
Return all checks defined by the module
Experimental: This API is highly experimental and may be removed or replaced entirely.
func (*Module) Dependencies ¶
The dependencies of the module.
func (*Module) Description ¶
The doc string of the module, if any
func (*Module) GeneratedContextDirectory ¶
The generated files and directories made on top of the module source's context directory.
func (*Module) Generator ¶
Return the generator defined by the module with the given name. Must match to exactly one generator.
Experimental: This API is highly experimental and may be removed or replaced entirely.
func (*Module) Generators ¶
func (r *Module) Generators(opts ...ModuleGeneratorsOpts) *GeneratorGroup
Return all generators defined by the module
Experimental: This API is highly experimental and may be removed or replaced entirely.
func (*Module) Interfaces ¶
Interfaces served by this module.
func (*Module) IntrospectionSchemaJSON ¶
The introspection schema JSON file for this module.
This file represents the schema visible to the module's source code, including all core types and those from the dependencies.
Note: this is in the context of a module, so some core types may be hidden.
func (*Module) MarshalJSON ¶
func (*Module) Runtime ¶
The container that runs the module's entrypoint. It will fail to execute if the module doesn't compile.
func (*Module) Serve ¶
func (r *Module) Serve(ctx context.Context, opts ...ModuleServeOpts) error
Serve a module's API in the current session.
Note: this can only be called once per session. In the future, it could return a stream or service to remove the side effect.
func (*Module) Services ¶
func (r *Module) Services(opts ...ModuleServicesOpts) *UpGroup
Return all services defined by the module
Experimental: This API is highly experimental and may be removed or replaced entirely.
func (*Module) Sync ¶
Forces evaluation of the module, including any loading into the engine and associated validation.
func (*Module) UserDefaults ¶
User-defined default values, loaded from local .env files.
func (*Module) With ¶
func (r *Module) With(f WithModuleFunc) *Module
With calls the provided function with current Module.
This is useful for reusability and readability by not breaking the calling chain.
func (*Module) WithDescription ¶
Retrieves the module with the given description
func (*Module) WithGraphQLQuery ¶
func (r *Module) WithGraphQLQuery(q *querybuilder.Selection) *Module
func (*Module) WithInterface ¶
This module plus the given Interface type and associated functions
func (*Module) WithObject ¶
This module plus the given Object type and associated functions.
func (*Module) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Module) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Module) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ModuleChecksOpts ¶
type ModuleChecksOpts struct {
// Only include checks matching the specified patterns
Include []string
// When true, only return annotated check functions; exclude generate-as-checks
NoGenerate bool
}
ModuleChecksOpts contains options for Module.Checks
type ModuleConfigClient ¶
type ModuleConfigClient struct {
// contains filtered or unexported fields
}
The client generated for the module.
func (*ModuleConfigClient) AsNode ¶
func (r *ModuleConfigClient) AsNode() Node
AsNode returns this ModuleConfigClient as a Node. This is a local type conversion — no GraphQL call.
func (*ModuleConfigClient) Directory ¶
func (r *ModuleConfigClient) Directory(ctx context.Context) (string, error)
The directory the client is generated in.
func (*ModuleConfigClient) Generator ¶
func (r *ModuleConfigClient) Generator(ctx context.Context) (string, error)
The generator to use
func (*ModuleConfigClient) ID ¶
func (r *ModuleConfigClient) ID(ctx context.Context) (ID, error)
A unique identifier for this ModuleConfigClient.
func (*ModuleConfigClient) MarshalJSON ¶
func (r *ModuleConfigClient) MarshalJSON() ([]byte, error)
func (*ModuleConfigClient) WithGraphQLQuery ¶
func (r *ModuleConfigClient) WithGraphQLQuery(q *querybuilder.Selection) *ModuleConfigClient
func (*ModuleConfigClient) XXX_GraphQLID ¶
func (r *ModuleConfigClient) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*ModuleConfigClient) XXX_GraphQLIDType ¶
func (r *ModuleConfigClient) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*ModuleConfigClient) XXX_GraphQLType ¶
func (r *ModuleConfigClient) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ModuleGeneratorsOpts ¶
type ModuleGeneratorsOpts struct {
// Only include generators matching the specified patterns
Include []string
}
ModuleGeneratorsOpts contains options for Module.Generators
type ModuleServeOpts ¶
type ModuleServeOpts struct {
// Expose the dependencies of this module to the client
IncludeDependencies bool
// Install the module as the entrypoint, promoting its main-object methods onto the Query root
Entrypoint bool
}
ModuleServeOpts contains options for Module.Serve
type ModuleServicesOpts ¶
type ModuleServicesOpts struct {
// Only include services matching the specified patterns
Include []string
}
ModuleServicesOpts contains options for Module.Services
type ModuleSource ¶
type ModuleSource struct {
// contains filtered or unexported fields
}
The source needed to load and run a module, along with any metadata about the source such as versions/urls/etc.
func (*ModuleSource) AsModule ¶
func (r *ModuleSource) AsModule() *Module
Load the source as a module. If this is a local source, the parent directory must have been provided during module source creation
func (*ModuleSource) AsNode ¶
func (r *ModuleSource) AsNode() Node
AsNode returns this ModuleSource as a Node. This is a local type conversion — no GraphQL call.
func (*ModuleSource) AsString ¶
func (r *ModuleSource) AsString(ctx context.Context) (string, error)
A human readable ref string representation of this module source.
func (*ModuleSource) AsSyncer ¶
func (r *ModuleSource) AsSyncer() Syncer
AsSyncer returns this ModuleSource as a Syncer. This is a local type conversion — no GraphQL call.
func (*ModuleSource) Blueprint ¶
func (r *ModuleSource) Blueprint() *ModuleSource
The blueprint referenced by the module source.
func (*ModuleSource) CloneRef ¶
func (r *ModuleSource) CloneRef(ctx context.Context) (string, error)
The ref to clone the root of the git repo from. Only valid for git sources.
func (*ModuleSource) Commit ¶
func (r *ModuleSource) Commit(ctx context.Context) (string, error)
The resolved commit of the git repo this source points to.
func (*ModuleSource) ConfigClients ¶
func (r *ModuleSource) ConfigClients(ctx context.Context) ([]ModuleConfigClient, error)
The clients generated for the module.
func (*ModuleSource) ConfigExists ¶
func (r *ModuleSource) ConfigExists(ctx context.Context) (bool, error)
Whether an existing dagger.json for the module was found.
func (*ModuleSource) ContextDirectory ¶
func (r *ModuleSource) ContextDirectory() *Directory
The full directory loaded for the module source, including the source code as a subdirectory.
func (*ModuleSource) Dependencies ¶
func (r *ModuleSource) Dependencies(ctx context.Context) ([]ModuleSource, error)
The dependencies of the module source.
func (*ModuleSource) Digest ¶
func (r *ModuleSource) Digest(ctx context.Context) (string, error)
A content-hash of the module source. Module sources with the same digest will output the same generated context and convert into the same module instance.
func (*ModuleSource) Directory ¶
func (r *ModuleSource) Directory(path string) *Directory
The directory containing the module configuration and source code (source code may be in a subdir).
func (*ModuleSource) EngineVersion ¶
func (r *ModuleSource) EngineVersion(ctx context.Context) (string, error)
The engine version of the module.
func (*ModuleSource) GeneratedContextChangeset ¶
func (r *ModuleSource) GeneratedContextChangeset() *Changeset
The generated files and directories made on top of the module source's context directory, returned as a Changeset.
func (*ModuleSource) GeneratedContextDirectory ¶
func (r *ModuleSource) GeneratedContextDirectory() *Directory
The generated files and directories made on top of the module source's context directory.
func (*ModuleSource) HTMLRepoURL ¶
func (r *ModuleSource) HTMLRepoURL(ctx context.Context) (string, error)
The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket).
func (*ModuleSource) HTMLURL ¶
func (r *ModuleSource) HTMLURL(ctx context.Context) (string, error)
The URL to the source's git repo in a web browser. Only valid for git sources.
func (*ModuleSource) ID ¶
func (r *ModuleSource) ID(ctx context.Context) (ID, error)
A unique identifier for this ModuleSource.
func (*ModuleSource) IntrospectionSchemaJSON ¶
func (r *ModuleSource) IntrospectionSchemaJSON() *File
The introspection schema JSON file for this module source.
This file represents the schema visible to the module's source code, including all core types and those from the dependencies.
Note: this is in the context of a module, so some core types may be hidden.
func (*ModuleSource) Kind ¶
func (r *ModuleSource) Kind(ctx context.Context) (ModuleSourceKind, error)
The kind of module source (currently local, git or dir).
func (*ModuleSource) LocalContextDirectoryPath ¶
func (r *ModuleSource) LocalContextDirectoryPath(ctx context.Context) (string, error)
The full absolute path to the context directory on the caller's host filesystem that this module source is loaded from. Only valid for local module sources.
func (*ModuleSource) MarshalJSON ¶
func (r *ModuleSource) MarshalJSON() ([]byte, error)
func (*ModuleSource) ModuleName ¶
func (r *ModuleSource) ModuleName(ctx context.Context) (string, error)
The name of the module, including any setting via the withName API.
func (*ModuleSource) ModuleOriginalName ¶
func (r *ModuleSource) ModuleOriginalName(ctx context.Context) (string, error)
The original name of the module as read from the module's dagger.json (or set for the first time with the withName API).
func (*ModuleSource) OriginalSubpath ¶
func (r *ModuleSource) OriginalSubpath(ctx context.Context) (string, error)
The original subpath used when instantiating this module source, relative to the context directory.
func (*ModuleSource) Pin ¶
func (r *ModuleSource) Pin(ctx context.Context) (string, error)
The pinned version of this module source.
func (*ModuleSource) RepoRootPath ¶
func (r *ModuleSource) RepoRootPath(ctx context.Context) (string, error)
The import path corresponding to the root of the git repo this source points to. Only valid for git sources.
func (*ModuleSource) SDK ¶
func (r *ModuleSource) SDK() *SDKConfig
The SDK configuration of the module.
func (*ModuleSource) SourceRootSubpath ¶
func (r *ModuleSource) SourceRootSubpath(ctx context.Context) (string, error)
The path, relative to the context directory, that contains the module's dagger.json.
func (*ModuleSource) SourceSubpath ¶
func (r *ModuleSource) SourceSubpath(ctx context.Context) (string, error)
The path to the directory containing the module's source code, relative to the context directory.
func (*ModuleSource) Sync ¶
func (r *ModuleSource) Sync(ctx context.Context) (*ModuleSource, error)
Forces evaluation of the module source, including any loading into the engine and associated validation.
func (*ModuleSource) Toolchains ¶
func (r *ModuleSource) Toolchains(ctx context.Context) ([]ModuleSource, error)
The toolchains referenced by the module source.
func (*ModuleSource) UserDefaults ¶
func (r *ModuleSource) UserDefaults() *EnvFile
User-defined defaults read from local .env files
func (*ModuleSource) Version ¶
func (r *ModuleSource) Version(ctx context.Context) (string, error)
The specified version of the git repo this source points to.
func (*ModuleSource) With ¶
func (r *ModuleSource) With(f WithModuleSourceFunc) *ModuleSource
With calls the provided function with current ModuleSource.
This is useful for reusability and readability by not breaking the calling chain.
func (*ModuleSource) WithBlueprint ¶
func (r *ModuleSource) WithBlueprint(blueprint *ModuleSource) *ModuleSource
Set a blueprint for the module source.
func (*ModuleSource) WithClient ¶
func (r *ModuleSource) WithClient(generator string, outputDir string) *ModuleSource
Update the module source with a new client to generate.
func (*ModuleSource) WithDependencies ¶
func (r *ModuleSource) WithDependencies(dependencies []*ModuleSource) *ModuleSource
Append the provided dependencies to the module source's dependency list.
func (*ModuleSource) WithEngineVersion ¶
func (r *ModuleSource) WithEngineVersion(version string) *ModuleSource
Upgrade the engine version of the module to the given value.
func (*ModuleSource) WithExperimentalFeatures ¶
func (r *ModuleSource) WithExperimentalFeatures(features []ModuleSourceExperimentalFeature) *ModuleSource
Enable the experimental features for the module source.
func (*ModuleSource) WithGraphQLQuery ¶
func (r *ModuleSource) WithGraphQLQuery(q *querybuilder.Selection) *ModuleSource
func (*ModuleSource) WithIncludes ¶
func (r *ModuleSource) WithIncludes(patterns []string) *ModuleSource
Update the module source with additional include patterns for files+directories from its context that are required for building it
func (*ModuleSource) WithName ¶
func (r *ModuleSource) WithName(name string) *ModuleSource
Update the module source with a new name.
func (*ModuleSource) WithSDK ¶
func (r *ModuleSource) WithSDK(source string) *ModuleSource
Update the module source with a new SDK.
func (*ModuleSource) WithSourceSubpath ¶
func (r *ModuleSource) WithSourceSubpath(path string) *ModuleSource
Update the module source with a new source subpath.
func (*ModuleSource) WithToolchains ¶
func (r *ModuleSource) WithToolchains(toolchains []*ModuleSource) *ModuleSource
Add toolchains to the module source.
func (*ModuleSource) WithUpdateBlueprint ¶
func (r *ModuleSource) WithUpdateBlueprint() *ModuleSource
Update the blueprint module to the latest version.
func (*ModuleSource) WithUpdateDependencies ¶
func (r *ModuleSource) WithUpdateDependencies(dependencies []string) *ModuleSource
Update one or more module dependencies.
func (*ModuleSource) WithUpdateToolchains ¶
func (r *ModuleSource) WithUpdateToolchains(toolchains []string) *ModuleSource
Update one or more toolchains.
func (*ModuleSource) WithUpdatedClients ¶
func (r *ModuleSource) WithUpdatedClients(clients []string) *ModuleSource
Update one or more clients.
func (*ModuleSource) WithoutBlueprint ¶
func (r *ModuleSource) WithoutBlueprint() *ModuleSource
Remove the current blueprint from the module source.
func (*ModuleSource) WithoutClient ¶
func (r *ModuleSource) WithoutClient(path string) *ModuleSource
Remove a client from the module source.
func (*ModuleSource) WithoutDependencies ¶
func (r *ModuleSource) WithoutDependencies(dependencies []string) *ModuleSource
Remove the provided dependencies from the module source's dependency list.
func (*ModuleSource) WithoutExperimentalFeatures ¶
func (r *ModuleSource) WithoutExperimentalFeatures(features []ModuleSourceExperimentalFeature) *ModuleSource
Disable experimental features for the module source.
func (*ModuleSource) WithoutToolchains ¶
func (r *ModuleSource) WithoutToolchains(toolchains []string) *ModuleSource
Remove the provided toolchains from the module source.
func (*ModuleSource) XXX_GraphQLID ¶
func (r *ModuleSource) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*ModuleSource) XXX_GraphQLIDType ¶
func (r *ModuleSource) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*ModuleSource) XXX_GraphQLType ¶
func (r *ModuleSource) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ModuleSourceExperimentalFeature ¶
type ModuleSourceExperimentalFeature string
Experimental features of a module
const ( // Self calls ModuleSourceExperimentalFeatureSelfCalls ModuleSourceExperimentalFeature = "SELF_CALLS" )
func (ModuleSourceExperimentalFeature) IsEnum ¶
func (ModuleSourceExperimentalFeature) IsEnum()
func (*ModuleSourceExperimentalFeature) MarshalJSON ¶
func (v *ModuleSourceExperimentalFeature) MarshalJSON() ([]byte, error)
func (ModuleSourceExperimentalFeature) Name ¶
func (v ModuleSourceExperimentalFeature) Name() string
func (*ModuleSourceExperimentalFeature) UnmarshalJSON ¶
func (v *ModuleSourceExperimentalFeature) UnmarshalJSON(dt []byte) error
func (ModuleSourceExperimentalFeature) Value ¶
func (v ModuleSourceExperimentalFeature) Value() string
type ModuleSourceKind ¶
type ModuleSourceKind string
The kind of module source.
const ( ModuleSourceKindLocalSource ModuleSourceKind = "LOCAL_SOURCE" ModuleSourceKindLocal ModuleSourceKind = ModuleSourceKindLocalSource ModuleSourceKindGitSource ModuleSourceKind = "GIT_SOURCE" ModuleSourceKindGit ModuleSourceKind = ModuleSourceKindGitSource ModuleSourceKindDirSource ModuleSourceKind = "DIR_SOURCE" ModuleSourceKindDir ModuleSourceKind = ModuleSourceKindDirSource )
func (ModuleSourceKind) IsEnum ¶
func (ModuleSourceKind) IsEnum()
func (*ModuleSourceKind) MarshalJSON ¶
func (v *ModuleSourceKind) MarshalJSON() ([]byte, error)
func (ModuleSourceKind) Name ¶
func (v ModuleSourceKind) Name() string
func (*ModuleSourceKind) UnmarshalJSON ¶
func (v *ModuleSourceKind) UnmarshalJSON(dt []byte) error
func (ModuleSourceKind) Value ¶
func (v ModuleSourceKind) Value() string
type ModuleSourceOpts ¶
type ModuleSourceOpts struct {
// The pinned version of the module source
RefPin string
// If true, do not attempt to find dagger.json in a parent directory of the provided path. Only relevant for local module sources.
DisableFindUp bool
// If true, do not error out if the provided ref string is a local path and does not exist yet. Useful when initializing new modules in directories that don't exist yet.
AllowNotExists bool
// If set, error out if the ref string is not of the provided requireKind.
RequireKind ModuleSourceKind
}
ModuleSourceOpts contains options for Query.ModuleSource
type NetworkProtocol ¶
type NetworkProtocol string
Transport layer network protocol associated to a port.
const ( NetworkProtocolTcp NetworkProtocol = "TCP" NetworkProtocolUdp NetworkProtocol = "UDP" )
func (NetworkProtocol) IsEnum ¶
func (NetworkProtocol) IsEnum()
func (*NetworkProtocol) MarshalJSON ¶
func (v *NetworkProtocol) MarshalJSON() ([]byte, error)
func (NetworkProtocol) Name ¶
func (v NetworkProtocol) Name() string
func (*NetworkProtocol) UnmarshalJSON ¶
func (v *NetworkProtocol) UnmarshalJSON(dt []byte) error
func (NetworkProtocol) Value ¶
func (v NetworkProtocol) Value() string
type Node ¶
type Node interface {
DaggerObject
ID(ctx context.Context) (ID, error)
}
An object with a globally unique ID.
type NodeClient ¶
type NodeClient struct {
// contains filtered or unexported fields
}
NodeClient is the query-builder for the Node interface.
func (*NodeClient) MarshalJSON ¶
func (r *NodeClient) MarshalJSON() ([]byte, error)
func (*NodeClient) WithGraphQLQuery ¶
func (r *NodeClient) WithGraphQLQuery(q *querybuilder.Selection) *NodeClient
func (*NodeClient) XXX_GraphQLID ¶
func (r *NodeClient) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*NodeClient) XXX_GraphQLIDType ¶
func (r *NodeClient) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*NodeClient) XXX_GraphQLType ¶
func (r *NodeClient) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ObjectTypeDef ¶
type ObjectTypeDef struct {
// contains filtered or unexported fields
}
A definition of a custom object defined in a Module.
func (*ObjectTypeDef) AsNode ¶
func (r *ObjectTypeDef) AsNode() Node
AsNode returns this ObjectTypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*ObjectTypeDef) Constructor ¶
func (r *ObjectTypeDef) Constructor() *Function
The function used to construct new instances of this object, if any.
func (*ObjectTypeDef) Deprecated ¶
func (r *ObjectTypeDef) Deprecated(ctx context.Context) (string, error)
The reason this enum member is deprecated, if any.
func (*ObjectTypeDef) Description ¶
func (r *ObjectTypeDef) Description(ctx context.Context) (string, error)
The doc string for the object, if any.
func (*ObjectTypeDef) Fields ¶
func (r *ObjectTypeDef) Fields(ctx context.Context) ([]FieldTypeDef, error)
Static fields defined on this object, if any.
func (*ObjectTypeDef) Functions ¶
func (r *ObjectTypeDef) Functions(ctx context.Context) ([]Function, error)
Functions defined on this object, if any.
func (*ObjectTypeDef) ID ¶
func (r *ObjectTypeDef) ID(ctx context.Context) (ID, error)
A unique identifier for this ObjectTypeDef.
func (*ObjectTypeDef) MarshalJSON ¶
func (r *ObjectTypeDef) MarshalJSON() ([]byte, error)
func (*ObjectTypeDef) Name ¶
func (r *ObjectTypeDef) Name(ctx context.Context) (string, error)
The name of the object.
func (*ObjectTypeDef) SourceMap ¶
func (r *ObjectTypeDef) SourceMap() *SourceMap
The location of this object declaration.
func (*ObjectTypeDef) SourceModuleName ¶
func (r *ObjectTypeDef) SourceModuleName(ctx context.Context) (string, error)
If this ObjectTypeDef is associated with a Module, the name of the module. Unset otherwise.
func (*ObjectTypeDef) WithGraphQLQuery ¶
func (r *ObjectTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *ObjectTypeDef
func (*ObjectTypeDef) XXX_GraphQLID ¶
func (r *ObjectTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*ObjectTypeDef) XXX_GraphQLIDType ¶
func (r *ObjectTypeDef) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*ObjectTypeDef) XXX_GraphQLType ¶
func (r *ObjectTypeDef) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type PipelineLabel ¶
type PipelineLabel struct {
// Label name.
Name string `json:"name"`
// Label value.
Value string `json:"value"`
}
Key value object that represents a pipeline label.
type Platform ¶
type Platform string
The platform config OS and architecture in a Container.
The format is os/[platform]/[version] (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
A port exposed by a container.
func (*Port) AsNode ¶
AsNode returns this Port as a Node. This is a local type conversion — no GraphQL call.
func (*Port) Description ¶
The port description.
func (*Port) ExperimentalSkipHealthcheck ¶
Skip the health check when run as a service.
func (*Port) MarshalJSON ¶
func (*Port) Protocol ¶
func (r *Port) Protocol(ctx context.Context) (NetworkProtocol, error)
The transport layer protocol.
func (*Port) WithGraphQLQuery ¶
func (r *Port) WithGraphQLQuery(q *querybuilder.Selection) *Port
func (*Port) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Port) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Port) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type PortForward ¶
type PortForward struct {
// Destination port for traffic.
Backend int `json:"backend"`
// Port to expose to clients. If unspecified, a default will be chosen.
Frontend int `json:"frontend"`
// Transport layer protocol to use for traffic.
Protocol NetworkProtocol `json:"protocol,omitempty"`
}
Port forwarding rules for tunneling network traffic.
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
The root of the DAG.
func (*Query) Address ¶
initialize an address to load directories, containers, secrets or other object types.
func (*Query) Archive ¶
func (r *Query) Archive(opts ...ArchiveOpts) *Archive
func (*Query) AsNode ¶
AsNode returns this Query as a Node. This is a local type conversion — no GraphQL call.
func (*Query) Binary ¶
func (r *Query) Binary(opts ...BinaryOpts) *File
func (*Query) CacheVolume ¶
func (r *Query) CacheVolume(key string, opts ...CacheVolumeOpts) *CacheVolume
Constructs a cache volume for a given cache key.
func (*Query) Container ¶
func (r *Query) Container(opts ...ContainerOpts) *Container
func (*Query) CurrentEnv ¶
Returns the current environment
When called from a function invoked via an LLM tool call, this will be the LLM's current environment, including any modifications made through calling tools. Env values returned by functions become the new environment for subsequent calls, and Changeset values returned by functions are applied to the environment's workspace.
When called from a module function outside of an LLM, this returns an Env with the current module installed, and with the current module's source directory as its workspace.
Experimental: Programmatic env access is speculative and might be replaced.
func (*Query) CurrentFunctionCall ¶
func (r *Query) CurrentFunctionCall() *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 (*Query) CurrentModule ¶
func (r *Query) CurrentModule() *CurrentModule
The module currently being served in the session, if any.
func (*Query) CurrentTypeDefs ¶
func (r *Query) CurrentTypeDefs(ctx context.Context, opts ...CurrentTypeDefsOpts) ([]TypeDef, error)
The TypeDef representations of the objects currently being served in the session.
func (*Query) CurrentWorkspace ¶
Detect and return the current workspace.
Experimental: Highly experimental API extracted from a more ambitious workspace implementation.
func (*Query) DefaultPlatform ¶
The default platform of the engine.
func (*Query) EnvFile ¶
func (r *Query) EnvFile(opts ...EnvFileOpts) *EnvFile
Initialize an environment file
func (*Query) GeneratedCode ¶
func (r *Query) GeneratedCode(code *Directory) *GeneratedCode
Create a code generation result, given a directory containing the generated code.
func (*Query) Git ¶
func (r *Query) Git(url string, opts ...GitOpts) *GitRepository
Queries a Git repository.
func (*Query) LLM ¶
Initialize a Large Language Model (LLM)
Experimental: LLM support is not yet stabilized
func (*Query) LoadAddressFromID ¶
Load a Address from its ID.
func (*Query) LoadArchFromID ¶
Load a Arch from its ID.
func (*Query) LoadArchiveFromID ¶
Load a Archive from its ID.
func (*Query) LoadBindingFromID ¶
Load a Binding from its ID.
func (*Query) LoadCacheVolumeFromID ¶
func (r *Query) LoadCacheVolumeFromID(id CacheVolumeID) *CacheVolume
Load a CacheVolume from its ID.
func (*Query) LoadChangesetFromID ¶
func (r *Query) LoadChangesetFromID(id ChangesetID) *Changeset
Load a Changeset from its ID.
func (*Query) LoadCheckFromID ¶
Load a Check from its ID.
func (*Query) LoadCheckGroupFromID ¶
func (r *Query) LoadCheckGroupFromID(id CheckGroupID) *CheckGroup
Load a CheckGroup from its ID.
func (*Query) LoadClientFilesyncMirrorFromID ¶
func (r *Query) LoadClientFilesyncMirrorFromID(id ClientFilesyncMirrorID) *ClientFilesyncMirror
Load a ClientFilesyncMirror from its ID.
func (*Query) LoadCloudFromID ¶
Load a Cloud from its ID.
func (*Query) LoadContainerFromID ¶
func (r *Query) LoadContainerFromID(id ContainerID) *Container
Load a Container from its ID.
func (*Query) LoadCurrentModuleFromID ¶
func (r *Query) LoadCurrentModuleFromID(id CurrentModuleID) *CurrentModule
Load a CurrentModule from its ID.
func (*Query) LoadDiffStatFromID ¶
func (r *Query) LoadDiffStatFromID(id DiffStatID) *DiffStat
Load a DiffStat from its ID.
func (*Query) LoadDirectoryFromID ¶
func (r *Query) LoadDirectoryFromID(id DirectoryID) *Directory
Load a Directory from its ID.
func (*Query) LoadEngineCacheEntryFromID ¶
func (r *Query) LoadEngineCacheEntryFromID(id EngineCacheEntryID) *EngineCacheEntry
Load a EngineCacheEntry from its ID.
func (*Query) LoadEngineCacheEntrySetFromID ¶
func (r *Query) LoadEngineCacheEntrySetFromID(id EngineCacheEntrySetID) *EngineCacheEntrySet
Load a EngineCacheEntrySet from its ID.
func (*Query) LoadEngineCacheFromID ¶
func (r *Query) LoadEngineCacheFromID(id EngineCacheID) *EngineCache
Load a EngineCache from its ID.
func (*Query) LoadEngineFromID ¶
Load a Engine from its ID.
func (*Query) LoadEnumTypeDefFromID ¶
func (r *Query) LoadEnumTypeDefFromID(id EnumTypeDefID) *EnumTypeDef
Load a EnumTypeDef from its ID.
func (*Query) LoadEnumValueTypeDefFromID ¶
func (r *Query) LoadEnumValueTypeDefFromID(id EnumValueTypeDefID) *EnumValueTypeDef
Load a EnumValueTypeDef from its ID.
func (*Query) LoadEnvFileFromID ¶
Load a EnvFile from its ID.
func (*Query) LoadEnvVariableFromID ¶
func (r *Query) LoadEnvVariableFromID(id EnvVariableID) *EnvVariable
Load a EnvVariable from its ID.
func (*Query) LoadErrorFromID ¶
Load a Error from its ID.
func (*Query) LoadErrorValueFromID ¶
func (r *Query) LoadErrorValueFromID(id ErrorValueID) *ErrorValue
Load a ErrorValue from its ID.
func (*Query) LoadExportableFromID ¶
func (r *Query) LoadExportableFromID(id ExportableID) Exportable
Load a Exportable from its ID.
func (*Query) LoadFieldTypeDefFromID ¶
func (r *Query) LoadFieldTypeDefFromID(id FieldTypeDefID) *FieldTypeDef
Load a FieldTypeDef from its ID.
func (*Query) LoadFileFromID ¶
Load a File from its ID.
func (*Query) LoadFunctionArgFromID ¶
func (r *Query) LoadFunctionArgFromID(id FunctionArgID) *FunctionArg
Load a FunctionArg from its ID.
func (*Query) LoadFunctionCallArgValueFromID ¶
func (r *Query) LoadFunctionCallArgValueFromID(id FunctionCallArgValueID) *FunctionCallArgValue
Load a FunctionCallArgValue from its ID.
func (*Query) LoadFunctionCallFromID ¶
func (r *Query) LoadFunctionCallFromID(id FunctionCallID) *FunctionCall
Load a FunctionCall from its ID.
func (*Query) LoadFunctionFromID ¶
func (r *Query) LoadFunctionFromID(id FunctionID) *Function
Load a Function from its ID.
func (*Query) LoadGeneratedCodeFromID ¶
func (r *Query) LoadGeneratedCodeFromID(id GeneratedCodeID) *GeneratedCode
Load a GeneratedCode from its ID.
func (*Query) LoadGeneratorFromID ¶
func (r *Query) LoadGeneratorFromID(id GeneratorID) *Generator
Load a Generator from its ID.
func (*Query) LoadGeneratorGroupFromID ¶
func (r *Query) LoadGeneratorGroupFromID(id GeneratorGroupID) *GeneratorGroup
Load a GeneratorGroup from its ID.
func (*Query) LoadGitRefFromID ¶
Load a GitRef from its ID.
func (*Query) LoadGitRepositoryFromID ¶
func (r *Query) LoadGitRepositoryFromID(id GitRepositoryID) *GitRepository
Load a GitRepository from its ID.
func (*Query) LoadHTTPStateFromID ¶
func (r *Query) LoadHTTPStateFromID(id HTTPStateID) *HTTPState
Load a HTTPState from its ID.
func (*Query) LoadHealthcheckConfigFromID ¶
func (r *Query) LoadHealthcheckConfigFromID(id HealthcheckConfigID) *HealthcheckConfig
Load a HealthcheckConfig from its ID.
func (*Query) LoadHostFromID ¶
Load a Host from its ID.
func (*Query) LoadInputTypeDefFromID ¶
func (r *Query) LoadInputTypeDefFromID(id InputTypeDefID) *InputTypeDef
Load a InputTypeDef from its ID.
func (*Query) LoadInterfaceTypeDefFromID ¶
func (r *Query) LoadInterfaceTypeDefFromID(id InterfaceTypeDefID) *InterfaceTypeDef
Load a InterfaceTypeDef from its ID.
func (*Query) LoadJSONValueFromID ¶
func (r *Query) LoadJSONValueFromID(id JSONValueID) *JSONValue
Load a JSONValue from its ID.
func (*Query) LoadLLMTokenUsageFromID ¶
func (r *Query) LoadLLMTokenUsageFromID(id LLMTokenUsageID) *LLMTokenUsage
Load a LLMTokenUsage from its ID.
func (*Query) LoadLabelFromID ¶
Load a Label from its ID.
func (*Query) LoadListTypeDefFromID ¶
func (r *Query) LoadListTypeDefFromID(id ListTypeDefID) *ListTypeDef
Load a ListTypeDef from its ID.
func (*Query) LoadMiseFromID ¶
Load a Mise from its ID.
func (*Query) LoadModuleConfigClientFromID ¶
func (r *Query) LoadModuleConfigClientFromID(id ModuleConfigClientID) *ModuleConfigClient
Load a ModuleConfigClient from its ID.
func (*Query) LoadModuleFromID ¶
Load a Module from its ID.
func (*Query) LoadModuleSourceFromID ¶
func (r *Query) LoadModuleSourceFromID(id ModuleSourceID) *ModuleSource
Load a ModuleSource from its ID.
func (*Query) LoadObjectTypeDefFromID ¶
func (r *Query) LoadObjectTypeDefFromID(id ObjectTypeDefID) *ObjectTypeDef
Load a ObjectTypeDef from its ID.
func (*Query) LoadPortFromID ¶
Load a Port from its ID.
func (*Query) LoadRemoteGitMirrorFromID ¶
func (r *Query) LoadRemoteGitMirrorFromID(id RemoteGitMirrorID) *RemoteGitMirror
Load a RemoteGitMirror from its ID.
func (*Query) LoadSDKConfigFromID ¶
func (r *Query) LoadSDKConfigFromID(id SDKConfigID) *SDKConfig
Load a SDKConfig from its ID.
func (*Query) LoadScalarTypeDefFromID ¶
func (r *Query) LoadScalarTypeDefFromID(id ScalarTypeDefID) *ScalarTypeDef
Load a ScalarTypeDef from its ID.
func (*Query) LoadSearchResultFromID ¶
func (r *Query) LoadSearchResultFromID(id SearchResultID) *SearchResult
Load a SearchResult from its ID.
func (*Query) LoadSearchSubmatchFromID ¶
func (r *Query) LoadSearchSubmatchFromID(id SearchSubmatchID) *SearchSubmatch
Load a SearchSubmatch from its ID.
func (*Query) LoadSecretFromID ¶
Load a Secret from its ID.
func (*Query) LoadServiceFromID ¶
Load a Service from its ID.
func (*Query) LoadSindriDevFromID ¶
func (r *Query) LoadSindriDevFromID(id SindriDevID) *SindriDev
Load a SindriDev from its ID.
func (*Query) LoadSindriFromID ¶
Load a Sindri from its ID.
func (*Query) LoadSocketFromID ¶
Load a Socket from its ID.
func (*Query) LoadSourceMapFromID ¶
func (r *Query) LoadSourceMapFromID(id SourceMapID) *SourceMap
Load a SourceMap from its ID.
func (*Query) LoadStatFromID ¶
Load a Stat from its ID.
func (*Query) LoadSyncerFromID ¶
Load a Syncer from its ID.
func (*Query) LoadTerminalFromID ¶
func (r *Query) LoadTerminalFromID(id TerminalID) *Terminal
Load a Terminal from its ID.
func (*Query) LoadTypeDefFromID ¶
Load a TypeDef from its ID.
func (*Query) LoadUpGroupFromID ¶
Load a UpGroup from its ID.
func (*Query) LoadWolfiFromID ¶
Load a Wolfi from its ID.
func (*Query) LoadWorkspaceFromID ¶
func (r *Query) LoadWorkspaceFromID(id WorkspaceID) *Workspace
Load a Workspace from its ID.
func (*Query) MarshalJSON ¶
func (*Query) ModuleSource ¶
func (r *Query) ModuleSource(refString string, opts ...ModuleSourceOpts) *ModuleSource
Create a new module source instance from a source ref string
func (*Query) Secret ¶
func (r *Query) Secret(uri string, opts ...SecretOpts) *Secret
Creates a new secret.
func (*Query) Service ¶
func (r *Query) Service(opts ...ServiceOpts) *Service
func (*Query) SetSecret ¶
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 (*Query) WithGraphQLQuery ¶
func (r *Query) WithGraphQLQuery(q *querybuilder.Selection) *Query
func (*Query) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Query) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Query) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type RemoteGitMirror ¶
type RemoteGitMirror struct {
// contains filtered or unexported fields
}
An internal persistent bare git mirror.
func (*RemoteGitMirror) AsNode ¶
func (r *RemoteGitMirror) AsNode() Node
AsNode returns this RemoteGitMirror as a Node. This is a local type conversion — no GraphQL call.
func (*RemoteGitMirror) ID ¶
func (r *RemoteGitMirror) ID(ctx context.Context) (ID, error)
A unique identifier for this RemoteGitMirror.
func (*RemoteGitMirror) MarshalJSON ¶
func (r *RemoteGitMirror) MarshalJSON() ([]byte, error)
func (*RemoteGitMirror) WithGraphQLQuery ¶
func (r *RemoteGitMirror) WithGraphQLQuery(q *querybuilder.Selection) *RemoteGitMirror
func (*RemoteGitMirror) XXX_GraphQLID ¶
func (r *RemoteGitMirror) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*RemoteGitMirror) XXX_GraphQLIDType ¶
func (r *RemoteGitMirror) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*RemoteGitMirror) XXX_GraphQLType ¶
func (r *RemoteGitMirror) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Request ¶
Request contains all the values required to build queries executed by the graphql.Client
type ReturnType ¶
type ReturnType string
Expected return type of an execution
const ( // A successful execution (exit code 0) ReturnTypeSuccess ReturnType = "SUCCESS" // A failed execution (exit codes 1-127 and 192-255) ReturnTypeFailure ReturnType = "FAILURE" // Any execution (exit codes 0-127 and 192-255) ReturnTypeAny ReturnType = "ANY" )
func (ReturnType) IsEnum ¶
func (ReturnType) IsEnum()
func (*ReturnType) MarshalJSON ¶
func (v *ReturnType) MarshalJSON() ([]byte, error)
func (ReturnType) Name ¶
func (v ReturnType) Name() string
func (*ReturnType) UnmarshalJSON ¶
func (v *ReturnType) UnmarshalJSON(dt []byte) error
func (ReturnType) Value ¶
func (v ReturnType) Value() string
type SDKConfig ¶
type SDKConfig struct {
// contains filtered or unexported fields
}
The SDK config of the module.
func (*SDKConfig) AsNode ¶
AsNode returns this SDKConfig as a Node. This is a local type conversion — no GraphQL call.
func (*SDKConfig) Debug ¶
Whether to start the SDK runtime in debug mode with an interactive terminal.
func (*SDKConfig) MarshalJSON ¶
func (*SDKConfig) Source ¶
Source of the SDK. Either a name of a builtin SDK or a module source ref string pointing to the SDK's implementation.
func (*SDKConfig) WithGraphQLQuery ¶
func (r *SDKConfig) WithGraphQLQuery(q *querybuilder.Selection) *SDKConfig
func (*SDKConfig) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*SDKConfig) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*SDKConfig) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ScalarTypeDef ¶
type ScalarTypeDef struct {
// contains filtered or unexported fields
}
A definition of a custom scalar defined in a Module.
func (*ScalarTypeDef) AsNode ¶
func (r *ScalarTypeDef) AsNode() Node
AsNode returns this ScalarTypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*ScalarTypeDef) Description ¶
func (r *ScalarTypeDef) Description(ctx context.Context) (string, error)
A doc string for the scalar, if any.
func (*ScalarTypeDef) ID ¶
func (r *ScalarTypeDef) ID(ctx context.Context) (ID, error)
A unique identifier for this ScalarTypeDef.
func (*ScalarTypeDef) MarshalJSON ¶
func (r *ScalarTypeDef) MarshalJSON() ([]byte, error)
func (*ScalarTypeDef) Name ¶
func (r *ScalarTypeDef) Name(ctx context.Context) (string, error)
The name of the scalar.
func (*ScalarTypeDef) SourceModuleName ¶
func (r *ScalarTypeDef) SourceModuleName(ctx context.Context) (string, error)
If this ScalarTypeDef is associated with a Module, the name of the module. Unset otherwise.
func (*ScalarTypeDef) WithGraphQLQuery ¶
func (r *ScalarTypeDef) WithGraphQLQuery(q *querybuilder.Selection) *ScalarTypeDef
func (*ScalarTypeDef) XXX_GraphQLID ¶
func (r *ScalarTypeDef) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*ScalarTypeDef) XXX_GraphQLIDType ¶
func (r *ScalarTypeDef) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*ScalarTypeDef) XXX_GraphQLType ¶
func (r *ScalarTypeDef) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type SearchResult ¶
type SearchResult struct {
// contains filtered or unexported fields
}
func (*SearchResult) AbsoluteOffset ¶
func (r *SearchResult) AbsoluteOffset(ctx context.Context) (int, error)
The byte offset of this line within the file.
func (*SearchResult) AsNode ¶
func (r *SearchResult) AsNode() Node
AsNode returns this SearchResult as a Node. This is a local type conversion — no GraphQL call.
func (*SearchResult) FilePath ¶
func (r *SearchResult) FilePath(ctx context.Context) (string, error)
The path to the file that matched.
func (*SearchResult) ID ¶
func (r *SearchResult) ID(ctx context.Context) (ID, error)
A unique identifier for this SearchResult.
func (*SearchResult) LineNumber ¶
func (r *SearchResult) LineNumber(ctx context.Context) (int, error)
The first line that matched.
func (*SearchResult) MarshalJSON ¶
func (r *SearchResult) MarshalJSON() ([]byte, error)
func (*SearchResult) MatchedLines ¶
func (r *SearchResult) MatchedLines(ctx context.Context) (string, error)
The line content that matched.
func (*SearchResult) Submatches ¶
func (r *SearchResult) Submatches(ctx context.Context) ([]SearchSubmatch, error)
Sub-match positions and content within the matched lines.
func (*SearchResult) WithGraphQLQuery ¶
func (r *SearchResult) WithGraphQLQuery(q *querybuilder.Selection) *SearchResult
func (*SearchResult) XXX_GraphQLID ¶
func (r *SearchResult) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*SearchResult) XXX_GraphQLIDType ¶
func (r *SearchResult) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*SearchResult) XXX_GraphQLType ¶
func (r *SearchResult) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type SearchSubmatch ¶
type SearchSubmatch struct {
// contains filtered or unexported fields
}
func (*SearchSubmatch) AsNode ¶
func (r *SearchSubmatch) AsNode() Node
AsNode returns this SearchSubmatch as a Node. This is a local type conversion — no GraphQL call.
func (*SearchSubmatch) End ¶
func (r *SearchSubmatch) End(ctx context.Context) (int, error)
The match's end offset within the matched lines.
func (*SearchSubmatch) ID ¶
func (r *SearchSubmatch) ID(ctx context.Context) (ID, error)
A unique identifier for this SearchSubmatch.
func (*SearchSubmatch) MarshalJSON ¶
func (r *SearchSubmatch) MarshalJSON() ([]byte, error)
func (*SearchSubmatch) Start ¶
func (r *SearchSubmatch) Start(ctx context.Context) (int, error)
The match's start offset within the matched lines.
func (*SearchSubmatch) Text ¶
func (r *SearchSubmatch) Text(ctx context.Context) (string, error)
The matched text.
func (*SearchSubmatch) WithGraphQLQuery ¶
func (r *SearchSubmatch) WithGraphQLQuery(q *querybuilder.Selection) *SearchSubmatch
func (*SearchSubmatch) XXX_GraphQLID ¶
func (r *SearchSubmatch) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*SearchSubmatch) XXX_GraphQLIDType ¶
func (r *SearchSubmatch) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*SearchSubmatch) XXX_GraphQLType ¶
func (r *SearchSubmatch) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
A reference to a secret value, which can be handled more safely than the value itself.
func (*Secret) AsNode ¶
AsNode returns this Secret as a Node. This is a local type conversion — no GraphQL call.
func (*Secret) MarshalJSON ¶
func (*Secret) WithGraphQLQuery ¶
func (r *Secret) WithGraphQLQuery(q *querybuilder.Selection) *Secret
func (*Secret) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Secret) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Secret) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type SecretOpts ¶
type SecretOpts struct {
// If set, the given string will be used as the cache key for this secret. This means that any secrets with the same cache key will be considered equivalent in terms of cache lookups, even if they have different URIs or plaintext values.
//
// For example, two secrets with the same cache key provided as secret env vars to other wise equivalent containers will result in the container withExecs hitting the cache for each other.
//
// If not set, the cache key for the secret will be derived from its plaintext value as looked up when the secret is constructed.
CacheKey string
}
SecretOpts contains options for Query.Secret
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
A content-addressed service providing TCP connectivity.
func (*Service) AsNode ¶
AsNode returns this Service as a Node. This is a local type conversion — no GraphQL call.
func (*Service) AsSyncer ¶
AsSyncer returns this Service as a Syncer. This is a local type conversion — no GraphQL call.
func (*Service) Endpoint ¶
Retrieves an endpoint that clients can use to reach this container.
If no port is specified, the first exposed port is used. If none exist an error is returned.
If a scheme is specified, a URL is returned. Otherwise, a host:port pair is returned.
func (*Service) Hostname ¶
Retrieves a hostname which can be used by clients to reach this container.
func (*Service) MarshalJSON ¶
func (*Service) Start ¶
Start the service and wait for its health checks to succeed.
Services bound to a Container do not need to be manually started.
func (*Service) Terminal ¶
func (r *Service) Terminal(opts ...ServiceTerminalOpts) *Service
func (*Service) Up ¶
func (r *Service) Up(ctx context.Context, opts ...ServiceUpOpts) error
Creates a tunnel that forwards traffic from the caller's network to this service.
func (*Service) With ¶
func (r *Service) With(f WithServiceFunc) *Service
With calls the provided function with current Service.
This is useful for reusability and readability by not breaking the calling chain.
func (*Service) WithGraphQLQuery ¶
func (r *Service) WithGraphQLQuery(q *querybuilder.Selection) *Service
func (*Service) WithHostname ¶
Configures a hostname which can be used by clients within the session to reach this container.
func (*Service) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Service) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Service) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type ServiceEndpointOpts ¶
type ServiceEndpointOpts struct {
// The exposed port number for the endpoint
Port int
// Return a URL with the given scheme, eg. http for http://
Scheme string
}
ServiceEndpointOpts contains options for Service.Endpoint
type ServiceOpts ¶
type ServiceOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:91:2)
Backend string // sindri-dev (../../.dagger/main.go:93:2)
Module string // sindri-dev (../../.dagger/main.go:95:2)
}
ServiceOpts contains options for Query.Service
type ServiceStopOpts ¶
type ServiceStopOpts struct {
// Immediately kill the service without waiting for a graceful exit
Kill bool
}
ServiceStopOpts contains options for Service.Stop
type ServiceTerminalOpts ¶
type ServiceTerminalOpts struct {
Cmd []string
}
ServiceTerminalOpts contains options for Service.Terminal
type ServiceUpOpts ¶
type ServiceUpOpts struct {
// List of frontend/backend port mappings to forward.
//
// Frontend is the port accepting traffic on the host, backend is the service port.
Ports []PortForward
// Bind each tunnel port to a random port on the host.
Random bool
}
ServiceUpOpts contains options for Service.Up
type Sindri ¶
type Sindri struct {
// contains filtered or unexported fields
}
func (*Sindri) AsNode ¶
AsNode returns this Sindri as a Node. This is a local type conversion — no GraphQL call.
func (*Sindri) MarshalJSON ¶
func (*Sindri) WithGraphQLQuery ¶
func (r *Sindri) WithGraphQLQuery(q *querybuilder.Selection) *Sindri
func (*Sindri) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Sindri) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Sindri) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type SindriDev ¶
type SindriDev struct {
// contains filtered or unexported fields
}
func (*SindriDev) AsNode ¶
AsNode returns this SindriDev as a Node. This is a local type conversion — no GraphQL call.
func (*SindriDev) Binary ¶
func (r *SindriDev) Binary(opts ...SindriDevBinaryOpts) *File
func (*SindriDev) Container ¶
func (r *SindriDev) Container(opts ...SindriDevContainerOpts) *Container
func (*SindriDev) MarshalJSON ¶
func (*SindriDev) Service ¶
func (r *SindriDev) Service(opts ...SindriDevServiceOpts) *Service
func (*SindriDev) Test ¶
func (r *SindriDev) Test(ctx context.Context, opts ...SindriDevTestOpts) error
func (*SindriDev) WithGraphQLQuery ¶
func (r *SindriDev) WithGraphQLQuery(q *querybuilder.Selection) *SindriDev
func (*SindriDev) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*SindriDev) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*SindriDev) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type SindriDevBinaryOpts ¶
type SindriDevBinaryOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:179:2)
}
SindriDevBinaryOpts contains options for SindriDev.Binary
type SindriDevContainerOpts ¶
type SindriDevContainerOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:32:2)
Module string // sindri-dev (../../.dagger/main.go:34:2)
}
SindriDevContainerOpts contains options for SindriDev.Container
type SindriDevServiceOpts ¶
type SindriDevServiceOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:91:2)
Backend string // sindri-dev (../../.dagger/main.go:93:2)
Module string // sindri-dev (../../.dagger/main.go:95:2)
}
SindriDevServiceOpts contains options for SindriDev.Service
type SindriDevTagOpts ¶
type SindriDevTagOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:171:2)
}
SindriDevTagOpts contains options for SindriDev.Tag
type SindriDevTestOpts ¶
type SindriDevTestOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:195:2)
}
SindriDevTestOpts contains options for SindriDev.Test
type SindriDevVersionOpts ¶
type SindriDevVersionOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:138:2)
}
SindriDevVersionOpts contains options for SindriDev.Version
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
A Unix or TCP/IP socket that can be mounted into a container.
func (*Socket) AsNode ¶
AsNode returns this Socket as a Node. This is a local type conversion — no GraphQL call.
func (*Socket) MarshalJSON ¶
func (*Socket) WithGraphQLQuery ¶
func (r *Socket) WithGraphQLQuery(q *querybuilder.Selection) *Socket
func (*Socket) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Socket) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Socket) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type SourceMap ¶
type SourceMap struct {
// contains filtered or unexported fields
}
Source location information.
func (*SourceMap) AsNode ¶
AsNode returns this SourceMap as a Node. This is a local type conversion — no GraphQL call.
func (*SourceMap) MarshalJSON ¶
func (*SourceMap) URL ¶
The URL to the file, if any. This can be used to link to the source map in the browser.
func (*SourceMap) WithGraphQLQuery ¶
func (r *SourceMap) WithGraphQLQuery(q *querybuilder.Selection) *SourceMap
func (*SourceMap) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*SourceMap) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*SourceMap) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Stat ¶
type Stat struct {
// contains filtered or unexported fields
}
A file or directory status object.
func (*Stat) AsNode ¶
AsNode returns this Stat as a Node. This is a local type conversion — no GraphQL call.
func (*Stat) MarshalJSON ¶
func (*Stat) Permissions ¶
permission bits
func (*Stat) WithGraphQLQuery ¶
func (r *Stat) WithGraphQLQuery(q *querybuilder.Selection) *Stat
func (*Stat) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Stat) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Stat) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type Syncer ¶
type Syncer interface {
DaggerObject
ID(ctx context.Context) (ID, error)
Sync(ctx context.Context) (Syncer, error)
// Concrete loads and returns the underlying concrete type of this
// interface, which can then be used with a type switch.
Concrete(ctx context.Context) (Node, error)
}
An object that can be force-evaluated.
Calling sync ensures that the object's entire dependency DAG has been evaluated, returning the object's ID once complete.
type SyncerClient ¶
type SyncerClient struct {
// contains filtered or unexported fields
}
SyncerClient is the query-builder for the Syncer interface.
func (*SyncerClient) Concrete ¶
func (r *SyncerClient) Concrete(ctx context.Context) (Node, error)
Concrete loads and returns the underlying concrete type of this interface, which can then be used with a type switch.
func (*SyncerClient) MarshalJSON ¶
func (r *SyncerClient) MarshalJSON() ([]byte, error)
func (*SyncerClient) WithGraphQLQuery ¶
func (r *SyncerClient) WithGraphQLQuery(q *querybuilder.Selection) *SyncerClient
func (*SyncerClient) XXX_GraphQLID ¶
func (r *SyncerClient) XXX_GraphQLID(ctx context.Context) (string, error)
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*SyncerClient) XXX_GraphQLIDType ¶
func (r *SyncerClient) XXX_GraphQLIDType() string
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*SyncerClient) XXX_GraphQLType ¶
func (r *SyncerClient) XXX_GraphQLType() string
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type TagOpts ¶
type TagOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:171:2)
}
TagOpts contains options for Query.Tag
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
An interactive terminal that clients can connect to.
func (*Terminal) AsNode ¶
AsNode returns this Terminal as a Node. This is a local type conversion — no GraphQL call.
func (*Terminal) AsSyncer ¶
AsSyncer returns this Terminal as a Syncer. This is a local type conversion — no GraphQL call.
func (*Terminal) MarshalJSON ¶
func (*Terminal) Sync ¶
Forces evaluation of the pipeline in the engine.
It doesn't run the default command if no exec has been set.
func (*Terminal) WithGraphQLQuery ¶
func (r *Terminal) WithGraphQLQuery(q *querybuilder.Selection) *Terminal
func (*Terminal) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Terminal) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Terminal) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type TestOpts ¶
type TestOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:195:2)
}
TestOpts contains options for Query.Test
type TypeDef ¶
type TypeDef struct {
// contains filtered or unexported fields
}
A definition of a parameter or return type in a Module.
func (*TypeDef) AsEnum ¶
func (r *TypeDef) AsEnum() *EnumTypeDef
If kind is ENUM, the enum-specific type definition. If kind is not ENUM, this will be null.
func (*TypeDef) AsInput ¶
func (r *TypeDef) AsInput() *InputTypeDef
If kind is INPUT, the input-specific type definition. If kind is not INPUT, this will be null.
func (*TypeDef) AsInterface ¶
func (r *TypeDef) AsInterface() *InterfaceTypeDef
If kind is INTERFACE, the interface-specific type definition. If kind is not INTERFACE, this will be null.
func (*TypeDef) AsList ¶
func (r *TypeDef) AsList() *ListTypeDef
If kind is LIST, the list-specific type definition. If kind is not LIST, this will be null.
func (*TypeDef) AsNode ¶
AsNode returns this TypeDef as a Node. This is a local type conversion — no GraphQL call.
func (*TypeDef) AsObject ¶
func (r *TypeDef) AsObject() *ObjectTypeDef
If kind is OBJECT, the object-specific type definition. If kind is not OBJECT, this will be null.
func (*TypeDef) AsScalar ¶
func (r *TypeDef) AsScalar() *ScalarTypeDef
If kind is SCALAR, the scalar-specific type definition. If kind is not SCALAR, this will be null.
func (*TypeDef) Kind ¶
func (r *TypeDef) Kind(ctx context.Context) (TypeDefKind, error)
The kind of type this is (e.g. primitive, list, object).
func (*TypeDef) MarshalJSON ¶
func (*TypeDef) With ¶
func (r *TypeDef) With(f WithTypeDefFunc) *TypeDef
With calls the provided function with current TypeDef.
This is useful for reusability and readability by not breaking the calling chain.
func (*TypeDef) WithConstructor ¶
Adds a function for constructing a new instance of an Object TypeDef, failing if the type is not an object.
func (*TypeDef) WithEnum ¶
func (r *TypeDef) WithEnum(name string, opts ...TypeDefWithEnumOpts) *TypeDef
Returns a TypeDef of kind Enum with the provided name.
Note that an enum's values may be omitted if the intent is only to refer to an enum. This is how functions are able to return their own, or any other circular reference.
func (*TypeDef) WithEnumMember ¶
func (r *TypeDef) WithEnumMember(name string, opts ...TypeDefWithEnumMemberOpts) *TypeDef
Adds a static value for an Enum TypeDef, failing if the type is not an enum.
func (*TypeDef) WithEnumValue
deprecated
func (r *TypeDef) WithEnumValue(value string, opts ...TypeDefWithEnumValueOpts) *TypeDef
Adds a static value for an Enum TypeDef, failing if the type is not an enum.
Deprecated: Use WithEnumMember instead
func (*TypeDef) WithField ¶
func (r *TypeDef) WithField(name string, typeDef *TypeDef, opts ...TypeDefWithFieldOpts) *TypeDef
Adds a static field for an Object TypeDef, failing if the type is not an object.
func (*TypeDef) WithFunction ¶
Adds a function for an Object or Interface TypeDef, failing if the type is not one of those kinds.
func (*TypeDef) WithGraphQLQuery ¶
func (r *TypeDef) WithGraphQLQuery(q *querybuilder.Selection) *TypeDef
func (*TypeDef) WithInterface ¶
func (r *TypeDef) WithInterface(name string, opts ...TypeDefWithInterfaceOpts) *TypeDef
Returns a TypeDef of kind Interface with the provided name.
func (*TypeDef) WithKind ¶
func (r *TypeDef) WithKind(kind TypeDefKind) *TypeDef
Sets the kind of the type.
func (*TypeDef) WithListOf ¶
Returns a TypeDef of kind List with the provided type for its elements.
func (*TypeDef) WithObject ¶
func (r *TypeDef) WithObject(name string, opts ...TypeDefWithObjectOpts) *TypeDef
Returns a TypeDef of kind Object with the provided name.
Note that an object's fields and functions may be omitted if the intent is only to refer to an object. This is how functions are able to return their own object, or any other circular reference.
func (*TypeDef) WithOptional ¶
Sets whether this type can be set to null.
func (*TypeDef) WithScalar ¶
func (r *TypeDef) WithScalar(name string, opts ...TypeDefWithScalarOpts) *TypeDef
Returns a TypeDef of kind Scalar with the provided name.
func (*TypeDef) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*TypeDef) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*TypeDef) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type TypeDefKind ¶
type TypeDefKind string
Distinguishes the different kinds of TypeDefs.
const ( // A string value. TypeDefKindStringKind TypeDefKind = "STRING_KIND" // A string value. TypeDefKindString TypeDefKind = TypeDefKindStringKind // An integer value. TypeDefKindIntegerKind TypeDefKind = "INTEGER_KIND" // An integer value. TypeDefKindInteger TypeDefKind = TypeDefKindIntegerKind // A float value. TypeDefKindFloatKind TypeDefKind = "FLOAT_KIND" // A float value. TypeDefKindFloat TypeDefKind = TypeDefKindFloatKind // A boolean value. TypeDefKindBooleanKind TypeDefKind = "BOOLEAN_KIND" // A boolean value. TypeDefKindBoolean TypeDefKind = TypeDefKindBooleanKind // A scalar value of any basic kind. TypeDefKindScalarKind TypeDefKind = "SCALAR_KIND" // A scalar value of any basic kind. TypeDefKindScalar TypeDefKind = TypeDefKindScalarKind // Always paired with a ListTypeDef. // // A list of values all having the same type. TypeDefKindListKind TypeDefKind = "LIST_KIND" // Always paired with a ListTypeDef. // // A list of values all having the same type. TypeDefKindList TypeDefKind = TypeDefKindListKind // Always paired with an ObjectTypeDef. // // A named type defined in the GraphQL schema, with fields and functions. TypeDefKindObjectKind TypeDefKind = "OBJECT_KIND" // Always paired with an ObjectTypeDef. // // A named type defined in the GraphQL schema, with fields and functions. TypeDefKindObject TypeDefKind = TypeDefKindObjectKind // Always paired with an InterfaceTypeDef. // // A named type of functions that can be matched+implemented by other objects+interfaces. TypeDefKindInterfaceKind TypeDefKind = "INTERFACE_KIND" // Always paired with an InterfaceTypeDef. // // A named type of functions that can be matched+implemented by other objects+interfaces. TypeDefKindInterface TypeDefKind = TypeDefKindInterfaceKind // A graphql input type, used only when representing the core API via TypeDefs. TypeDefKindInputKind TypeDefKind = "INPUT_KIND" // A graphql input type, used only when representing the core API via TypeDefs. TypeDefKindInput TypeDefKind = TypeDefKindInputKind // A special kind used to signify that no value is returned. // // This is used for functions that have no return value. The outer TypeDef specifying this Kind is always Optional, as the Void is never actually represented. TypeDefKindVoidKind TypeDefKind = "VOID_KIND" // A special kind used to signify that no value is returned. // // This is used for functions that have no return value. The outer TypeDef specifying this Kind is always Optional, as the Void is never actually represented. TypeDefKindVoid TypeDefKind = TypeDefKindVoidKind // A GraphQL enum type and its values // // Always paired with an EnumTypeDef. TypeDefKindEnumKind TypeDefKind = "ENUM_KIND" // A GraphQL enum type and its values // // Always paired with an EnumTypeDef. TypeDefKindEnum TypeDefKind = TypeDefKindEnumKind )
func (TypeDefKind) IsEnum ¶
func (TypeDefKind) IsEnum()
func (*TypeDefKind) MarshalJSON ¶
func (v *TypeDefKind) MarshalJSON() ([]byte, error)
func (TypeDefKind) Name ¶
func (v TypeDefKind) Name() string
func (*TypeDefKind) UnmarshalJSON ¶
func (v *TypeDefKind) UnmarshalJSON(dt []byte) error
func (TypeDefKind) Value ¶
func (v TypeDefKind) Value() string
type TypeDefWithEnumMemberOpts ¶
type TypeDefWithEnumMemberOpts struct {
// The value of the member in the enum
Value string
// A doc string for the member, if any
Description string
// The source map for the enum member definition.
SourceMap *SourceMap
// If deprecated, the reason or migration path.
Deprecated string
}
TypeDefWithEnumMemberOpts contains options for TypeDef.WithEnumMember
type TypeDefWithEnumOpts ¶
type TypeDefWithEnumOpts struct {
// A doc string for the enum, if any
Description string
// The source map for the enum definition.
SourceMap *SourceMap
}
TypeDefWithEnumOpts contains options for TypeDef.WithEnum
type TypeDefWithEnumValueOpts ¶
type TypeDefWithEnumValueOpts struct {
// A doc string for the value, if any
Description string
// The source map for the enum value definition.
SourceMap *SourceMap
// If deprecated, the reason or migration path.
Deprecated string
}
TypeDefWithEnumValueOpts contains options for TypeDef.WithEnumValue
type TypeDefWithFieldOpts ¶
type TypeDefWithFieldOpts struct {
// A doc string for the field, if any
Description string
// The source map for the field definition.
SourceMap *SourceMap
// If deprecated, the reason or migration path.
Deprecated string
}
TypeDefWithFieldOpts contains options for TypeDef.WithField
type TypeDefWithInterfaceOpts ¶
TypeDefWithInterfaceOpts contains options for TypeDef.WithInterface
type TypeDefWithObjectOpts ¶
TypeDefWithObjectOpts contains options for TypeDef.WithObject
type TypeDefWithScalarOpts ¶
type TypeDefWithScalarOpts struct {
Description string
}
TypeDefWithScalarOpts contains options for TypeDef.WithScalar
type Up ¶
type Up struct {
// contains filtered or unexported fields
}
func (*Up) AsNode ¶
AsNode returns this Up as a Node. This is a local type conversion — no GraphQL call.
func (*Up) Description ¶
The description of the service
func (*Up) MarshalJSON ¶
func (*Up) OriginalModule ¶
The original module in which the service has been defined
func (*Up) With ¶
func (r *Up) With(f WithUpFunc) *Up
With calls the provided function with current Up.
This is useful for reusability and readability by not breaking the calling chain.
func (*Up) WithGraphQLQuery ¶
func (r *Up) WithGraphQLQuery(q *querybuilder.Selection) *Up
func (*Up) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Up) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Up) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type UpGroup ¶
type UpGroup struct {
// contains filtered or unexported fields
}
func (*UpGroup) AsNode ¶
AsNode returns this UpGroup as a Node. This is a local type conversion — no GraphQL call.
func (*UpGroup) MarshalJSON ¶
func (*UpGroup) With ¶
func (r *UpGroup) With(f WithUpGroupFunc) *UpGroup
With calls the provided function with current UpGroup.
This is useful for reusability and readability by not breaking the calling chain.
func (*UpGroup) WithGraphQLQuery ¶
func (r *UpGroup) WithGraphQLQuery(q *querybuilder.Selection) *UpGroup
func (*UpGroup) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*UpGroup) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*UpGroup) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type VersionOpts ¶
type VersionOpts struct {
Workspace *Workspace // sindri-dev (../../.dagger/main.go:138:2)
}
VersionOpts contains options for Query.Version
type Void ¶
type Void string
The absence of a value.
A Null Void is used as a placeholder for resolvers that do not return anything.
type WithChangesetFunc ¶
type WithCheckFunc ¶
type WithCheckGroupFunc ¶
type WithCheckGroupFunc func(r *CheckGroup) *CheckGroup
type WithContainerFunc ¶
type WithDirectoryFunc ¶
type WithEnvFileFunc ¶
type WithEnvFunc ¶
type WithErrorFunc ¶
type WithFileFunc ¶
type WithFunctionFunc ¶
type WithGeneratedCodeFunc ¶
type WithGeneratedCodeFunc func(r *GeneratedCode) *GeneratedCode
type WithGeneratorFunc ¶
type WithGeneratorGroupFunc ¶
type WithGeneratorGroupFunc func(r *GeneratorGroup) *GeneratorGroup
type WithGitRefFunc ¶
type WithJSONValueFunc ¶
type WithLLMFunc ¶
type WithModuleFunc ¶
type WithModuleSourceFunc ¶
type WithModuleSourceFunc func(r *ModuleSource) *ModuleSource
type WithServiceFunc ¶
type WithTypeDefFunc ¶
type WithUpFunc ¶
type WithUpGroupFunc ¶
type Wolfi ¶
type Wolfi struct {
// contains filtered or unexported fields
}
A Wolfi Linux configuration
func (*Wolfi) AsNode ¶
AsNode returns this Wolfi as a Node. This is a local type conversion — no GraphQL call.
func (*Wolfi) Container ¶
func (r *Wolfi) Container(opts ...WolfiContainerOpts) *Container
Build a Wolfi Linux container
func (*Wolfi) MarshalJSON ¶
func (*Wolfi) WithGraphQLQuery ¶
func (r *Wolfi) WithGraphQLQuery(q *querybuilder.Selection) *Wolfi
func (*Wolfi) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Wolfi) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Wolfi) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type WolfiContainerOpts ¶
type WolfiContainerOpts struct {
//
// APK packages to install
//
Packages []string // wolfi (https://github.com/dagger/dagger/tree/054f94b2d86c0ac00bef11ac4550816973c4aeef/modules/wolfi/main.go#L16)
//
// Hardware architecture to target
//
Arch string // wolfi (https://github.com/dagger/dagger/tree/054f94b2d86c0ac00bef11ac4550816973c4aeef/modules/wolfi/main.go#L19)
//
// Extra repositories to add to the package resolver
//
ExtraRepositories []string // wolfi (https://github.com/dagger/dagger/tree/054f94b2d86c0ac00bef11ac4550816973c4aeef/modules/wolfi/main.go#L22)
//
// Extra keys needed to authenticate the extra repositories
//
ExtraKeyUrls []string // wolfi (https://github.com/dagger/dagger/tree/054f94b2d86c0ac00bef11ac4550816973c4aeef/modules/wolfi/main.go#L25)
//
// Overlay images to merge on top of the base.
// See https://twitter.com/ibuildthecloud/status/1721306361999597884
//
Overlays []*Container // wolfi (https://github.com/dagger/dagger/tree/054f94b2d86c0ac00bef11ac4550816973c4aeef/modules/wolfi/main.go#L29)
}
WolfiContainerOpts contains options for Wolfi.Container
type Workspace ¶
type Workspace struct {
// contains filtered or unexported fields
}
A Dagger workspace detected from the current working directory.
func (*Workspace) AsNode ¶
AsNode returns this Workspace as a Node. This is a local type conversion — no GraphQL call.
func (*Workspace) Checks ¶
func (r *Workspace) Checks(opts ...WorkspaceChecksOpts) *CheckGroup
Return all checks from modules loaded in the workspace.
func (*Workspace) ConfigPath ¶
Path to config.toml relative to the workspace boundary (empty if not initialized).
func (*Workspace) Directory ¶
func (r *Workspace) Directory(path string, opts ...WorkspaceDirectoryOpts) *Directory
Returns a Directory from the workspace.
Relative paths resolve from the workspace directory. Absolute paths resolve from the workspace boundary.
func (*Workspace) File ¶
Returns a File from the workspace.
Relative paths resolve from the workspace directory. Absolute paths resolve from the workspace boundary.
func (*Workspace) FindUp ¶
func (r *Workspace) FindUp(ctx context.Context, name string, opts ...WorkspaceFindUpOpts) (string, error)
Search for a file or directory by walking up from the start path within the workspace.
Returns the absolute workspace path if found, or null if not found.
Relative start paths resolve from the workspace directory.
The search stops at the workspace boundary and will not traverse above it.
func (*Workspace) Generators ¶
func (r *Workspace) Generators(opts ...WorkspaceGeneratorsOpts) *GeneratorGroup
Return all generators from modules loaded in the workspace.
func (*Workspace) Initialized ¶
Whether .dagger/config.toml exists.
func (*Workspace) MarshalJSON ¶
func (*Workspace) Services ¶
func (r *Workspace) Services(opts ...WorkspaceServicesOpts) *UpGroup
Return all services from modules loaded in the workspace.
func (*Workspace) Update ¶
Refresh workspace-managed state and return the resulting changeset.
Currently this refreshes existing lockfile entries only.
Experimental: Experimental workspace update API currently refreshes existing lockfile entries only.
func (*Workspace) WithGraphQLQuery ¶
func (r *Workspace) WithGraphQLQuery(q *querybuilder.Selection) *Workspace
func (*Workspace) XXX_GraphQLID ¶
XXX_GraphQLID is an internal function. It returns the underlying type ID
func (*Workspace) XXX_GraphQLIDType ¶
XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object
func (*Workspace) XXX_GraphQLType ¶
XXX_GraphQLType is an internal function. It returns the native GraphQL type name
type WorkspaceChecksOpts ¶
type WorkspaceChecksOpts struct {
// Only include checks matching the specified patterns
Include []string
// When true, only return annotated check functions; exclude generate-as-checks
NoGenerate bool
// When true, only return generate-as-checks; exclude annotated check functions
OnlyGenerate bool
}
WorkspaceChecksOpts contains options for Workspace.Checks
type WorkspaceDirectoryOpts ¶
type WorkspaceDirectoryOpts struct {
// Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
Exclude []string
// Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
Include []string
// Apply .gitignore filter rules inside the directory.
Gitignore bool
}
WorkspaceDirectoryOpts contains options for Workspace.Directory
type WorkspaceFindUpOpts ¶
type WorkspaceFindUpOpts struct {
// Path to start the search from. Relative paths resolve from the workspace directory; absolute paths resolve from the workspace boundary.
//
// Default: "."
From string
}
WorkspaceFindUpOpts contains options for Workspace.FindUp
type WorkspaceGeneratorsOpts ¶
type WorkspaceGeneratorsOpts struct {
// Only include generators matching the specified patterns
Include []string
}
WorkspaceGeneratorsOpts contains options for Workspace.Generators
type WorkspaceServicesOpts ¶
type WorkspaceServicesOpts struct {
// Only include services matching the specified patterns
Include []string
}
WorkspaceServicesOpts contains options for Workspace.Services