deploy

package
v0.0.0-...-fd0ea70 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Path          string
	Auto          bool
	NoPrompt      bool
	SkipBuild     bool
	SkipFramework bool
	ProjectConf   string
	Sync          bool
	Env           string
	FunctionIds   map[string]contracts.AzionJsonDataFunction
	WriteBucket   bool
)
View Source
var (
	PathStatic = ".edge/storage"
	Retries    int64
)

Functions

func NewCmd

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

func NewCobraCmd

func NewCobraCmd(deploy *DeployCmd) *cobra.Command

func PurgeForUpdatedFiles

func PurgeForUpdatedFiles(cmd *DeployCmd, workload apiworkload.WorkloadResponse, confPath string, msgs *[]string) error

func Worker

func Worker(jobs <-chan contracts.FileOps, results chan<- error, currentFile *int64, clientUpload *storage.Client, conf *contracts.AzionApplicationOptions, 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

func WriteManifest

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

Types

type Clients

type Clients struct {
	Function    *apiFunction.Client
	Application *apiApplications.Client
	Workload    *apiWorkload.Client
	Origin      *apiOrigin.Client
	Bucket      *apiStorage.Client
	Storage     *apiStorage.Client
}

func NewClients

func NewClients(f *cmdutil.Factory) *Clients

type Data

type Data struct {
	Name string `json:"name"`
	Hash string `json:"hash"`
}

func ReadFilesEdgeStorage

func ReadFilesEdgeStorage() ([]Data, error)

func ReadFilesJSONL

func ReadFilesJSONL() ([]Data, error)

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

	WriteManifest func(manifest *contracts.ManifestV4, pathMan 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
	// contains filtered or unexported fields
}

func NewDeployCmd

func NewDeployCmd(f *cmdutil.Factory) *DeployCmd

func (*DeployCmd) ExternalRun

func (cmd *DeployCmd) ExternalRun(f *cmdutil.Factory, configPath string, env string, shouldSync, auto, skipBuild, writeBucket, skipFramework bool) error

func (*DeployCmd) PurgeUrls

func (cmd *DeployCmd) PurgeUrls(domain []string, path string) error

func (*DeployCmd) PurgeWildcard

func (cmd *DeployCmd) PurgeWildcard(domain []string, path string) error

func (*DeployCmd) Run

func (cmd *DeployCmd) Run(f *cmdutil.Factory) error

Jump to

Keyboard shortcuts

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