auditv1

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 26 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_cerbos_audit_v1_audit_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessLogEntry

type AccessLogEntry struct {
	CallId     string                 `protobuf:"bytes,1,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	Timestamp  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Peer       *Peer                  `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"`
	Metadata   map[string]*MetaValues `` /* 157-byte string literal not displayed */
	Method     string                 `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
	StatusCode uint32                 `protobuf:"varint,6,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessLogEntry) Descriptor deprecated

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

Deprecated: Use AccessLogEntry.ProtoReflect.Descriptor instead.

func (*AccessLogEntry) GetCallId

func (x *AccessLogEntry) GetCallId() string

func (*AccessLogEntry) GetMetadata

func (x *AccessLogEntry) GetMetadata() map[string]*MetaValues

func (*AccessLogEntry) GetMethod

func (x *AccessLogEntry) GetMethod() string

func (*AccessLogEntry) GetPeer

func (x *AccessLogEntry) GetPeer() *Peer

func (*AccessLogEntry) GetStatusCode

func (x *AccessLogEntry) GetStatusCode() uint32

func (*AccessLogEntry) GetTimestamp

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

func (*AccessLogEntry) HashPB added in v0.13.0

func (m *AccessLogEntry) HashPB(hasher hash.Hash, ignore map[string]struct{})

HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash

func (*AccessLogEntry) MarshalToSizedBufferVT

func (m *AccessLogEntry) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AccessLogEntry) MarshalToVT

func (m *AccessLogEntry) MarshalToVT(dAtA []byte) (int, error)

func (*AccessLogEntry) MarshalVT

func (m *AccessLogEntry) MarshalVT() (dAtA []byte, err error)

func (*AccessLogEntry) ProtoMessage

func (*AccessLogEntry) ProtoMessage()

func (*AccessLogEntry) ProtoReflect

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

func (*AccessLogEntry) Reset

func (x *AccessLogEntry) Reset()

func (*AccessLogEntry) SizeVT

func (m *AccessLogEntry) SizeVT() (n int)

func (*AccessLogEntry) String

func (x *AccessLogEntry) String() string

func (*AccessLogEntry) UnmarshalVT

func (m *AccessLogEntry) UnmarshalVT(dAtA []byte) error

func (*AccessLogEntry) Validate

func (m *AccessLogEntry) Validate() error

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

func (m *AccessLogEntry) ValidateAll() error

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

type AccessLogEntryMultiError added in v0.12.0

type AccessLogEntryMultiError []error

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

func (AccessLogEntryMultiError) AllErrors added in v0.12.0

func (m AccessLogEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AccessLogEntryMultiError) Error added in v0.12.0

func (m AccessLogEntryMultiError) Error() string

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

type AccessLogEntryValidationError

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

AccessLogEntryValidationError is the validation error returned by AccessLogEntry.Validate if the designated constraints aren't met.

func (AccessLogEntryValidationError) Cause

Cause function returns cause value.

func (AccessLogEntryValidationError) Error

Error satisfies the builtin error interface

func (AccessLogEntryValidationError) ErrorName

func (e AccessLogEntryValidationError) ErrorName() string

ErrorName returns error name.

func (AccessLogEntryValidationError) Field

Field function returns field value.

func (AccessLogEntryValidationError) Key

Key function returns key value.

func (AccessLogEntryValidationError) Reason

Reason function returns reason value.

type DecisionLogEntry

type DecisionLogEntry struct {
	CallId    string                 `protobuf:"bytes,1,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Peer      *Peer                  `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"`
	// Deprecated. Use method.check_resources.inputs instead.
	Inputs []*v1.CheckInput `protobuf:"bytes,4,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// Deprecated. Use method.check_resources.outputs instead.
	Outputs []*v1.CheckOutput `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// Deprecated. Use method.check_resources.error instead.
	Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
	// Types that are assignable to Method:
	//
	//	*DecisionLogEntry_CheckResources_
	//	*DecisionLogEntry_PlanResources_
	Method isDecisionLogEntry_Method `protobuf_oneof:"method"`
	// contains filtered or unexported fields
}

func (*DecisionLogEntry) Descriptor deprecated

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

Deprecated: Use DecisionLogEntry.ProtoReflect.Descriptor instead.

func (*DecisionLogEntry) GetCallId

func (x *DecisionLogEntry) GetCallId() string

