audit

package
v0.3.6-dev19 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_domain_audit_event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HumanReadableEvent

type HumanReadableEvent struct {

	// the timestamp when the event occurred
	When string `protobuf:"bytes,1,opt,name=when,proto3" json:"when,omitempty"`
	// issuer name of the event
	Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// the uuid of the issuer
	IssuerId string `protobuf:"bytes,3,opt,name=issuer_id,json=issuerId,proto3" json:"issuer_id,omitempty"`
	// type of the event as defined in monoskope
	EventType string `protobuf:"bytes,4,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	// human readable description of what happens after the event is applied
	Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

human readable representation of an event for auditing

func (*HumanReadableEvent) Descriptor deprecated

func (*HumanReadableEvent) Descriptor() ([]byte, []int)

Deprecated: Use HumanReadableEvent.ProtoReflect.Descriptor instead.

func (*HumanReadableEvent) GetDetails

func (x *HumanReadableEvent) GetDetails() string

func (*HumanReadableEvent) GetEventType

func (x *HumanReadableEvent) GetEventType() string

func (*HumanReadableEvent) GetIssuer

func (x *HumanReadableEvent) GetIssuer() string

func (*HumanReadableEvent) GetIssuerId

func (x *HumanReadableEvent) GetIssuerId() string

func (*HumanReadableEvent) GetWhen

func (x *HumanReadableEvent) GetWhen() string

func (*HumanReadableEvent) ProtoMessage

func (*HumanReadableEvent) ProtoMessage()

func (*HumanReadableEvent) ProtoReflect

func (x *HumanReadableEvent) ProtoReflect() protoreflect.Message

func (*HumanReadableEvent) Reset

func (x *HumanReadableEvent) Reset()

func (*HumanReadableEvent) String

func (x *HumanReadableEvent) String() string

func (*HumanReadableEvent) Validate

func (m *HumanReadableEvent) Validate() error

Validate checks the field values on HumanReadableEvent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HumanReadableEvent) ValidateAll

func (m *HumanReadableEvent) ValidateAll() error

ValidateAll checks the field values on HumanReadableEvent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HumanReadableEventMultiError, or nil if none found.

type HumanReadableEventMultiError

type HumanReadableEventMultiError []error

HumanReadableEventMultiError is an error wrapping multiple validation errors returned by HumanReadableEvent.ValidateAll() if the designated constraints aren't met.

func (HumanReadableEventMultiError) AllErrors

func (m HumanReadableEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HumanReadableEventMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HumanReadableEventValidationError

type HumanReadableEventValidationError struct {
	// contains filtered or unexported fields
}

HumanReadableEventValidationError is the validation error returned by HumanReadableEvent.Validate if the designated constraints aren't met.

func (HumanReadableEventValidationError) Cause

Cause function returns cause value.

func (HumanReadableEventValidationError) Error

Error satisfies the builtin error interface

func (HumanReadableEventValidationError) ErrorName

ErrorName returns error name.

func (HumanReadableEventValidationError) Field

Field function returns field value.

func (HumanReadableEventValidationError) Key

Key function returns key value.

func (HumanReadableEventValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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