Documentation
¶
Index ¶
- func NewCmd(f *cmdutil.Factory) *cobra.Command
- func NewCobraCmd(sync *SyncCmd, f *cmdutil.Factory) *cobra.Command
- func Run(cmdFac *SyncCmd) error
- func SyncLocalResources(f *cmdutil.Factory, info contracts.SyncOptsV3, synch *SyncCmd) error
- func WriteManifest(manifest *contracts.Manifest, pathMan string) error
- type SyncCmd
- type SyncState
- type V3SyncPipeline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SyncLocalResources ¶
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 ¶
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