dagger

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine manages the Dagger client and provides methods to run Dagger pipelines

func NewEngine

func NewEngine(ctx context.Context, logLevel ...string) (*Engine, error)

NewEngine creates a new Dagger engine instance

func (*Engine) BuildContainer

func (e *Engine) BuildContainer(contextDir string, dockerfile string) (*dagger.Container, error)

BuildContainer builds a container from a directory with a Dockerfile

func (*Engine) Close

func (e *Engine) Close() error

Close closes the Dagger client connection

func (*Engine) GetClient

func (e *Engine) GetClient() *dagger.Client

GetClient returns the underlying Dagger client

func (*Engine) NewBuildXModule added in v0.8.2

func (e *Engine) NewBuildXModule() *modules.BuildXModule

NewBuildXModule creates a new BuildX module

func (*Engine) NewCheckovModule

func (e *Engine) NewCheckovModule() *modules.CheckovModule

NewCheckovModule creates a new Checkov module

func (*Engine) NewGitSecretsModule added in v0.8.0

func (e *Engine) NewGitSecretsModule() *modules.GitSecretsModule

NewGitSecretsModule creates a new git-secrets module

func (*Engine) NewGitleaksModule added in v0.8.0

func (e *Engine) NewGitleaksModule() *modules.GitleaksModule

NewGitleaksModule creates a new Gitleaks module

func (*Engine) NewInfraMapModule

func (e *Engine) NewInfraMapModule() *modules.InfraMapModule

NewInfraMapModule creates a new InfraMap module

func (*Engine) NewInfraScanModule

func (e *Engine) NewInfraScanModule() *modules.InfraScanModule

NewInfraScanModule creates a new InfraScan module

func (*Engine) NewOpenInfraQuoteModule

func (e *Engine) NewOpenInfraQuoteModule() *modules.OpenInfraQuoteModule

NewOpenInfraQuoteModule creates a new OpenInfraQuote module

func (*Engine) NewTFLintModule

func (e *Engine) NewTFLintModule() *modules.TFLintModule

NewTFLintModule creates a new TFLint module

func (*Engine) NewTerraformDocsModule

func (e *Engine) NewTerraformDocsModule() *modules.TerraformDocsModule

NewTerraformDocsModule creates a new terraform-docs module

func (*Engine) OpenCode added in v0.8.0

func (e *Engine) OpenCode() *modules.OpenCodeModule

OpenCode creates a new OpenCode module

func (*Engine) RunContainer

func (e *Engine) RunContainer(image string, args []string) (string, error)

RunContainer runs a container with the specified image and returns the output

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

Pipeline represents a Dagger pipeline for running investigations

func NewPipeline

func NewPipeline(engine *Engine, name string) *Pipeline

NewPipeline creates a new pipeline with the given name

func (*Pipeline) InvestigateAWS

func (p *Pipeline) InvestigateAWS(queries []string) (map[string]string, error)

InvestigateAWS runs an AWS investigation pipeline

func (*Pipeline) InvestigateCloudflare

func (p *Pipeline) InvestigateCloudflare(queries []string) (map[string]string, error)

InvestigateCloudflare runs a Cloudflare investigation pipeline

func (*Pipeline) InvestigateHeroku

func (p *Pipeline) InvestigateHeroku(queries []string) (map[string]string, error)

InvestigateHeroku runs a Heroku investigation pipeline

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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