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.SyncOpts, synch *SyncCmd) error
- func WriteManifest(manifest *contracts.ManifestV4, pathMan string) error
- type SyncCmd
- type SyncState
- type V4SyncPipeline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SyncLocalResources ¶
func WriteManifest ¶
func WriteManifest(manifest *contracts.ManifestV4, pathMan string) error
Types ¶
type SyncCmd ¶
type SyncCmd struct {
Io *iostreams.IOStreams
GetAzionJsonContent func(confPath string) (*contracts.AzionApplicationOptions, error)
WriteAzionJsonContent func(conf *contracts.AzionApplicationOptions, confPath string) error
F *cmdutil.Factory
SyncResources func(f *cmdutil.Factory, info contracts.SyncOpts, synch *SyncCmd) error
EnvPath string
ReadEnv func(filenames ...string) (envMap map[string]string, err error)
WriteManifest func(manifest *contracts.ManifestV4, 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.SyncOpts
Sync *SyncCmd
// Manifest is produced by the read step and consumed by the ones that
// reconcile against it.
Manifest *contracts.ManifestV4
}
SyncState is what the v4 sync steps read and write.
type V4SyncPipeline ¶
type V4SyncPipeline struct{}
V4SyncPipeline is the sync flow for the v4 API.
func (V4SyncPipeline) Name ¶
func (V4SyncPipeline) Name() string
Click to show internal directories.
Click to hide internal directories.