v1

package
v0.0.0-...-bd184db Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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