Documentation ¶
Index ¶
- func NewConsoleEventID(context, namespace, console string, time time.Time) string
- type CommonEvent
- type ConsoleAttachEvent
- type ConsoleAttachSpec
- type ConsoleAuthoriseEvent
- type ConsoleAuthoriseSpec
- type ConsoleRequestEvent
- type ConsoleRequestSpec
- type ConsoleStartEvent
- type ConsoleStartSpec
- type ConsoleTerminatedEvent
- type ConsoleTerminatedSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonEvent ¶
type CommonEvent struct { Version string `json:"apiVersion"` Kind string `json:"kind"` Event string `json:"event"` ObservedAt time.Time `json:"observed_at"` Id string `json:"id"` }
func (CommonEvent) EventKind ¶
func (e CommonEvent) EventKind() string
type ConsoleAttachEvent ¶
type ConsoleAttachEvent struct { CommonEvent `json:",inline"` Spec ConsoleAttachSpec `json:"spec"` }
type ConsoleAttachSpec ¶
type ConsoleAuthoriseEvent ¶
type ConsoleAuthoriseEvent struct { CommonEvent `json:",inline"` Spec ConsoleAuthoriseSpec `json:"spec"` }
type ConsoleAuthoriseSpec ¶
type ConsoleAuthoriseSpec struct {
Username string `json:"username"`
}
type ConsoleRequestEvent ¶
type ConsoleRequestEvent struct { CommonEvent `json:",inline"` Spec ConsoleRequestSpec `json:"spec"` }
type ConsoleRequestSpec ¶
type ConsoleRequestSpec struct { Reason string `json:"reason"` Username string `json:"username"` // Context is used to denote the cluster name, Context string `json:"context"` Namespace string `json:"namespace"` ConsoleTemplate string `json:"console_template"` Console string `json:"console"` Timestamp time.Time `json:"timestamp"` }
type ConsoleStartEvent ¶
type ConsoleStartEvent struct { CommonEvent `json:",inline"` Spec ConsoleStartSpec `json:"spec"` }
type ConsoleStartSpec ¶
type ConsoleStartSpec struct {
Job string `json:"job"`
}
type ConsoleTerminatedEvent ¶
type ConsoleTerminatedEvent struct { CommonEvent `json:",inline"` Spec ConsoleTerminatedSpec `json:"spec"` }
type ConsoleTerminatedSpec ¶
Click to show internal directories.
Click to hide internal directories.