executeAlertInfo

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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 State

type State struct {
	PipelineID uint64 `json:"pipelineId"`
}

Jump to

Keyboard shortcuts

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