fake

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapIsolatedSeededGitFixture

func BootstrapIsolatedSeededGitFixture(
	ctx context.Context,
) (string, func(context.Context) error, error)

BootstrapIsolatedSeededGitFixture creates a caller-owned Git fixture repository. The returned cleanup must run after the caller finishes using the repository.

func BootstrapSeededGitFixtureState

func BootstrapSeededGitFixtureState(ctx context.Context, pipelineState string) (string, string, error)

BootstrapSeededGitFixtureState force-pushes one deterministic lifecycle state to the worktree-local Soft Serve repository and returns its exact commit.

func BootstrapSeededGitFixtures

func BootstrapSeededGitFixtures(ctx context.Context) (string, error)

Types

type Summary

type Summary struct {
	RunID                  string
	OwnerUserSlug          string
	MemberUserSlug         string
	OwnerUserEmail         string
	MemberUserEmail        string
	UserPassword           string
	OrganizationSlug       string
	EmptyOrganizationSlug  string
	ProjectSlug            string
	EnvironmentSlug        string
	APIKeySlug             string
	APIKeyToken            string
	HTTPDataSourceSlug     string
	HTTPQuerySlug          string
	DataSourceSlug         string
	QuerySlug              string
	SQLDataSourceSlug      string
	SQLQuerySlug           string
	MySQLDataSourceSlug    string
	MySQLQuerySlug         string
	MySQLSinkQuerySlug     string
	MongoDataSourceSlug    string
	MongoQuerySlug         string
	HubSpotDataSourceSlug  string
	HubSpotQuerySlug       string
	FTPDataSourceSlug      string
	FTPQuerySlug           string
	GitDataSourceSlug      string
	GitQuerySlug           string
	SeededGitCommitSHA     string
	PipelineSlug           string
	NotificationRecordSlug string
	RetentionRunSlug       string
}

Summary contains the key entities produced by one fake seed run.

func Seed

func Seed(ctx context.Context, cfg *backendconfig.Config, coreOnly bool) (*Summary, error)

Seed seeds a small, deterministic set of data using service-layer APIs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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