Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamespacedNameFrom ¶
func NamespacedNameSplit ¶
default/a -> default a default -> default "" -> "","" a/b/c -> a,b NamespacedNameSplit
Types ¶
type ControlMessage ¶
type ControlMessage struct { MessageType `json:"kind"` Content CurrentWatch }
type CurrentWatch ¶
type InvolvedObject ¶
type MessageContent ¶
type MessageTarget ¶
type MessageTarget struct { Message NotifyMessage Users []uint }
type MessageType ¶
type MessageType string
const ( Approve MessageType = "approve" // 审批 Message MessageType = "message" // 消息 Changed MessageType = "objectChanged" // k8s 对象变动 Alert MessageType = "alert" // 告警消息 )
type NotifyMessage ¶
type NotifyMessage struct { MessageType EventKind InvolvedObject *InvolvedObject Content interface{} }
type Options ¶
type Options struct {
Addr string `json:"addr" description:"msgbus host"`
}
func DefaultMsgbusOptions ¶
func DefaultMsgbusOptions() *Options
type ResourceType ¶
type ResourceType string
const ( VirtualSpace ResourceType = "virtualSpace" Tenant ResourceType = "tenant" Project ResourceType = "project" Environment ResourceType = "environment" Application ResourceType = "application" Cluster ResourceType = "cluster" User ResourceType = "user" TenantResourceQuota ResourceType = "tenant-resource-quota" )
Click to show internal directories.
Click to hide internal directories.