audit

package
v0.5.0-dev26 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_domain_audit_event_proto protoreflect.FileDescriptor
View Source
var File_api_domain_audit_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HumanReadableEvent

type HumanReadableEvent struct {

	// the timestamp when the event occurred
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,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) GetTimestamp added in v0.4.4

func (x *HumanReadableEvent) GetTimestamp() *timestamppb.Timestamp

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.

type UserOverview added in v0.3.6

type UserOverview struct {

	// the name of the user
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// the email of the user
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// roles of the user in general
	Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"`
	// tenants the user has access to including his role
	Tenants string `protobuf:"bytes,4,opt,name=tenants,proto3" json:"tenants,omitempty"`
	// clusters the user has access to including his role
	Clusters string `protobuf:"bytes,5,opt,name=clusters,proto3" json:"clusters,omitempty"`
	// human readable description of the user life-cycle
	Details string `protobuf:"bytes,6,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

human readable representation of a user for auditing

func (*UserOverview) Descriptor deprecated added in v0.3.6

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

Deprecated: Use UserOverview.ProtoReflect.Descriptor instead.

func (*UserOverview) GetClusters added in v0.3.6

func (x *UserOverview) GetClusters() string

func (*UserOverview) GetDetails added in v0.3.6

func (x *UserOverview) GetDetails() string

func (*UserOverview) GetEmail added in v0.3.6

func (x *UserOverview) GetEmail() string

func (*UserOverview) GetName added in v0.3.6

func (x *UserOverview) GetName() string

func (*UserOverview) GetRoles added in v0.3.6

func (x *UserOverview) GetRoles() string

func (*UserOverview) GetTenants added in v0.3.6

func (x *UserOverview) GetTenants() string

func (*UserOverview) ProtoMessage added in v0.3.6

func (*UserOverview) ProtoMessage()

func (*UserOverview) ProtoReflect added in v0.3.6

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

func (*UserOverview) Reset added in v0.3.6

func (x *UserOverview) Reset()

func (*UserOverview) String added in v0.3.6

func (x *UserOverview) String() string

func (*UserOverview) Validate added in v0.3.6

func (m *UserOverview) Validate() error

Validate checks the field values on UserOverview 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 (*UserOverview) ValidateAll added in v0.3.6

func (m *UserOverview) ValidateAll() error

ValidateAll checks the field values on UserOverview 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 UserOverviewMultiError, or nil if none found.

type UserOverviewMultiError added in v0.3.6

type UserOverviewMultiError []error

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

func (UserOverviewMultiError) AllErrors added in v0.3.6

func (m UserOverviewMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserOverviewMultiError) Error added in v0.3.6

func (m UserOverviewMultiError) Error() string

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

type UserOverviewValidationError added in v0.3.6

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

UserOverviewValidationError is the validation error returned by UserOverview.Validate if the designated constraints aren't met.

func (UserOverviewValidationError) Cause added in v0.3.6

Cause function returns cause value.

func (UserOverviewValidationError) Error added in v0.3.6

Error satisfies the builtin error interface

func (UserOverviewValidationError) ErrorName added in v0.3.6

func (e UserOverviewValidationError) ErrorName() string

ErrorName returns error name.

func (UserOverviewValidationError) Field added in v0.3.6

Field function returns field value.

func (UserOverviewValidationError) Key added in v0.3.6

Key function returns key value.

func (UserOverviewValidationError) Reason added in v0.3.6

Reason function returns reason value.

Jump to

Keyboard shortcuts

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