auditv1

package
v0.0.0-...-9a5b211 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package auditv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AuditAPI_GetEvents_FullMethodName = "/datalift.audit.v1.AuditAPI/GetEvents"
	AuditAPI_GetEvent_FullMethodName  = "/datalift.audit.v1.AuditAPI/GetEvent"
)

Variables

View Source
var AuditAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "datalift.audit.v1.AuditAPI",
	HandlerType: (*AuditAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetEvents",
			Handler:    _AuditAPI_GetEvents_Handler,
		},
		{
			MethodName: "GetEvent",
			Handler:    _AuditAPI_GetEvent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "audit/v1/audit.proto",
}

AuditAPI_ServiceDesc is the grpc.ServiceDesc for AuditAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_audit_v1_audit_proto protoreflect.FileDescriptor

Functions

func RegisterAuditAPIHandler

func RegisterAuditAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuditAPIHandler registers the http handlers for service AuditAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuditAPIHandlerClient

func RegisterAuditAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuditAPIClient) error

RegisterAuditAPIHandlerClient registers the http handlers for service AuditAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuditAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuditAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuditAPIClient" to call the correct interceptors.

func RegisterAuditAPIHandlerFromEndpoint

func RegisterAuditAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuditAPIHandlerFromEndpoint is same as RegisterAuditAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuditAPIHandlerServer

func RegisterAuditAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuditAPIServer) error

RegisterAuditAPIHandlerServer registers the http handlers for service AuditAPI to "mux". UnaryRPC :call AuditAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuditAPIHandlerFromEndpoint instead.

func RegisterAuditAPIServer

func RegisterAuditAPIServer(s grpc.ServiceRegistrar, srv AuditAPIServer)

Types

type AuditAPIClient

type AuditAPIClient interface {
	GetEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (*GetEventsResponse, error)
	GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*GetEventResponse, error)
}

AuditAPIClient is the client API for AuditAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAuditAPIClient

func NewAuditAPIClient(cc grpc.ClientConnInterface) AuditAPIClient

type AuditAPIServer

type AuditAPIServer interface {
	GetEvents(context.Context, *GetEventsRequest) (*GetEventsResponse, error)
	GetEvent(context.Context, *GetEventRequest) (*GetEventResponse, error)
}

AuditAPIServer is the server API for AuditAPI service. All implementations should embed UnimplementedAuditAPIServer for forward compatibility

type Event

