hookevent

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 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:        "Deployment(部署)",
		Description: "Related actions of \"deployment\", such as creation, online and offline, instance number adjustment, etc.",
	}

	EventService = &HookEvent{
		Key:         "service",
		Name:        "Service(负载均衡)",
		Description: "Related actions of \"Service\", such as the above online, offline, etc.",
	}

	EventIngress = &HookEvent{
		Key:         "ingress",
		Name:        "Ingress",
		Description: "Related actions of \"Ingress\", such as the above online, offline, etc.",
	}

	EventMember = &HookEvent{
		Key:         "member",
		Name:        "Member(成员)",
		Description: "Monitor the additions, deletions, or changes in permissions of members of a application or namespace.",
	}
)

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