Documentation
¶
Index ¶
- Variables
- func NewCmd(f *cmdutil.Factory) *cobra.Command
- func NewCobraCmd(deploy *DeployCmd) *cobra.Command
- func PurgeForUpdatedFiles(cmd *DeployCmd, domain apidom.DomainResponse, confPath string, msgs *[]string) error
- func Worker(jobs <-chan contracts.FileOps, results chan<- error, currentFile *int64, ...)
- type Clients
- type Data
- type DeployCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Path string Auto bool NoPrompt bool SkipBuild bool ProjectConf string Sync bool Env string )
View Source
var ( PathStatic = ".edge/storage" Jobs chan contracts.FileOps Retries int64 )
Functions ¶
func NewCobraCmd ¶
func PurgeForUpdatedFiles ¶
func Worker ¶
func Worker(jobs <-chan contracts.FileOps, results chan<- error, currentFile *int64, clientUpload *storage.Client, conf *contracts.AzionApplicationOptionsV3, bucket string)
worker reads the range of jobs and uploads the file, if there is an error during upload, we returning it through the results channel
Types ¶
type Clients ¶
type Clients struct {
EdgeFunction *apiEdgeFunction.Client
EdgeApplication *apiEdgeApplications.Client
Domain *apiDomain.Client
Origin *apiOrigin.Client
Bucket *apiStorage.Client
Storage *apiStorage.Client
}
func NewClients ¶
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.AzionApplicationOptionsV3, error)
WriteAzionJsonContent func(conf *contracts.AzionApplicationOptionsV3, confConf string) error
EnvLoader func(path string) ([]string, 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
}
func NewDeployCmd ¶
func (*DeployCmd) ExternalRun ¶
func (*DeployCmd) PurgeWildcard ¶
Click to show internal directories.
Click to hide internal directories.