lifecycle

package
v0.0.0-...-f13fc7a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMaxFileSize

func CheckMaxFileSize(context *gin.Context, maxSize int64) error

func Delete

func Delete(req *DeleteReq) (ret gin.H, err error)

func Disable

func Disable(req *DisableReq) (ret gin.H, err error)

func Enable

func Enable(req *EnableReq) (ret gin.H, err error)

func Install

func Install(req *InstallReq) (ret gin.H, err error)

func Uninstall

func Uninstall(req *UninstallReq) (ret gin.H, err error)

func Upload

func Upload(ctx *gin.Context) (ret gin.H, err error)

Types

type DeleteReq

type DeleteReq struct {
	AppUUID string `json:"app_uuid"`
	Version string `json:"version"`
}

type DeleteResponse

type DeleteResponse struct {
	Result bool `json:"result"`
}

type DisableHelper

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

func (*DisableHelper) Disable

func (h *DisableHelper) Disable() error

func (*DisableHelper) DisableAbility

func (h *DisableHelper) DisableAbility() error

func (*DisableHelper) DisableRouter

func (h *DisableHelper) DisableRouter() error

func (*DisableHelper) UpdateDb

func (h *DisableHelper) UpdateDb() error

type DisableReq

type DisableReq struct {
	InstanceUUID string `json:"instance_uuid"`
}

type EnableHelper

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

func (*EnableHelper) Enable

func (h *EnableHelper) Enable() error

func (*EnableHelper) RegisterAbility

func (h *EnableHelper) RegisterAbility() error

func (*EnableHelper) RegisterRouter

func (h *EnableHelper) RegisterRouter() error

func (*EnableHelper) UpdateDb

func (h *EnableHelper) UpdateDb() error

type EnableReq

type EnableReq struct {
	InstanceUUID string `json:"instance_uuid"`
}

type InstallHelper

type InstallHelper struct {
	Cfg *types.PluginConfig
	// contains filtered or unexported fields
}

func (*InstallHelper) Save2Db

func (h *InstallHelper) Save2Db() error

type InstallReq

type InstallReq struct {
	InstanceUUID string `json:"instance_uuid"`
}

type InstallResp

type InstallResp struct {
	*types.Service `json:"service"`
	Apis           []*types.Api     `json:"apis"`
	Abilities      []*types.Ability `json:"abilities"`
}

type UninstallHelper

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

func (*UninstallHelper) RemoveWorkspace

func (h *UninstallHelper) RemoveWorkspace() error

func (*UninstallHelper) Uninstall

func (h *UninstallHelper) Uninstall() error

func (*UninstallHelper) UpdateDb

func (h *UninstallHelper) UpdateDb() error

type UninstallReq

type UninstallReq struct {
	InstanceUUID string `json:"instance_uuid"`
}

type UploadHelper

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

type UploadResponse

type UploadResponse struct {
	AppUUID      string `json:"app_uuid"`
	Version      string `json:"version"`
	InstanceUUID string `json:"instance_uuid"`
	Name         string `json:"name"`
	NewVersion   string `json:"new_version"`
	IsUpgrade    bool   `json:"is_upgrade"`
}

Jump to

Keyboard shortcuts

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