projectload

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIJob

type APIJob struct {
	Selector string
	ID       string

	ImportPath                     string
	SpecPath                       string
	APIOutDir                      string
	RawClientModels                bool
	AttachmentRedactedFields       []string
	AttachmentRedactionReplacement string
	AuthMode                       publicapi.AuthMode
	AuthHeaders                    []publicapi.AuthHeader
	ModelsMode                     publicapi.Mode
	WrapperMode                    publicapi.Mode
	WrapperOutputPath              string
	WrapperPackage                 string
	Bootstrap                      *BootstrapBinding
}

type BootstrapBinding

type BootstrapBinding struct {
	Target      string
	ComponentID string
}

type BootstrapJob

type BootstrapJob struct {
	Selector   string
	ID         string
	BaseDir    string
	Package    string
	Definition string
	OutDir     string
	Mode       publicbootstrap.Mode
}

type Project

type Project struct {
	RootDir    string
	ModulePath string

	APIs       []APIJob
	Repos      []RepoJob
	Bootstraps []BootstrapJob
}

func Load

func Load(rootDir, modulePath string) (Project, error)

Load reads the module-root Depsmith(root) project entrypoint and returns a normalized project.

func Normalize

func Normalize(rootDir, modulePath string, cfg publicdepsmith.Project) (Project, error)

Normalize applies defaults, resolves paths and validates unique IDs inside each job type.

type RepoBuildJob

type RepoBuildJob struct {
	Enabled bool

	ImportPath     string
	OutDir         string
	CatalogPath    string
	FKCatalogPath  string
	MethodRefsPath string

	DSLPackageName  string
	PackageName     string
	Prepared        bool
	InputSuffix     string
	RowSuffix       string
	ReturningSuffix string

	OpsPackage              string
	LogRedactedFields       []string
	LogRedactionReplacement string
	Bootstrap               *BootstrapBinding
}

type RepoDSLJob

type RepoDSLJob struct {
	Enabled    bool
	Dir        string
	Package    string
	ImportPath string
	Presets    []publicrepo.ScaffoldPreset
	Mode       publicrepo.ScaffoldMode
}

type RepoJob

type RepoJob struct {
	Selector string
	ID       string

	SchemaPath string

	Tables           []string
	Preset           publicrepo.TablePreset
	DependencyPolicy publicrepo.DependencyPolicy

	DSL   RepoDSLJob
	Build RepoBuildJob
}

Jump to

Keyboard shortcuts

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