Documentation
¶
Index ¶
- Variables
- func CleanupZipFiles() error
- func CreateZipsInBatches(files []contracts.FileOps) ([]string, error)
- func NewCmd(f *cmdutil.Factory) *cobra.Command
- func NewCobraCmd(deploy *DeployCmd) *cobra.Command
- func ReadAllFiles(pathStatic string, cmd *DeployCmd) ([]contracts.FileOps, error)
- func ReadZip() ([]contracts.FileOps, error)
- func Worker(jobs <-chan contracts.FileOps, results chan<- error, currentFile *int64, ...)
- type DeployCmd
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Path string Auto bool NoPrompt bool SkipBuild bool ProjectConf string Sync bool DryRun bool WriteBucket bool Local bool Env string SkipFramework bool Logs = contracts.Logs{} Result = contracts.ResultsV4{} DeployURL = "https://console.azion.com" ScriptID = "17ac912d-5ce9-4806-9fa7-480779e43f58" )
View Source
var ResponseMap map[string]string
View Source
var (
Retries int64
)
Functions ¶
func CleanupZipFiles ¶
func CleanupZipFiles() error
func NewCobraCmd ¶
func ReadAllFiles ¶
Types ¶
type DeployCmd ¶
type DeployCmd struct {
Io *iostreams.IOStreams
GetWorkDir func() (string, error)
FileReader func(path string) ([]byte, error)
WriteFile func(filename string, data []byte, perm fs.FileMode) error
GetAzionJsonContent func(pathConfig string) (*contracts.AzionApplicationOptions, error)
WriteAzionJsonContent func(conf *contracts.AzionApplicationOptions, confConf string) error
WriteAzionConfig func(conf *contracts.AzionConfig) error
BuildCmd func(f *cmdutil.Factory) *build.BuildCmd
Open func(name string) (*os.File, error)
FilepathWalk func(root string, fn filepath.WalkFunc) error
F *cmdutil.Factory
Unmarshal func(data []byte, v interface{}) error
Interpreter func() *manifestInt.ManifestInterpreter
VersionID func() string
CallScript func(token string, id string, secret string, prefix string, name, confDir string, cmd *DeployCmd) (string, error)
OpenBrowser func(f *cmdutil.Factory, urlConsoleDeploy string, cmd *DeployCmd) error
CaptureLogs func(execId string, token string, cmd *DeployCmd) error
CheckToken func(f *cmdutil.Factory) error
ReadSettings func(path string) (token.Settings, error)
UploadFiles func(f *cmdutil.Factory, conf *contracts.AzionApplicationOptions, msgs *[]string, pathStatic, bucket string, cmd *DeployCmd, settings token.Settings) error
OpenBrowserFunc func(input string) error
}
func NewDeployCmd ¶
func (*DeployCmd) ExternalRun ¶
Click to show internal directories.
Click to hide internal directories.