hookevent

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllHookEvents = make(map[string]*HookEvent)

	EventDeployment = &HookEvent{
		Key:         "deployment",
		Name:        "部署",
		Description: "部署相关动作行为,如创建、上下线、实例数量调整等",
	}

	EventService = &HookEvent{
		Key:         "service",
		Name:        "负载均衡",
		Description: "负载均衡相关动作行为,如创建、上下线等",
	}

	EventMember = &HookEvent{
		Key:         "member",
		Name:        "成员",
		Description: "项目/部门成员增删或权限变更",
	}
)

Functions

func Registry

func Registry(event *HookEvent)

Types

type HookEvent

type HookEvent struct {
	Key         string `json:"key"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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