apisyncer

package
v0.19.1069 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(apiClient nuon.Client, appID, cliVersion string, cfg *config.AppConfig, opts ...SyncerOption) sync.Syncer

Types

type SyncComponentConfigResponse

type SyncComponentConfigResponse struct {
	CfgID, RequestChecksum string
}

type SyncerOption added in v0.19.1012

type SyncerOption func(*syncer)

New creates a new API-based syncer that communicates with ctl-api over HTTP. This is the original sync implementation used by the CLI.

Parameters:

  • apiClient: nuon SDK client for making API calls
  • appID: ID of the app to sync
  • cliVersion: version of the CLI performing the sync (for tracking)
  • cfg: parsed app configuration to sync

Returns a sync.Syncer interface that can be used to perform the sync operation. SyncerOption configures optional syncer behavior.

func WithAppBranch added in v0.19.1012

func WithAppBranch(branchID string, planOnly bool) SyncerOption

WithAppBranch configures the syncer to target a specific app branch.

Jump to

Keyboard shortcuts

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