audit

package
v3.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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 (*CreateAuditTrailEntryRequest) Reset

func (x *CreateAuditTrailEntryRequest) Reset()

func (*CreateAuditTrailEntryRequest) 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 (*CreateAuditTrailEntryResponse) Reset

func (x *CreateAuditTrailEntryResponse) Reset()

func (*CreateAuditTrailEntryResponse) 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) GetAuditTrail

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.

Jump to

Keyboard shortcuts

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