type Event struct {

	// When the event happened.
	OccurredAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"`
	// Types that are assignable to EventType:
	//
	//	*Event_Event
	EventType isEvent_EventType `protobuf_oneof:"event_type"`
	// The event id.
	Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetEvent

func (x *Event) GetEvent() *RequestEvent

func (*Event) GetEventType

func (m *Event) GetEventType() isEvent_EventType

func (*Event) GetId

func (x *Event) GetId() int64

func (*Event) GetOccurredAt

func (x *Event) GetOccurredAt() *timestamppb.Timestamp

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

func (*Event) Validate

func (m *Event) Validate() error

Validate checks the field values on Event 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 (*Event) ValidateAll

func (m *Event) ValidateAll() error

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

type EventMultiError

type EventMultiError []error

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

func (EventMultiError) AllErrors

func (m EventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventMultiError) Error

func (m EventMultiError) Error() string

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

type EventValidationError

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

EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.

func (EventValidationError) Cause

func (e EventValidationError) Cause() error

Cause function returns cause value.

func (EventValidationError) Error

func (e EventValidationError) Error() string

Error satisfies the builtin error interface

func (EventValidationError) ErrorName

func (e EventValidationError) ErrorName() string

ErrorName returns error name.

func (EventValidationError) Field

func (e EventValidationError) Field() string

Field function returns field value.

func (EventValidationError) Key

func (e EventValidationError) Key() bool

Key function returns key value.

func (EventValidationError) Reason

func (e EventValidationError) Reason() string

Reason function returns reason value.

type Event_Event

type Event_Event struct {
	Event *RequestEvent `protobuf:"bytes,2,opt,name=event,proto3,oneof"`
}

type GetEventRequest

type GetEventRequest struct {
	EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventRequest) Descriptor deprecated

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

Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.

func (*GetEventRequest) GetEventId

func (x *GetEventRequest) GetEventId() int64

func (*GetEventRequest) ProtoMessage

func (*GetEventRequest) ProtoMessage()

func (*GetEventRequest) ProtoReflect

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

func (*GetEventRequest) Reset

func (x *GetEventRequest) Reset()

func (*GetEventRequest) String

func (x *GetEventRequest) String() string

func (*GetEventRequest) Validate

func (m *GetEventRequest) Validate() error

Validate checks the field values on GetEventRequest 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 (*GetEventRequest) ValidateAll

func (m *GetEventRequest) ValidateAll() error

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

type GetEventRequestMultiError

type GetEventRequestMultiError []error

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

func (GetEventRequestMultiError) AllErrors

func (m GetEventRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEventRequestMultiError) Error

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

type GetEventRequestValidationError

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

GetEventRequestValidationError is the validation error returned by GetEventRequest.Validate if the designated constraints aren't met.

func (GetEventRequestValidationError) Cause

Cause function returns cause value.

func (GetEventRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEventRequestValidationError) ErrorName

func (e GetEventRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetEventRequestValidationError) Field

Field function returns field value.

func (GetEventRequestValidationError) Key

Key function returns key value.

func (GetEventRequestValidationError) Reason

Reason function returns reason value.

type GetEventResponse

type GetEventResponse struct {
	Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventResponse) Descriptor deprecated

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

Deprecated: Use GetEventResponse.ProtoReflect.Descriptor instead.

func (*GetEventResponse) GetEvent

func (x *GetEventResponse) GetEvent() *Event

func (*GetEventResponse) ProtoMessage

func (*GetEventResponse) ProtoMessage()

func (*GetEventResponse) ProtoReflect

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

func (*GetEventResponse) Reset

func (x *GetEventResponse) Reset()

func (*GetEventResponse) String

func (x *GetEventResponse) String() string

func (*GetEventResponse) Validate

func (m *GetEventResponse) Validate() error

Validate checks the field values on GetEventResponse 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 (*GetEventResponse) ValidateAll

func (m *GetEventResponse) ValidateAll() error

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

type GetEventResponseMultiError

type GetEventResponseMultiError []error

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

func (GetEventResponseMultiError) AllErrors

func (m GetEventResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEventResponseMultiError) Error

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

type GetEventResponseValidationError

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

GetEventResponseValidationError is the validation error returned by GetEventResponse.Validate if the designated constraints aren't met.

func (GetEventResponseValidationError) Cause

Cause function returns cause value.

func (GetEventResponseValidationError) Error

Error satisfies the builtin error interface

func (GetEventResponseValidationError) ErrorName

ErrorName returns error name.

func (GetEventResponseValidationError) Field

Field function returns field value.

func (GetEventResponseValidationError) Key

Key function returns key value.

func (GetEventResponseValidationError) Reason

Reason function returns reason value.

type GetEventsRequest

type GetEventsRequest struct {

	// Types that are assignable to Window:
	//
	//	*GetEventsRequest_Range
	//	*GetEventsRequest_Since
	Window isGetEventsRequest_Window `protobuf_oneof:"window"`
	// Currently page_token specifies the page number you wish to request.
	// The rationale behind the naming is we might changes this to a cursor implentation
	// in the future and did not want to break existing implementations of the API.
	// https://cloud.google.com/apis/design/design_patterns#list_pagination
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	Limit     uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventsRequest) Descriptor deprecated

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

Deprecated: Use GetEventsRequest.ProtoReflect.Descriptor instead.

func (*GetEventsRequest) GetLimit

func (x *GetEventsRequest) GetLimit() uint64

func (*GetEventsRequest) GetPageToken

func (x *GetEventsRequest) GetPageToken() string

func (*GetEventsRequest) GetRange

func (x *GetEventsRequest) GetRange() *TimeRange

func (*GetEventsRequest) GetSince

func (x *GetEventsRequest) GetSince() *durationpb.Duration

func (*GetEventsRequest) GetWindow

func (m *GetEventsRequest) GetWindow() isGetEventsRequest_Window

func (*GetEventsRequest) ProtoMessage

func (*GetEventsRequest) ProtoMessage()

func (*GetEventsRequest) ProtoReflect

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

func (*GetEventsRequest) Reset

func (x *GetEventsRequest) Reset()

func (*GetEventsRequest) String

func (x *GetEventsRequest) String() string

func (*GetEventsRequest) Validate

func (m *GetEventsRequest) Validate() error

Validate checks the field values on GetEventsRequest 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 (*GetEventsRequest) ValidateAll

func (m *GetEventsRequest) ValidateAll() error

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

type GetEventsRequestMultiError

type GetEventsRequestMultiError []error

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

func (GetEventsRequestMultiError) AllErrors

func (m GetEventsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEventsRequestMultiError) Error

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

type GetEventsRequestValidationError

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

GetEventsRequestValidationError is the validation error returned by GetEventsRequest.Validate if the designated constraints aren't met.

func (GetEventsRequestValidationError) Cause

Cause function returns cause value.

func (GetEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetEventsRequestValidationError) Field

Field function returns field value.

func (GetEventsRequestValidationError) Key

Key function returns key value.

func (GetEventsRequestValidationError) Reason

Reason function returns reason value.

type GetEventsRequest_Range

type GetEventsRequest_Range struct {
	Range *TimeRange `protobuf:"bytes,1,opt,name=range,proto3,oneof"`
}

type GetEventsRequest_Since

type GetEventsRequest_Since struct {
	Since *durationpb.Duration `protobuf:"bytes,2,opt,name=since,proto3,oneof"`
}

type GetEventsResponse

type GetEventsResponse struct {
	Events        []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	NextPageToken string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventsResponse) Descriptor deprecated

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

Deprecated: Use GetEventsResponse.ProtoReflect.Descriptor instead.

func (*GetEventsResponse) GetEvents

func (x *GetEventsResponse) GetEvents() []*Event

func (*GetEventsResponse) GetNextPageToken

func (x *GetEventsResponse) GetNextPageToken() string

func (*GetEventsResponse) ProtoMessage

func (*GetEventsResponse) ProtoMessage()

func (*GetEventsResponse) ProtoReflect

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

func (*GetEventsResponse) Reset

func (x *GetEventsResponse) Reset()

func (*GetEventsResponse) String

func (x *GetEventsResponse) String() string

func (*GetEventsResponse) Validate

func (m *GetEventsResponse) Validate() error

Validate checks the field values on GetEventsResponse 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 (*GetEventsResponse) ValidateAll

func (m *GetEventsResponse) ValidateAll() error

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

type GetEventsResponseMultiError

type GetEventsResponseMultiError []error

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

func (GetEventsResponseMultiError) AllErrors

func (m GetEventsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEventsResponseMultiError) Error

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

type GetEventsResponseValidationError

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

GetEventsResponseValidationError is the validation error returned by GetEventsResponse.Validate if the designated constraints aren't met.

func (GetEventsResponseValidationError) Cause

Cause function returns cause value.

func (GetEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetEventsResponseValidationError) Field

Field function returns field value.

func (GetEventsResponseValidationError) Key

Key function returns key value.

func (GetEventsResponseValidationError) Reason

Reason function returns reason value.

type RequestEvent

type RequestEvent struct {

	// What attempted the action.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// The service performing the operation.
	ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// The method being called.
	MethodName string `protobuf:"bytes,3,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	// The type of operation being performed.
	Type v1.ActionType `protobuf:"varint,4,opt,name=type,proto3,enum=datalift.common.v1.ActionType" json:"type,omitempty"`
	// The status of the overall operation.
	Status *status.Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	// The resources touched during the event.
	Resources []*Resource `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"`
	// The API request saved as metadata for the event.
	RequestMetadata *RequestMetadata `protobuf:"bytes,7,opt,name=request_metadata,json=requestMetadata,proto3" json:"request_metadata,omitempty"`
	// The API response saved as metadata for the event.
	ResponseMetadata *ResponseMetadata `protobuf:"bytes,8,opt,name=response_metadata,json=responseMetadata,proto3" json:"response_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestEvent) Descriptor deprecated

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

Deprecated: Use RequestEvent.ProtoReflect.Descriptor instead.

func (*RequestEvent) GetMethodName

func (x *RequestEvent) GetMethodName() string

func (*RequestEvent) GetRequestMetadata

func (x *RequestEvent) GetRequestMetadata() *RequestMetadata

func (*RequestEvent) GetResources

func (x *RequestEvent) GetResources() []*Resource

func (*RequestEvent) GetResponseMetadata

func (x *RequestEvent) GetResponseMetadata() *ResponseMetadata

func (*RequestEvent) GetServiceName

func (x *RequestEvent) GetServiceName() string

func (*RequestEvent) GetStatus

func (x *RequestEvent) GetStatus() *status.Status

func (*RequestEvent) GetType

func (x *RequestEvent) GetType() v1.ActionType

func (*RequestEvent) GetUsername

func (x *RequestEvent) GetUsername() string

func (*RequestEvent) ProtoMessage

func (*RequestEvent) ProtoMessage()

func (*RequestEvent) ProtoReflect

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

func (*RequestEvent) Reset

func (x *RequestEvent) Reset()

func (*RequestEvent) String

func (x *RequestEvent) String() string

func (*RequestEvent) Validate

func (m *RequestEvent) Validate() error

Validate checks the field values on RequestEvent 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 (*RequestEvent) ValidateAll

func (m *RequestEvent) ValidateAll() error

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

type RequestEventMultiError

type RequestEventMultiError []error

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

func (RequestEventMultiError) AllErrors

func (m RequestEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestEventMultiError) Error

func (m RequestEventMultiError) Error() string

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

type RequestEventValidationError

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

RequestEventValidationError is the validation error returned by RequestEvent.Validate if the designated constraints aren't met.

func (RequestEventValidationError) Cause

Cause function returns cause value.

func (RequestEventValidationError) Error

Error satisfies the builtin error interface

func (RequestEventValidationError) ErrorName

func (e RequestEventValidationError) ErrorName() string

ErrorName returns error name.

func (RequestEventValidationError) Field

Field function returns field value.

func (RequestEventValidationError) Key

Key function returns key value.

func (RequestEventValidationError) Reason

Reason function returns reason value.

type RequestMetadata

type RequestMetadata struct {
	Body *anypb.Any `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestMetadata) Descriptor deprecated

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

Deprecated: Use RequestMetadata.ProtoReflect.Descriptor instead.

func (*RequestMetadata) GetBody

func (x *RequestMetadata) GetBody() *anypb.Any

func (*RequestMetadata) ProtoMessage

func (*RequestMetadata) ProtoMessage()

func (*RequestMetadata) ProtoReflect

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

func (*RequestMetadata) Reset

func (x *RequestMetadata) Reset()

func (*RequestMetadata) String

func (x *RequestMetadata) String() string

func (*RequestMetadata) Validate

func (m *RequestMetadata) Validate() error

Validate checks the field values on RequestMetadata 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 (*RequestMetadata) ValidateAll

func (m *RequestMetadata) ValidateAll() error

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

type RequestMetadataMultiError

type RequestMetadataMultiError []error

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

func (RequestMetadataMultiError) AllErrors

func (m RequestMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMetadataMultiError) Error

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

type RequestMetadataValidationError

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

RequestMetadataValidationError is the validation error returned by RequestMetadata.Validate if the designated constraints aren't met.

func (RequestMetadataValidationError) Cause

Cause function returns cause value.

func (RequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (RequestMetadataValidationError) ErrorName

func (e RequestMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (RequestMetadataValidationError) Field

Field function returns field value.

func (RequestMetadataValidationError) Key

Key function returns key value.

func (RequestMetadataValidationError) Reason

Reason function returns reason value.

type Resource

type Resource struct {
	TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	Id      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetId

func (x *Resource) GetId() string

func (*Resource) GetTypeUrl

func (x *Resource) GetTypeUrl() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

func (*Resource) Validate

func (m *Resource) Validate() error

Validate checks the field values on Resource 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 (*Resource) ValidateAll

func (m *Resource) ValidateAll() error

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

type ResourceMultiError

type ResourceMultiError []error

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

func (ResourceMultiError) AllErrors

func (m ResourceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceMultiError) Error

func (m ResourceMultiError) Error() string

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

type ResourceValidationError

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

ResourceValidationError is the validation error returned by Resource.Validate if the designated constraints aren't met.

func (ResourceValidationError) Cause

func (e ResourceValidationError) Cause() error

Cause function returns cause value.

func (ResourceValidationError) Error

func (e ResourceValidationError) Error() string

Error satisfies the builtin error interface

func (ResourceValidationError) ErrorName

func (e ResourceValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceValidationError) Field

func (e ResourceValidationError) Field() string

Field function returns field value.

func (ResourceValidationError) Key

func (e ResourceValidationError) Key() bool

Key function returns key value.

func (ResourceValidationError) Reason

func (e ResourceValidationError) Reason() string

Reason function returns reason value.

type ResponseMetadata

type ResponseMetadata struct {
	Body *anypb.Any `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseMetadata) Descriptor deprecated

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

Deprecated: Use ResponseMetadata.ProtoReflect.Descriptor instead.

func (*ResponseMetadata) GetBody

func (x *ResponseMetadata) GetBody() *anypb.Any

func (*ResponseMetadata) ProtoMessage

func (*ResponseMetadata) ProtoMessage()

func (*ResponseMetadata) ProtoReflect

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

func (*ResponseMetadata) Reset

func (x *ResponseMetadata) Reset()

func (*ResponseMetadata) String

func (x *ResponseMetadata) String() string

func (*ResponseMetadata) Validate

func (m *ResponseMetadata) Validate() error

Validate checks the field values on ResponseMetadata 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 (*ResponseMetadata) ValidateAll

func (m *ResponseMetadata) ValidateAll() error

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

type ResponseMetadataMultiError

type ResponseMetadataMultiError []error

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

func (ResponseMetadataMultiError) AllErrors

func (m ResponseMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResponseMetadataMultiError) Error

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

type ResponseMetadataValidationError

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

ResponseMetadataValidationError is the validation error returned by ResponseMetadata.Validate if the designated constraints aren't met.

func (ResponseMetadataValidationError) Cause

Cause function returns cause value.

func (ResponseMetadataValidationError) Error

Error satisfies the builtin error interface

func (ResponseMetadataValidationError) ErrorName

ErrorName returns error name.

func (ResponseMetadataValidationError) Field

Field function returns field value.

func (ResponseMetadataValidationError) Key

Key function returns key value.

func (ResponseMetadataValidationError) Reason

Reason function returns reason value.

type TimeRange

type TimeRange struct {
	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeRange) Descriptor deprecated

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

Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.

func (*TimeRange) GetEndTime

func (x *TimeRange) GetEndTime() *timestamppb.Timestamp

func (*TimeRange) GetStartTime

func (x *TimeRange) GetStartTime() *timestamppb.Timestamp

func (*TimeRange) ProtoMessage

func (*TimeRange) ProtoMessage()

func (*TimeRange) ProtoReflect

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

func (*TimeRange) Reset

func (x *TimeRange) Reset()

func (*TimeRange) String

func (x *TimeRange) String() string

func (*TimeRange) Validate

func (m *TimeRange) Validate() error

Validate checks the field values on TimeRange 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 (*TimeRange) ValidateAll

func (m *TimeRange) ValidateAll() error

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

type TimeRangeMultiError

type TimeRangeMultiError []error

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

func (TimeRangeMultiError) AllErrors

func (m TimeRangeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TimeRangeMultiError) Error

func (m TimeRangeMultiError) Error() string

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

type TimeRangeValidationError

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

TimeRangeValidationError is the validation error returned by TimeRange.Validate if the designated constraints aren't met.

func (TimeRangeValidationError) Cause

func (e TimeRangeValidationError) Cause() error

Cause function returns cause value.

func (TimeRangeValidationError) Error

func (e TimeRangeValidationError) Error() string

Error satisfies the builtin error interface

func (TimeRangeValidationError) ErrorName

func (e TimeRangeValidationError) ErrorName() string

ErrorName returns error name.

func (TimeRangeValidationError) Field

func (e TimeRangeValidationError) Field() string

Field function returns field value.

func (TimeRangeValidationError) Key

Key function returns key value.

func (TimeRangeValidationError) Reason

func (e TimeRangeValidationError) Reason() string

Reason function returns reason value.

type UnimplementedAuditAPIServer

type UnimplementedAuditAPIServer struct {
}

UnimplementedAuditAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedAuditAPIServer) GetEvent

func (UnimplementedAuditAPIServer) GetEvents

type UnsafeAuditAPIServer

type UnsafeAuditAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeAuditAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuditAPIServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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