func (*DecisionLogEntry) GetCheckResources added in v0.18.0

func (x *DecisionLogEntry) GetCheckResources() *DecisionLogEntry_CheckResources

func (*DecisionLogEntry) GetError

func (x *DecisionLogEntry) GetError() string

func (*DecisionLogEntry) GetInputs

func (x *DecisionLogEntry) GetInputs() []*v1.CheckInput

func (*DecisionLogEntry) GetMethod added in v0.18.0

func (m *DecisionLogEntry) GetMethod() isDecisionLogEntry_Method

func (*DecisionLogEntry) GetOutputs

func (x *DecisionLogEntry) GetOutputs() []*v1.CheckOutput

func (*DecisionLogEntry) GetPeer

func (x *DecisionLogEntry) GetPeer() *Peer

func (*DecisionLogEntry) GetPlanResources added in v0.18.0

func (x *DecisionLogEntry) GetPlanResources() *DecisionLogEntry_PlanResources

func (*DecisionLogEntry) GetTimestamp

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

func (*DecisionLogEntry) HashPB added in v0.13.0

func (m *DecisionLogEntry) HashPB(hasher hash.Hash, ignore map[string]struct{})

HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash

func (*DecisionLogEntry) MarshalToSizedBufferVT

func (m *DecisionLogEntry) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DecisionLogEntry) MarshalToVT

func (m *DecisionLogEntry) MarshalToVT(dAtA []byte) (int, error)

func (*DecisionLogEntry) MarshalVT

func (m *DecisionLogEntry) MarshalVT() (dAtA []byte, err error)

func (*DecisionLogEntry) ProtoMessage

func (*DecisionLogEntry) ProtoMessage()

func (*DecisionLogEntry) ProtoReflect

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

func (*DecisionLogEntry) Reset

func (x *DecisionLogEntry) Reset()

func (*DecisionLogEntry) SizeVT

func (m *DecisionLogEntry) SizeVT() (n int)

func (*DecisionLogEntry) String

func (x *DecisionLogEntry) String() string

func (*DecisionLogEntry) UnmarshalVT

func (m *DecisionLogEntry) UnmarshalVT(dAtA []byte) error

func (*DecisionLogEntry) Validate

func (m *DecisionLogEntry) Validate() error

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

func (m *DecisionLogEntry) ValidateAll() error

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

type DecisionLogEntryMultiError added in v0.12.0

type DecisionLogEntryMultiError []error

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

func (DecisionLogEntryMultiError) AllErrors added in v0.12.0

func (m DecisionLogEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DecisionLogEntryMultiError) Error added in v0.12.0

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

type DecisionLogEntryValidationError

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

DecisionLogEntryValidationError is the validation error returned by DecisionLogEntry.Validate if the designated constraints aren't met.

func (DecisionLogEntryValidationError) Cause

Cause function returns cause value.

func (DecisionLogEntryValidationError) Error

Error satisfies the builtin error interface

func (DecisionLogEntryValidationError) ErrorName

ErrorName returns error name.

func (DecisionLogEntryValidationError) Field

Field function returns field value.

func (DecisionLogEntryValidationError) Key

Key function returns key value.

func (DecisionLogEntryValidationError) Reason

Reason function returns reason value.

type DecisionLogEntry_CheckResources added in v0.18.0

