Documentation ¶
Overview ¶
Package auditv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuditAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuditAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuditAPIClient) error
- func RegisterAuditAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuditAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuditAPIServer) error
- func RegisterAuditAPIServer(s grpc.ServiceRegistrar, srv AuditAPIServer)
- type AuditAPIClient
- type AuditAPIServer
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetEvent() *RequestEvent
- func (m *Event) GetEventType() isEvent_EventType
- func (x *Event) GetId() int64
- func (x *Event) GetOccurredAt() *timestamppb.Timestamp
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- func (m *Event) Validate() error
- func (m *Event) ValidateAll() error
- type EventMultiError
- type EventValidationError
- type Event_Event
- type GetEventRequest
- func (*GetEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventRequest) GetEventId() int64
- func (*GetEventRequest) ProtoMessage()
- func (x *GetEventRequest) ProtoReflect() protoreflect.Message
- func (x *GetEventRequest) Reset()
- func (x *GetEventRequest) String() string
- func (m *GetEventRequest) Validate() error
- func (m *GetEventRequest) ValidateAll() error
- type GetEventRequestMultiError
- type GetEventRequestValidationError
- func (e GetEventRequestValidationError) Cause() error
- func (e GetEventRequestValidationError) Error() string
- func (e GetEventRequestValidationError) ErrorName() string
- func (e GetEventRequestValidationError) Field() string
- func (e GetEventRequestValidationError) Key() bool
- func (e GetEventRequestValidationError) Reason() string
- type GetEventResponse
- func (*GetEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventResponse) GetEvent() *Event
- func (*GetEventResponse) ProtoMessage()
- func (x *GetEventResponse) ProtoReflect() protoreflect.Message
- func (x *GetEventResponse) Reset()
- func (x *GetEventResponse) String() string
- func (m *GetEventResponse) Validate() error
- func (m *GetEventResponse) ValidateAll() error
- type GetEventResponseMultiError
- type GetEventResponseValidationError
- func (e GetEventResponseValidationError) Cause() error
- func (e GetEventResponseValidationError) Error() string
- func (e GetEventResponseValidationError) ErrorName() string
- func (e GetEventResponseValidationError) Field() string
- func (e GetEventResponseValidationError) Key() bool
- func (e GetEventResponseValidationError) Reason() string
- type GetEventsRequest
- func (*GetEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventsRequest) GetLimit() uint64
- func (x *GetEventsRequest) GetPageToken() string
- func (x *GetEventsRequest) GetRange() *TimeRange
- func (x *GetEventsRequest) GetSince() *durationpb.Duration
- func (m *GetEventsRequest) GetWindow() isGetEventsRequest_Window
- func (*GetEventsRequest) ProtoMessage()
- func (x *GetEventsRequest) ProtoReflect() protoreflect.Message
- func (x *GetEventsRequest) Reset()
- func (x *GetEventsRequest) String() string
- func (m *GetEventsRequest) Validate() error
- func (m *GetEventsRequest) ValidateAll() error
- type GetEventsRequestMultiError
- type GetEventsRequestValidationError
- func (e GetEventsRequestValidationError) Cause() error
- func (e GetEventsRequestValidationError) Error() string
- func (e GetEventsRequestValidationError) ErrorName() string
- func (e GetEventsRequestValidationError) Field() string
- func (e GetEventsRequestValidationError) Key() bool
- func (e GetEventsRequestValidationError) Reason() string
- type GetEventsRequest_Range
- type GetEventsRequest_Since
- type GetEventsResponse
- func (*GetEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventsResponse) GetEvents() []*Event
- func (x *GetEventsResponse) GetNextPageToken() string
- func (*GetEventsResponse) ProtoMessage()
- func (x *GetEventsResponse) ProtoReflect() protoreflect.Message
- func (x *GetEventsResponse) Reset()
- func (x *GetEventsResponse) String() string
- func (m *GetEventsResponse) Validate() error
- func (m *GetEventsResponse) ValidateAll() error
- type GetEventsResponseMultiError
- type GetEventsResponseValidationError
- func (e GetEventsResponseValidationError) Cause() error
- func (e GetEventsResponseValidationError) Error() string
- func (e GetEventsResponseValidationError) ErrorName() string
- func (e GetEventsResponseValidationError) Field() string
- func (e GetEventsResponseValidationError) Key() bool
- func (e GetEventsResponseValidationError) Reason() string
- type RequestEvent
- func (*RequestEvent) Descriptor() ([]byte, []int)deprecated
- func (x *RequestEvent) GetMethodName() string
- func (x *RequestEvent) GetRequestMetadata() *RequestMetadata
- func (x *RequestEvent) GetResources() []*Resource
- func (x *RequestEvent) GetResponseMetadata() *ResponseMetadata
- func (x *RequestEvent) GetServiceName() string
- func (x *RequestEvent) GetStatus() *status.Status
- func (x *RequestEvent) GetType() v1.ActionType
- func (x *RequestEvent) GetUsername() string
- func (*RequestEvent) ProtoMessage()
- func (x *RequestEvent) ProtoReflect() protoreflect.Message
- func (x *RequestEvent) Reset()
- func (x *RequestEvent) String() string
- func (m *RequestEvent) Validate() error
- func (m *RequestEvent) ValidateAll() error
- type RequestEventMultiError
- type RequestEventValidationError
- func (e RequestEventValidationError) Cause() error
- func (e RequestEventValidationError) Error() string
- func (e RequestEventValidationError) ErrorName() string
- func (e RequestEventValidationError) Field() string
- func (e RequestEventValidationError) Key() bool
- func (e RequestEventValidationError) Reason() string
- type RequestMetadata
- func (*RequestMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RequestMetadata) GetBody() *anypb.Any
- func (*RequestMetadata) ProtoMessage()
- func (x *RequestMetadata) ProtoReflect() protoreflect.Message
- func (x *RequestMetadata) Reset()
- func (x *RequestMetadata) String() string
- func (m *RequestMetadata) Validate() error
- func (m *RequestMetadata) ValidateAll() error
- type RequestMetadataMultiError
- type RequestMetadataValidationError
- func (e RequestMetadataValidationError) Cause() error
- func (e RequestMetadataValidationError) Error() string
- func (e RequestMetadataValidationError) ErrorName() string
- func (e RequestMetadataValidationError) Field() string
- func (e RequestMetadataValidationError) Key() bool
- func (e RequestMetadataValidationError) Reason() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetId() string
- func (x *Resource) GetTypeUrl() string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- func (m *Resource) Validate() error
- func (m *Resource) ValidateAll() error
- type ResourceMultiError
- type ResourceValidationError
- type ResponseMetadata
- func (*ResponseMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseMetadata) GetBody() *anypb.Any
- func (*ResponseMetadata) ProtoMessage()
- func (x *ResponseMetadata) ProtoReflect() protoreflect.Message
- func (x *ResponseMetadata) Reset()
- func (x *ResponseMetadata) String() string
- func (m *ResponseMetadata) Validate() error
- func (m *ResponseMetadata) ValidateAll() error
- type ResponseMetadataMultiError
- type ResponseMetadataValidationError
- func (e ResponseMetadataValidationError) Cause() error
- func (e ResponseMetadataValidationError) Error() string
- func (e ResponseMetadataValidationError) ErrorName() string
- func (e ResponseMetadataValidationError) Field() string
- func (e ResponseMetadataValidationError) Key() bool
- func (e ResponseMetadataValidationError) Reason() string
- type TimeRange
- func (*TimeRange) Descriptor() ([]byte, []int)deprecated
- func (x *TimeRange) GetEndTime() *timestamppb.Timestamp
- func (x *TimeRange) GetStartTime() *timestamppb.Timestamp
- func (*TimeRange) ProtoMessage()
- func (x *TimeRange) ProtoReflect() protoreflect.Message
- func (x *TimeRange) Reset()
- func (x *TimeRange) String() string
- func (m *TimeRange) Validate() error
- func (m *TimeRange) ValidateAll() error
- type TimeRangeMultiError
- type TimeRangeValidationError
- type UnimplementedAuditAPIServer
- type UnsafeAuditAPIServer
Constants ¶
const ( AuditAPI_GetEvents_FullMethodName = "/datalift.audit.v1.AuditAPI/GetEvents" AuditAPI_GetEvent_FullMethodName = "/datalift.audit.v1.AuditAPI/GetEvent" )
Variables ¶
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)
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) GetEvent ¶
func (x *Event) GetEvent() *RequestEvent
func (*Event) GetEventType ¶
func (m *Event) GetEventType() isEvent_EventType
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) Validate ¶
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 ¶
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 ¶
func (m GetEventRequestMultiError) Error() string
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 ¶
func (e GetEventRequestValidationError) Cause() error
Cause function returns cause value.
func (GetEventRequestValidationError) Error ¶
func (e GetEventRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetEventRequestValidationError) ErrorName ¶
func (e GetEventRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetEventRequestValidationError) Field ¶
func (e GetEventRequestValidationError) Field() string
Field function returns field value.
func (GetEventRequestValidationError) Key ¶
func (e GetEventRequestValidationError) Key() bool
Key function returns key value.
func (GetEventRequestValidationError) Reason ¶
func (e GetEventRequestValidationError) Reason() string
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 ¶
func (m GetEventResponseMultiError) Error() string
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 ¶
func (e GetEventResponseValidationError) Cause() error
Cause function returns cause value.
func (GetEventResponseValidationError) Error ¶
func (e GetEventResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetEventResponseValidationError) ErrorName ¶
func (e GetEventResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetEventResponseValidationError) Field ¶
func (e GetEventResponseValidationError) Field() string
Field function returns field value.
func (GetEventResponseValidationError) Key ¶
func (e GetEventResponseValidationError) Key() bool
Key function returns key value.
func (GetEventResponseValidationError) Reason ¶
func (e GetEventResponseValidationError) Reason() string
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 ¶
func (m GetEventsRequestMultiError) Error() string
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 ¶
func (e GetEventsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetEventsRequestValidationError) Error ¶
func (e GetEventsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetEventsRequestValidationError) ErrorName ¶
func (e GetEventsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetEventsRequestValidationError) Field ¶
func (e GetEventsRequestValidationError) Field() string
Field function returns field value.
func (GetEventsRequestValidationError) Key ¶
func (e GetEventsRequestValidationError) Key() bool
Key function returns key value.
func (GetEventsRequestValidationError) Reason ¶
func (e GetEventsRequestValidationError) Reason() string
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 ¶
func (m GetEventsResponseMultiError) Error() string
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 ¶
func (e GetEventsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetEventsResponseValidationError) Error ¶
func (e GetEventsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetEventsResponseValidationError) ErrorName ¶
func (e GetEventsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetEventsResponseValidationError) Field ¶
func (e GetEventsResponseValidationError) Field() string
Field function returns field value.
func (GetEventsResponseValidationError) Key ¶
func (e GetEventsResponseValidationError) Key() bool
Key function returns key value.
func (GetEventsResponseValidationError) Reason ¶
func (e GetEventsResponseValidationError) Reason() string
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 ¶
func (e RequestEventValidationError) Cause() error
Cause function returns cause value.
func (RequestEventValidationError) Error ¶
func (e RequestEventValidationError) Error() string
Error satisfies the builtin error interface
func (RequestEventValidationError) ErrorName ¶
func (e RequestEventValidationError) ErrorName() string
ErrorName returns error name.
func (RequestEventValidationError) Field ¶
func (e RequestEventValidationError) Field() string
Field function returns field value.
func (RequestEventValidationError) Key ¶
func (e RequestEventValidationError) Key() bool
Key function returns key value.
func (RequestEventValidationError) Reason ¶
func (e RequestEventValidationError) Reason() string
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 ¶
func (m RequestMetadataMultiError) Error() string
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 ¶
func (e RequestMetadataValidationError) Cause() error
Cause function returns cause value.
func (RequestMetadataValidationError) Error ¶
func (e RequestMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (RequestMetadataValidationError) ErrorName ¶
func (e RequestMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (RequestMetadataValidationError) Field ¶
func (e RequestMetadataValidationError) Field() string
Field function returns field value.
func (RequestMetadataValidationError) Key ¶
func (e RequestMetadataValidationError) Key() bool
Key function returns key value.
func (RequestMetadataValidationError) Reason ¶
func (e RequestMetadataValidationError) Reason() string
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) GetTypeUrl ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
func (*Resource) Validate ¶
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 ¶
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 ¶
func (m ResponseMetadataMultiError) Error() string
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 ¶
func (e ResponseMetadataValidationError) Cause() error
Cause function returns cause value.
func (ResponseMetadataValidationError) Error ¶
func (e ResponseMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseMetadataValidationError) ErrorName ¶
func (e ResponseMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseMetadataValidationError) Field ¶
func (e ResponseMetadataValidationError) Field() string
Field function returns field value.
func (ResponseMetadataValidationError) Key ¶
func (e ResponseMetadataValidationError) Key() bool
Key function returns key value.
func (ResponseMetadataValidationError) Reason ¶
func (e ResponseMetadataValidationError) Reason() string
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) 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) Validate ¶
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 ¶
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 ¶
func (e TimeRangeValidationError) Key() bool
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) GetEvent(context.Context, *GetEventRequest) (*GetEventResponse, error)
func (UnimplementedAuditAPIServer) GetEvents ¶
func (UnimplementedAuditAPIServer) GetEvents(context.Context, *GetEventsRequest) (*GetEventsResponse, error)
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.