Documentation ¶
Index ¶
- Variables
- func RegisterAuditServiceServer(s grpc.ServiceRegistrar, srv AuditServiceServer)
- type AuditServiceClient
- type AuditServiceServer
- type CreateAuditTrailEntryRequest
- func (*CreateAuditTrailEntryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAuditTrailEntryRequest) GetAuditTrailEntry() *v1.AuditTrailEntry
- func (*CreateAuditTrailEntryRequest) ProtoMessage()
- func (x *CreateAuditTrailEntryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAuditTrailEntryRequest) Reset()
- func (x *CreateAuditTrailEntryRequest) String() string
- type CreateAuditTrailEntryResponse
- func (*CreateAuditTrailEntryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAuditTrailEntryResponse) GetAuditTrailEntry() *v1.AuditTrailEntry
- func (*CreateAuditTrailEntryResponse) ProtoMessage()
- func (x *CreateAuditTrailEntryResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAuditTrailEntryResponse) Reset()
- func (x *CreateAuditTrailEntryResponse) String() string
- type GetAuditTrailRequest
- func (*GetAuditTrailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuditTrailRequest) GetEntityRef() *v1.GenericRef
- func (x *GetAuditTrailRequest) GetPageSize() int32
- func (x *GetAuditTrailRequest) GetPageToken() string
- func (x *GetAuditTrailRequest) GetProjectId() string
- func (*GetAuditTrailRequest) ProtoMessage()
- func (x *GetAuditTrailRequest) ProtoReflect() protoreflect.Message
- func (x *GetAuditTrailRequest) Reset()
- func (x *GetAuditTrailRequest) String() string
- type GetAuditTrailResponse
- func (*GetAuditTrailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuditTrailResponse) GetEntries() []*v1.AuditTrailEntry
- func (x *GetAuditTrailResponse) GetNextPageToken() string
- func (*GetAuditTrailResponse) ProtoMessage()
- func (x *GetAuditTrailResponse) ProtoReflect() protoreflect.Message
- func (x *GetAuditTrailResponse) Reset()
- func (x *GetAuditTrailResponse) String() string
- type UnimplementedAuditServiceServer
- type UnsafeAuditServiceServer
Constants ¶
This section is empty.
Variables ¶
var AuditService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "strmprivacy.api.audit.v1.AuditService", HandlerType: (*AuditServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAuditTrail", Handler: _AuditService_GetAuditTrail_Handler, }, { MethodName: "CreateAuditTrailEntry", Handler: _AuditService_CreateAuditTrailEntry_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "strmprivacy/api/audit/v1/audit_v1.proto", }
AuditService_ServiceDesc is the grpc.ServiceDesc for AuditService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_strmprivacy_api_audit_v1_audit_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuditServiceServer ¶
func RegisterAuditServiceServer(s grpc.ServiceRegistrar, srv AuditServiceServer)
Types ¶
type AuditServiceClient ¶
type AuditServiceClient interface { // GetAuditTrail returns a list of audit trail entries for a given entity to be shown to an // end user, e.g. in the Console. GetAuditTrail(ctx context.Context, in *GetAuditTrailRequest, opts ...grpc.CallOption) (*GetAuditTrailResponse, error) // CreateAuditTrailEntry creates a new audit trail entry for a given entity, // and is called by source system owning the entity whenever a relevant change is made. CreateAuditTrailEntry(ctx context.Context, in *CreateAuditTrailEntryRequest, opts ...grpc.CallOption) (*CreateAuditTrailEntryResponse, error) }
AuditServiceClient is the client API for AuditService 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 NewAuditServiceClient ¶
func NewAuditServiceClient(cc grpc.ClientConnInterface) AuditServiceClient
type AuditServiceServer ¶
type AuditServiceServer interface { // GetAuditTrail returns a list of audit trail entries for a given entity to be shown to an // end user, e.g. in the Console. GetAuditTrail(context.Context, *GetAuditTrailRequest) (*GetAuditTrailResponse, error) // CreateAuditTrailEntry creates a new audit trail entry for a given entity, // and is called by source system owning the entity whenever a relevant change is made. CreateAuditTrailEntry(context.Context, *CreateAuditTrailEntryRequest) (*CreateAuditTrailEntryResponse, error) }
AuditServiceServer is the server API for AuditService service. All implementations should embed UnimplementedAuditServiceServer for forward compatibility
type CreateAuditTrailEntryRequest ¶
type CreateAuditTrailEntryRequest struct { AuditTrailEntry *v1.AuditTrailEntry `protobuf:"bytes,1,opt,name=audit_trail_entry,json=auditTrailEntry,proto3" json:"audit_trail_entry,omitempty"` // contains filtered or unexported fields }
func (*CreateAuditTrailEntryRequest) Descriptor
deprecated
func (*CreateAuditTrailEntryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAuditTrailEntryRequest.ProtoReflect.Descriptor instead.
func (*CreateAuditTrailEntryRequest) GetAuditTrailEntry ¶
func (x *CreateAuditTrailEntryRequest) GetAuditTrailEntry() *v1.AuditTrailEntry
func (*CreateAuditTrailEntryRequest) ProtoMessage ¶
func (*CreateAuditTrailEntryRequest) ProtoMessage()
func (*CreateAuditTrailEntryRequest) ProtoReflect ¶
func (x *CreateAuditTrailEntryRequest) ProtoReflect() protoreflect.Message
func (*CreateAuditTrailEntryRequest) Reset ¶
func (x *CreateAuditTrailEntryRequest) Reset()
func (*CreateAuditTrailEntryRequest) String ¶
func (x *CreateAuditTrailEntryRequest) String() string
type CreateAuditTrailEntryResponse ¶
type CreateAuditTrailEntryResponse struct { AuditTrailEntry *v1.AuditTrailEntry `protobuf:"bytes,1,opt,name=audit_trail_entry,json=auditTrailEntry,proto3" json:"audit_trail_entry,omitempty"` // contains filtered or unexported fields }
func (*CreateAuditTrailEntryResponse) Descriptor
deprecated
func (*CreateAuditTrailEntryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAuditTrailEntryResponse.ProtoReflect.Descriptor instead.
func (*CreateAuditTrailEntryResponse) GetAuditTrailEntry ¶
func (x *CreateAuditTrailEntryResponse) GetAuditTrailEntry() *v1.AuditTrailEntry
func (*CreateAuditTrailEntryResponse) ProtoMessage ¶
func (*CreateAuditTrailEntryResponse) ProtoMessage()
func (*CreateAuditTrailEntryResponse) ProtoReflect ¶
func (x *CreateAuditTrailEntryResponse) ProtoReflect() protoreflect.Message
func (*CreateAuditTrailEntryResponse) Reset ¶
func (x *CreateAuditTrailEntryResponse) Reset()
func (*CreateAuditTrailEntryResponse) String ¶
func (x *CreateAuditTrailEntryResponse) String() string
type GetAuditTrailRequest ¶
type GetAuditTrailRequest struct { // entity_ref is the entity to get the audit trail for. // If empty, a project id must be provided instead. EntityRef *v1.GenericRef `protobuf:"bytes,1,opt,name=entity_ref,json=entityRef,proto3" json:"entity_ref,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // If a project id is specified, an audit trail for all entities in the project is returned. // If empty, an entity_ref must be provided instead. ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // contains filtered or unexported fields }
func (*GetAuditTrailRequest) Descriptor
deprecated
func (*GetAuditTrailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAuditTrailRequest.ProtoReflect.Descriptor instead.
func (*GetAuditTrailRequest) GetEntityRef ¶
func (x *GetAuditTrailRequest) GetEntityRef() *v1.GenericRef
func (*GetAuditTrailRequest) GetPageSize ¶
func (x *GetAuditTrailRequest) GetPageSize() int32
func (*GetAuditTrailRequest) GetPageToken ¶
func (x *GetAuditTrailRequest) GetPageToken() string
func (*GetAuditTrailRequest) GetProjectId ¶ added in v3.4.0
func (x *GetAuditTrailRequest) GetProjectId() string
func (*GetAuditTrailRequest) ProtoMessage ¶
func (*GetAuditTrailRequest) ProtoMessage()
func (*GetAuditTrailRequest) ProtoReflect ¶
func (x *GetAuditTrailRequest) ProtoReflect() protoreflect.Message
func (*GetAuditTrailRequest) Reset ¶
func (x *GetAuditTrailRequest) Reset()
func (*GetAuditTrailRequest) String ¶
func (x *GetAuditTrailRequest) String() string
type GetAuditTrailResponse ¶
type GetAuditTrailResponse struct { Entries []*v1.AuditTrailEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,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 (*GetAuditTrailResponse) Descriptor
deprecated
func (*GetAuditTrailResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAuditTrailResponse.ProtoReflect.Descriptor instead.
func (*GetAuditTrailResponse) GetEntries ¶
func (x *GetAuditTrailResponse) GetEntries() []*v1.AuditTrailEntry
func (*GetAuditTrailResponse) GetNextPageToken ¶
func (x *GetAuditTrailResponse) GetNextPageToken() string
func (*GetAuditTrailResponse) ProtoMessage ¶
func (*GetAuditTrailResponse) ProtoMessage()
func (*GetAuditTrailResponse) ProtoReflect ¶
func (x *GetAuditTrailResponse) ProtoReflect() protoreflect.Message
func (*GetAuditTrailResponse) Reset ¶
func (x *GetAuditTrailResponse) Reset()
func (*GetAuditTrailResponse) String ¶
func (x *GetAuditTrailResponse) String() string
type UnimplementedAuditServiceServer ¶
type UnimplementedAuditServiceServer struct { }
UnimplementedAuditServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAuditServiceServer) CreateAuditTrailEntry ¶
func (UnimplementedAuditServiceServer) CreateAuditTrailEntry(context.Context, *CreateAuditTrailEntryRequest) (*CreateAuditTrailEntryResponse, error)
func (UnimplementedAuditServiceServer) GetAuditTrail ¶
func (UnimplementedAuditServiceServer) GetAuditTrail(context.Context, *GetAuditTrailRequest) (*GetAuditTrailResponse, error)
type UnsafeAuditServiceServer ¶
type UnsafeAuditServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuditServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuditServiceServer will result in compilation errors.