project_bundler

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryOptions

type DiscoveryOptions[TWorkflowSettings, TPageSettings any] struct {
	StartFolder          string
	OnWorkflowDiscovered func(ctx context.Context, bundle *bundler.BundlerResult[TWorkflowSettings])
	OnPageDiscovered     func(ctx context.Context, bundle *bundler.BundlerResult[TPageSettings])
}

type KindeEnvironment

type KindeEnvironment[TWorkflowSettings, TPageSettings any] struct {
	Workflows []KindeWorkflow[TWorkflowSettings] `json:"workflows"`
	Pages     []KindePage[TPageSettings]         `json:"pages"`
	// contains filtered or unexported fields
}

type KindePage added in v0.1.8

type KindePage[TSettings any] struct {
	RootDirectory string                           `json:"root_directory"`
	EntryPoints   []string                         `json:"entry_points"`
	Bundle        bundler.BundlerResult[TSettings] `json:"bundle"`
}

type KindeProject

type KindeProject[TWorkflowSettings, TPageSettings any] struct {
	Configuration ProjectConfiguration                               `json:"configuration"`
	Environment   KindeEnvironment[TWorkflowSettings, TPageSettings] `json:"environment"`
}

type KindeWorkflow

type KindeWorkflow[TSettings any] struct {
	WorkflowRootDirectory string                           `json:"workflow_root_directory"`
	EntryPoints           []string                         `json:"entry_points"`
	Bundle                bundler.BundlerResult[TSettings] `json:"bundle"`
}

type ProjectBundler

type ProjectBundler[TWorkflowSettings, TPageSettings any] interface {
	Discover(ctx context.Context) (*KindeProject[TWorkflowSettings, TPageSettings], error)
}

func NewProjectBundler

func NewProjectBundler[TWorkflowSettings, TPageSettings any](discoveryOptions DiscoveryOptions[TWorkflowSettings, TPageSettings]) ProjectBundler[TWorkflowSettings, TPageSettings]

type ProjectConfiguration

type ProjectConfiguration struct {
	Version     string `json:"version"`
	RootDir     string `json:"rootDir"`
	AbsLocation string `json:"location"`
}

type ProjectSettings added in v0.1.11

type ProjectSettings string
const (
	ProjectSettingsContextKey ProjectSettings = "projectSettings"
)

Jump to

Keyboard shortcuts

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