ldx_sync_config

package
v0.7.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LdxSyncConfigResult

type LdxSyncConfigResult struct {
	Config      *v20260507.UserConfigResponse
	RemoteUrl   string
	ProjectRoot string
	Error       error
}

LdxSyncConfigResult contains the result of LDX-Sync config retrieval

func GetMergedConfigForFolder

func GetMergedConfigForFolder(ctx context.Context, engine workflow.Engine, dir string, orgId string) LdxSyncConfigResult

GetMergedConfigForFolder retrieves merged LDX-Sync user configuration for the given folder

func GetUserConfigForProject

func GetUserConfigForProject(engine workflow.Engine, dir string, orgId string) LdxSyncConfigResult

GetUserConfigForProject retrieves LDX-Sync user configuration for the current project. Deprecated: Use GetMergedConfigForFolder instead, which accepts a context parameter.

type Organization

type Organization v20260507.Organization

Organization is the struct we return to consumers. We redefine it so that consumers don't need to be aware of the LDX-Sync api version. For the initial release pf LDX-Sync they are identical so we use an alias.

func ResolveOrgFromUserConfig

func ResolveOrgFromUserConfig(engine workflow.Engine, cfgResult LdxSyncConfigResult) (Organization, error)

ResolveOrgFromUserConfig attempts to resolve an organization from user config. It follows this order: 1. Tries to find a preferred organization from LDX-Sync configuration. 2. Falls back to the user's default organization from LDX-Sync. 3. Falls back to the user's default organization from the Snyk API.

func ResolveOrganization

func ResolveOrganization(config configuration.Configuration, engine workflow.Engine, logger *zerolog.Logger, dir string, existingOrgID string) (Organization, error)

TODO remove

Directories

Path Synopsis
ldx_sync
2026-05-07
Package v20260507 provides primitives to interact with the openapi HTTP API.
Package v20260507 provides primitives to interact with the openapi HTTP API.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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