Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Login ¶
type Login struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // This is where you can define // your own custom spec Spec LoginSpec `json:"spec,omitempty"` }
Login is a top-level type
type LoginAction ¶
type LoginAction string
const ( LoginIn LoginAction = "LoginIn" Register LoginAction = "Register" LoginOut LoginAction = "LoginOut" )
type LoginList ¶
type LoginList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `son:"metadata,omitempty"` Items []Login `json:"items"` }
LoginList contains a list of User
type LoginSpec ¶
type LoginSpec struct { // Source IP of client SourceIP string `json:"sourceIP"` // User info User v1.User `json:"user"` //Action Action LoginAction `json:"action"` // Successful login attempt or not Success bool `json:"success"` // States failed login attempt reason Reason string `json:"reason"` }
LoginSpec spec
Click to show internal directories.
Click to hide internal directories.