executeAlertInfo

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type CommonAlertInfo

type CommonAlertInfo struct {
	Version    string                                           `json:"version,omitempty"`
	Name       string                                           `json:"name,omitempty"`
	Type       string                                           `json:"type,omitempty"`
	Props      map[string]interface{}                           `json:"props,omitempty"`
	State      State                                            `json:"state,omitempty"`
	Operations map[apistructs.OperationKey]apistructs.Operation `json:"operations,omitempty"`
	Data       map[string]interface{}                           `json:"data,omitempty"`
}

type ComponentAlertInfo

type ComponentAlertInfo struct {
	CtxBdl protocol.ContextBundle

	CommonAlertInfo
}

func (*ComponentAlertInfo) GenComponentState

func (i *ComponentAlertInfo) GenComponentState(c *apistructs.Component) error

GenComponentState 获取state

func (*ComponentAlertInfo) Import

func (*ComponentAlertInfo) RenderProtocol

func (*ComponentAlertInfo) SetCtxBundle

func (i *ComponentAlertInfo) SetCtxBundle(b protocol.ContextBundle) error

SetCtxBundle 设置bundle

type PropColumn

type PropColumn struct {
	Label    string `json:"label"`
	ValueKey string `json:"valueKey"`
}

type State

type State struct {
	PipelineDetail *apistructs.PipelineDetailDTO `json:"pipelineDetail"`
	PipelineID     uint64                        `json:"pipelineId"`
	TaskID         uint64                        `json:"taskId"`
}

Jump to

Keyboard shortcuts

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