type DecisionLogEntry_CheckResources struct {
	Inputs  []*v1.CheckInput  `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs []*v1.CheckOutput `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
	Error   string            `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DecisionLogEntry_CheckResources) Descriptor deprecated added in v0.18.0

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

Deprecated: Use DecisionLogEntry_CheckResources.ProtoReflect.Descriptor instead.

func (*DecisionLogEntry_CheckResources) GetError added in v0.18.0

func (*DecisionLogEntry_CheckResources) GetInputs added in v0.18.0

func (x *DecisionLogEntry_CheckResources) GetInputs() []*v1.CheckInput

func (*DecisionLogEntry_CheckResources) GetOutputs added in v0.18.0

func (x *DecisionLogEntry_CheckResources) GetOutputs() []*v1.CheckOutput

func (*DecisionLogEntry_CheckResources) HashPB added in v0.18.0

func (m *DecisionLogEntry_CheckResources) HashPB(hasher hash.Hash, ignore map[string]struct{})

HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash

func (*DecisionLogEntry_CheckResources) MarshalToSizedBufferVT added in v0.18.0

func (m *DecisionLogEntry_CheckResources) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DecisionLogEntry_CheckResources) MarshalToVT added in v0.18.0

func (m *DecisionLogEntry_CheckResources) MarshalToVT(dAtA []byte) (int, error)

func (*DecisionLogEntry_CheckResources) MarshalVT added in v0.18.0

func (m *DecisionLogEntry_CheckResources) MarshalVT() (dAtA []byte, err error)

func (*DecisionLogEntry_CheckResources) ProtoMessage added in v0.18.0

func (*DecisionLogEntry_CheckResources) ProtoMessage()

func (*DecisionLogEntry_CheckResources) ProtoReflect added in v0.18.0

func (*DecisionLogEntry_CheckResources) Reset added in v0.18.0

func (*DecisionLogEntry_CheckResources) SizeVT added in v0.18.0

func (m *DecisionLogEntry_CheckResources) SizeVT() (n int)

func (*DecisionLogEntry_CheckResources) String added in v0.18.0

func (*DecisionLogEntry_CheckResources) UnmarshalVT added in v0.18.0

func (m *DecisionLogEntry_CheckResources) UnmarshalVT(dAtA []byte) error

func (*DecisionLogEntry_CheckResources) Validate added in v0.18.0

func (m *DecisionLogEntry_CheckResources) Validate() error

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

func (m *DecisionLogEntry_CheckResources) ValidateAll() error

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

type DecisionLogEntry_CheckResourcesMultiError added in v0.18.0

type DecisionLogEntry_CheckResourcesMultiError []error

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

func (DecisionLogEntry_CheckResourcesMultiError) AllErrors added in v0.18.0

AllErrors returns a list of validation violation errors.

func (DecisionLogEntry_CheckResourcesMultiError) Error added in v0.18.0

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

type DecisionLogEntry_CheckResourcesValidationError added in v0.18.0

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

DecisionLogEntry_CheckResourcesValidationError is the validation error returned by DecisionLogEntry_CheckResources.Validate if the designated constraints aren't met.

func (DecisionLogEntry_CheckResourcesValidationError) Cause added in v0.18.0

Cause function returns cause value.

func (DecisionLogEntry_CheckResourcesValidationError) Error added in v0.18.0

Error satisfies the builtin error interface

func (DecisionLogEntry_CheckResourcesValidationError) ErrorName added in v0.18.0

ErrorName returns error name.

func (DecisionLogEntry_CheckResourcesValidationError) Field added in v0.18.0

Field function returns field value.

func (DecisionLogEntry_CheckResourcesValidationError) Key added in v0.18.0

Key function returns key value.

func (DecisionLogEntry_CheckResourcesValidationError) Reason added in v0.18.0

Reason function returns reason value.

type DecisionLogEntry_CheckResources_ added in v0.18.0

type DecisionLogEntry_CheckResources_ struct {
	CheckResources *DecisionLogEntry_CheckResources `protobuf:"bytes,7,opt,name=check_resources,json=checkResources,proto3,oneof"`
}

func (*DecisionLogEntry_CheckResources_) MarshalToSizedBufferVT added in v0.18.0

func (m *DecisionLogEntry_CheckResources_) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DecisionLogEntry_CheckResources_) MarshalToVT added in v0.18.0

func (m *DecisionLogEntry_CheckResources_) MarshalToVT(dAtA []byte) (int, error)

func (*DecisionLogEntry_CheckResources_) SizeVT added in v0.18.0

func (m *DecisionLogEntry_CheckResources_) SizeVT() (n int)

type DecisionLogEntry_PlanResources added in v0.18.0

type DecisionLogEntry_PlanResources struct {
	Input  *v1.PlanResourcesInput  `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	Output *v1.PlanResourcesOutput `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	Error  string                  `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DecisionLogEntry_PlanResources) Descriptor deprecated added in v0.18.0

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

Deprecated: Use DecisionLogEntry_PlanResources.ProtoReflect.Descriptor instead.

func (*DecisionLogEntry_PlanResources) GetError added in v0.18.0

func (x *DecisionLogEntry_PlanResources) GetError() string

func (*DecisionLogEntry_PlanResources) GetInput added in v0.18.0

func (*DecisionLogEntry_PlanResources) GetOutput added in v0.18.0

