types

package
v1.3.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 1. FetchUpdate
	OUT_OF_DATE     = "out-of-date"
	READY_TO_UPDATE = "ready-to-update"
	UP_TO_DATE      = "up-to-date"

	// 2. Install
	FETCHING    = "fetching"
	DOWNLOADING = "downloading"
	DECOMPRESS  = "decompressing"
	INSTALLING  = "installing"
	RESTARTING  = "restarting"
	MIGRATION   = "migration"
	OTHER       = "other"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextType

type ContextType string
const (
	Trigger ContextType = "trigger_type"
)

type STATUS_MSG

type STATUS_MSG string

type TriggerType

type TriggerType string
const (
	HTTP_REQUEST TriggerType = "http-request-trigger"
	CRON_JOB     TriggerType = "cron-job-trigger"
	INSTALL      TriggerType = "install-trigger"
)

TODO: 考虑重构这里 这里是设计是因为最早业务是前端不同方式调用下,状态要有不同的变化,所以区分不同的样式然后来做不同的处理。 但是随着 @ETWang1991 的变化,现在不同的调用方式,前端都看不见,考虑删除这里来减少复杂度。

Jump to

Keyboard shortcuts

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