sync

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(f *cmdutil.Factory) *cobra.Command

func NewCobraCmd

func NewCobraCmd(sync *SyncCmd, f *cmdutil.Factory) *cobra.Command

func Run

func Run(cmdFac *SyncCmd) error

func SyncLocalResources

func SyncLocalResources(f *cmdutil.Factory, info contracts.SyncOptsV3, synch *SyncCmd) error

func WriteManifest

func WriteManifest(manifest *contracts.Manifest, pathMan string) error

Types

type SyncCmd

type SyncCmd struct {
	Io                    *iostreams.IOStreams
	GetAzionJsonContent   func(confPath string) (*contracts.AzionApplicationOptionsV3, error)
	WriteAzionJsonContent func(conf *contracts.AzionApplicationOptionsV3, confPath string) error
	F                     *cmdutil.Factory
	SyncResources         func(f *cmdutil.Factory, info contracts.SyncOptsV3, synch *SyncCmd) error
	EnvPath               string
	ReadEnv               func(filenames ...string) (envMap map[string]string, err error)
	WriteManifest         func(manifest *contracts.Manifest, pathMan string) error
	CommandRunInteractive func(f *cmdutil.Factory, comm string) error
	IaC                   bool
	IaCFormat             string
	ProjectConf           string
}

func NewSyncCmd

func NewSyncCmd(f *cmdutil.Factory) *SyncCmd

type SyncState

type SyncState struct {
	F    *cmdutil.Factory
	Info contracts.SyncOptsV3
	Sync *SyncCmd

	Manifest      *contracts.Manifest
	RemoteCaches  map[string]contracts.AzionJsonDataCacheSettings
	RemoteOrigins map[string]contracts.AzionJsonDataOrigin
}

SyncState is what the v3 sync steps read and write.

RemoteCaches and RemoteOrigins are the reason the order matters: the rules step resolves its behaviour targets against what the two steps before it found remotely.

type V3SyncPipeline

type V3SyncPipeline struct{}

V3SyncPipeline is the sync flow for the v3 API.

Unlike v4 it does not read the project manifest: it starts from an empty one and fills it from the remote resources it finds.

func (V3SyncPipeline) Name

func (V3SyncPipeline) Name() string

func (V3SyncPipeline) Steps

Jump to

Keyboard shortcuts

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