appeditor

package
v0.0.0-...-e9c30ff Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEditor

type AppEditor struct {
	// contains filtered or unexported fields
}

func New

func New(log *log.Logger, appRunner *apprunner.AppRunner, paymentAccountPool *payment.PaymentAccountPool) *AppEditor

New returns a new initialized AppEditor

func (*AppEditor) CloneApplication

func (*AppEditor) CloneApplication(ctxCtx context.Context, applicationID string, destinationApplicationID string, clonedBy auth.User) error

func (*AppEditor) CloneApplicationFile

func (*AppEditor) CloneApplicationFile(ctxCtx context.Context, applicationID, fileName, destinationApplicationID, destinationFileName string, clonedBy auth.User) error

func (*AppEditor) CreateApplicationZIP

func (*AppEditor) CreateApplicationZIP(ctxCtx context.Context, applicationID string, makeOpaque bool) ([]byte, error)

func (*AppEditor) DeleteApplication

func (e *AppEditor) DeleteApplication(ctxCtx context.Context, applicationID string) error

DeleteApplication fully deletes an application including all its past versions

func (*AppEditor) DeleteApplicationFile

func (*AppEditor) DeleteApplicationFile(ctxCtx context.Context, applicationID, fileName string, deletedBy auth.User) error

func (*AppEditor) ImportApplicationFilesFromZIP

func (e *AppEditor) ImportApplicationFilesFromZIP(ctxCtx context.Context, applicationID string, zipContents []byte, deleteFilesNotInArchive bool, restoreEditMessages bool, importedBy auth.User) error

func (*AppEditor) UpdateApplication

func (*AppEditor) UpdateApplication(ctxCtx context.Context, applicationID string, updatedBy auth.User, editMessage string, allowLaunching, allowFileEditing, autorun bool) error

func (*AppEditor) UpdateApplicationFile

func (*AppEditor) UpdateApplicationFile(ctxCtx context.Context, applicationID string, fileName string, updatedBy auth.User, fileType string, public bool, content []byte, editMessage string) error

UpdateApplicationFile creates or updates an application file. If a file with the same name had been deleted before, it will be undeleted.

Jump to

Keyboard shortcuts

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