common

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ScenarioKey = "project-runtime"

	ProjectRuntimeFilter = "filter"

	DeleteOp = "delete"
	//DeployReleaseOp = "deploy-release"
	ReStartOp = "restart"

	// get all involved app
	ALLINVOLVEAPP = "allInvolveApp"

	FilterApp             = "app"
	FilterRuntimeStatus   = "runtimeStatus"
	FilterDeployStatus    = "deploymentStatus"
	FilterDeployOrderName = "deploymentOrderName"
	FilterDeployTime      = "deployTime"

	FilterInputCondition = "title"

	FrontedStatusSuccess    = "success"
	FrontedStatusDefault    = "default"
	FrontedStatusError      = "error"
	FrontedStatusWarning    = "warning"
	FrontedStatusProcessing = "processing"

	FrontedIconLoading   = "default_loading"
	FrontedIconBreathing = "default_breathing"
)

Variables

View Source
var (
	PtrRequiredErr     = errors.New("b must be a pointer")
	NothingToBeDoneErr = errors.New("nothing to be done")
)

Functions

func ExitsWithoutCase

func ExitsWithoutCase(s, sub string) bool

func Transfer

func Transfer(a, b interface{}) error

Transfer transfer a to b with json, kind of b must be pointer

Types

type Operation

type Operation struct {
	JumpOut bool                   `json:"jumpOut"`
	Target  string                 `json:"target"`
	Query   map[string]interface{} `json:"query"`
	Params  map[string]interface{} `json:"params"`
}

Jump to

Keyboard shortcuts

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