apievents

package
v3.22.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: GPL-3.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToString

func ToString(sqlValue sql.NullString) string

ToString gives string representation of the specified sqlValue

Types

type ActionRepresentation

type ActionRepresentation struct {
	Name  *string `json:"name"`
	Scope *string `json:"scope"`
}

ActionRepresentation struct

type AuditEventsRepresentation

type AuditEventsRepresentation struct {
	Events []AuditRepresentation `json:"events"`
	Count  int                   `json:"count"`
}

AuditEventsRepresentation is the type of the GetEvents response

type AuditRepresentation

type AuditRepresentation struct {
	AuditID         int64  `json:"auditId,omitempty"`
	AuditTime       int64  `json:"auditTime,omitempty"`
	Origin          string `json:"origin,omitempty"`
	RealmName       string `json:"realmName,omitempty"`
	AgentUserID     string `json:"agentUserId,omitempty"`
	AgentUsername   string `json:"agentUsername,omitempty"`
	AgentRealmName  string `json:"agentRealmName,omitempty"`
	UserID          string `json:"userId,omitempty"`
	Username        string `json:"username,omitempty"`
	CtEventType     string `json:"ctEventType,omitempty"`
	KcEventType     string `json:"kcEventType,omitempty"`
	KcOperationType string `json:"kcOperationType,omitempty"`
	ClientID        string `json:"clientId,omitempty"`
	AdditionalInfo  string `json:"additionalInfo,omitempty"`
}

AuditRepresentation elements returned by GetEvents

type DbAuditRepresentation

type DbAuditRepresentation struct {
	AuditID         int64
	AuditTime       int64
	Origin          sql.NullString
	RealmName       sql.NullString
	AgentUserID     sql.NullString
	AgentUsername   sql.NullString
	AgentRealmName  sql.NullString
	UserID          sql.NullString
	Username        sql.NullString
	CtEventType     sql.NullString
	KcEventType     sql.NullString
	KcOperationType sql.NullString
	ClientID        sql.NullString
	AdditionalInfo  sql.NullString
}

DbAuditRepresentation is a non serializable AuditRepresentation read from database

func (*DbAuditRepresentation) ToAuditRepresentation

func (dba *DbAuditRepresentation) ToAuditRepresentation() AuditRepresentation

ToAuditRepresentation converts a DbAuditRepresentation to a serializable value

type EventSummaryRepresentation

type EventSummaryRepresentation struct {
	Origins      []string `json:"origins,omitempty"`
	CtEventTypes []string `json:"ctEventTypes,omitempty"`
}

EventSummaryRepresentation elements returned by GetEventsSummary

Jump to

Keyboard shortcuts

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