func (*DecisionLogEntry_PlanResources) HashPB added in v0.18.0

func (m *DecisionLogEntry_PlanResources) HashPB(hasher hash.Hash, ignore map[string]struct{})

HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash

func (*DecisionLogEntry_PlanResources) MarshalToSizedBufferVT added in v0.18.0

func (m *DecisionLogEntry_PlanResources) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DecisionLogEntry_PlanResources) MarshalToVT added in v0.18.0

func (m *DecisionLogEntry_PlanResources) MarshalToVT(dAtA []byte) (int, error)

func (*DecisionLogEntry_PlanResources) MarshalVT added in v0.18.0

func (m *DecisionLogEntry_PlanResources) MarshalVT() (dAtA []byte, err error)

func (*DecisionLogEntry_PlanResources) ProtoMessage added in v0.18.0

func (*DecisionLogEntry_PlanResources) ProtoMessage()

func (*DecisionLogEntry_PlanResources) ProtoReflect added in v0.18.0

func (*DecisionLogEntry_PlanResources) Reset added in v0.18.0

func (x *DecisionLogEntry_PlanResources) Reset()

func (*DecisionLogEntry_PlanResources) SizeVT added in v0.18.0

func (m *DecisionLogEntry_PlanResources) SizeVT() (n int)

func (*DecisionLogEntry_PlanResources) String added in v0.18.0

func (*DecisionLogEntry_PlanResources) UnmarshalVT added in v0.18.0

func (m *DecisionLogEntry_PlanResources) UnmarshalVT(dAtA []byte) error

func (*DecisionLogEntry_PlanResources) Validate added in v0.18.0

func (m *DecisionLogEntry_PlanResources) Validate() error

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

func (m *DecisionLogEntry_PlanResources) ValidateAll() error

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

type DecisionLogEntry_PlanResourcesMultiError added in v0.18.0

type DecisionLogEntry_PlanResourcesMultiError []error

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

func (DecisionLogEntry_PlanResourcesMultiError) AllErrors added in v0.18.0

AllErrors returns a list of validation violation errors.

func (DecisionLogEntry_PlanResourcesMultiError) Error added in v0.18.0

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

type DecisionLogEntry_PlanResourcesValidationError added in v0.18.0

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

DecisionLogEntry_PlanResourcesValidationError is the validation error returned by DecisionLogEntry_PlanResources.Validate if the designated constraints aren't met.

func (DecisionLogEntry_PlanResourcesValidationError) Cause added in v0.18.0

Cause function returns cause value.

func (DecisionLogEntry_PlanResourcesValidationError) Error added in v0.18.0

Error satisfies the builtin error interface

func (DecisionLogEntry_PlanResourcesValidationError) ErrorName added in v0.18.0

ErrorName returns error name.

func (DecisionLogEntry_PlanResourcesValidationError) Field added in v0.18.0

Field function returns field value.

func (DecisionLogEntry_PlanResourcesValidationError) Key added in v0.18.0

Key function returns key value.

func (DecisionLogEntry_PlanResourcesValidationError) Reason added in v0.18.0

Reason function returns reason value.

type DecisionLogEntry_PlanResources_ added in v0.18.0

type DecisionLogEntry_PlanResources_ struct {
	PlanResources *DecisionLogEntry_PlanResources `protobuf:"bytes,8,opt,name=plan_resources,json=planResources,proto3,oneof"`
}

func (*DecisionLogEntry_PlanResources_) MarshalToSizedBufferVT added in v0.18.0

func (m *DecisionLogEntry_PlanResources_) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DecisionLogEntry_PlanResources_) MarshalToVT added in v0.18.0

func (m *DecisionLogEntry_PlanResources_) MarshalToVT(dAtA []byte) (int, error)

func (*DecisionLogEntry_PlanResources_) SizeVT added in v0.18.0

func (m *DecisionLogEntry_PlanResources_) SizeVT() (n int)

type MetaValues

type MetaValues struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*MetaValues) Descriptor deprecated

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

Deprecated: Use MetaValues.ProtoReflect.Descriptor instead.

func (*MetaValues) GetValues

func (x *MetaValues) GetValues() []string

func (*MetaValues) HashPB added in v0.13.0

func (m *MetaValues) HashPB(hasher hash.Hash, ignore map[string]struct{})

HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash

func (*MetaValues) MarshalToSizedBufferVT

func (m *MetaValues) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MetaValues) MarshalToVT

func (m *MetaValues) MarshalToVT(dAtA []byte) (int, error)

func (*MetaValues) MarshalVT

func (m *MetaValues) MarshalVT() (dAtA []byte, err error)

func (*MetaValues) ProtoMessage

func (*MetaValues) ProtoMessage()

func (*MetaValues) ProtoReflect

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

func (*MetaValues) Reset

func (x *MetaValues) Reset()

func (*MetaValues) SizeVT

func (m *MetaValues) SizeVT() (n int)

func (*MetaValues) String

func (x *MetaValues) String() string

func (*MetaValues) UnmarshalVT

func (m *MetaValues) UnmarshalVT(dAtA []byte) error

func (*MetaValues) Validate

func (m *MetaValues) Validate() error

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

func (m *MetaValues) ValidateAll() error

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

type MetaValuesMultiError added in v0.12.0

type MetaValuesMultiError []error

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

func (MetaValuesMultiError) AllErrors added in v0.12.0

func (m MetaValuesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MetaValuesMultiError) Error added in v0.12.0

func (m MetaValuesMultiError) Error() string

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

type MetaValuesValidationError

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

MetaValuesValidationError is the validation error returned by MetaValues.Validate if the designated constraints aren't met.

func (MetaValuesValidationError) Cause

func (e MetaValuesValidationError) Cause() error

Cause function returns cause value.

func (MetaValuesValidationError) Error

Error satisfies the builtin error interface

func (MetaValuesValidationError) ErrorName

func (e MetaValuesValidationError) ErrorName() string

ErrorName returns error name.

func (MetaValuesValidationError) Field

Field function returns field value.

func (MetaValuesValidationError) Key

Key function returns key value.

func (MetaValuesValidationError) Reason

func (e MetaValuesValidationError) Reason() string

Reason function returns reason value.

type Peer

type Peer struct {
	Address      string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	AuthInfo     string `protobuf:"bytes,2,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"`
	UserAgent    string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	ForwardedFor string `protobuf:"bytes,4,opt,name=forwarded_for,json=forwardedFor,proto3" json:"forwarded_for,omitempty"`
	// contains filtered or unexported fields
}

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAddress

func (x *Peer) GetAddress() string

func (*Peer) GetAuthInfo

func (x *Peer) GetAuthInfo() string

func (*Peer) GetForwardedFor

func (x *Peer) GetForwardedFor() string

func (*Peer) GetUserAgent

func (x *Peer) GetUserAgent() string

func (*Peer) HashPB added in v0.13.0

func (m *Peer) HashPB(hasher hash.Hash, ignore map[string]struct{})

HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash

func (*Peer) MarshalToSizedBufferVT

func (m *Peer) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Peer) MarshalToVT

func (m *Peer) MarshalToVT(dAtA []byte) (int, error)

func (*Peer) MarshalVT

func (m *Peer) MarshalVT() (dAtA []byte, err error)

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) SizeVT

func (m *Peer) SizeVT() (n int)

func (*Peer) String

func (x *Peer) String() string

func (*Peer) UnmarshalVT

func (m *Peer) UnmarshalVT(dAtA []byte) error

func (*Peer) Validate

func (m *Peer) Validate() error

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

func (m *Peer) ValidateAll() error

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

type PeerMultiError added in v0.12.0

type PeerMultiError []error

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

func (PeerMultiError) AllErrors added in v0.12.0

func (m PeerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeerMultiError) Error added in v0.12.0

func (m PeerMultiError) Error() string

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

type PeerValidationError

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

PeerValidationError is the validation error returned by Peer.Validate if the designated constraints aren't met.

func (PeerValidationError) Cause

func (e PeerValidationError) Cause() error

Cause function returns cause value.

func (PeerValidationError) Error

func (e PeerValidationError) Error() string

Error satisfies the builtin error interface

func (PeerValidationError) ErrorName

func (e PeerValidationError) ErrorName() string

ErrorName returns error name.

func (PeerValidationError) Field

func (e PeerValidationError) Field() string

Field function returns field value.

func (PeerValidationError) Key

func (e PeerValidationError) Key() bool

Key function returns key value.

func (PeerValidationError) Reason

func (e PeerValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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