Documentation ¶
Index ¶
- type AppEditor
- func (*AppEditor) CloneApplication(ctxCtx context.Context, applicationID string, destinationApplicationID string, ...) error
- func (*AppEditor) CloneApplicationFile(ctxCtx context.Context, ...) error
- func (*AppEditor) CreateApplicationZIP(ctxCtx context.Context, applicationID string, makeOpaque bool) ([]byte, error)
- func (e *AppEditor) DeleteApplication(ctxCtx context.Context, applicationID string) error
- func (*AppEditor) DeleteApplicationFile(ctxCtx context.Context, applicationID, fileName string, deletedBy auth.User) error
- func (e *AppEditor) ImportApplicationFilesFromZIP(ctxCtx context.Context, applicationID string, zipContents []byte, ...) error
- func (*AppEditor) UpdateApplication(ctxCtx context.Context, applicationID string, updatedBy auth.User, ...) error
- func (*AppEditor) UpdateApplicationFile(ctxCtx context.Context, applicationID string, fileName string, ...) error
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) CloneApplicationFile ¶
func (*AppEditor) CreateApplicationZIP ¶
func (*AppEditor) DeleteApplication ¶
DeleteApplication fully deletes an application including all its past versions
func (*AppEditor) DeleteApplicationFile ¶
func (*AppEditor) ImportApplicationFilesFromZIP ¶
func (*AppEditor) UpdateApplication ¶
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.
Click to show internal directories.
Click to hide internal directories.