auditumv1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package auditumv1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package auditumv1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ProjectService_CreateProject_FullMethodName = "/auditumio.auditum.v1alpha1.ProjectService/CreateProject"
	ProjectService_GetProject_FullMethodName    = "/auditumio.auditum.v1alpha1.ProjectService/GetProject"
	ProjectService_ListProjects_FullMethodName  = "/auditumio.auditum.v1alpha1.ProjectService/ListProjects"
	ProjectService_UpdateProject_FullMethodName = "/auditumio.auditum.v1alpha1.ProjectService/UpdateProject"
)
View Source
const (
	RecordService_CreateRecord_FullMethodName       = "/auditumio.auditum.v1alpha1.RecordService/CreateRecord"
	RecordService_BatchCreateRecords_FullMethodName = "/auditumio.auditum.v1alpha1.RecordService/BatchCreateRecords"
	RecordService_GetRecord_FullMethodName          = "/auditumio.auditum.v1alpha1.RecordService/GetRecord"
	RecordService_ListRecords_FullMethodName        = "/auditumio.auditum.v1alpha1.RecordService/ListRecords"
	RecordService_UpdateRecord_FullMethodName       = "/auditumio.auditum.v1alpha1.RecordService/UpdateRecord"
	RecordService_DeleteRecord_FullMethodName       = "/auditumio.auditum.v1alpha1.RecordService/DeleteRecord"
)

Variables

View Source
var (
	OperationStatus_Enum_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "SUCCEEDED",
		2: "FAILED",
	}
	OperationStatus_Enum_value = map[string]int32{
		"UNSPECIFIED": 0,
		"SUCCEEDED":   1,
		"FAILED":      2,
	}
)

Enum value maps for OperationStatus_Enum.

View Source
var File_auditumio_auditum_v1alpha1_openapi_proto protoreflect.FileDescriptor
View Source
var File_auditumio_auditum_v1alpha1_project_proto protoreflect.FileDescriptor
View Source
var File_auditumio_auditum_v1alpha1_project_service_proto protoreflect.FileDescriptor
View Source
var File_auditumio_auditum_v1alpha1_record_proto protoreflect.FileDescriptor
View Source
var File_auditumio_auditum_v1alpha1_record_service_proto protoreflect.FileDescriptor
View Source
var ProjectService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auditumio.auditum.v1alpha1.ProjectService",
	HandlerType: (*ProjectServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateProject",
			Handler:    _ProjectService_CreateProject_Handler,
		},
		{
			MethodName: "GetProject",
			Handler:    _ProjectService_GetProject_Handler,
		},
		{
			MethodName: "ListProjects",
			Handler:    _ProjectService_ListProjects_Handler,
		},
		{
			MethodName: "UpdateProject",
			Handler:    _ProjectService_UpdateProject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auditumio/auditum/v1alpha1/project_service.proto",
}

ProjectService_ServiceDesc is the grpc.ServiceDesc for ProjectService 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 RecordService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auditumio.auditum.v1alpha1.RecordService",
	HandlerType: (*RecordServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRecord",
			Handler:    _RecordService_CreateRecord_Handler,
		},
		{
			MethodName: "BatchCreateRecords",
			Handler:    _RecordService_BatchCreateRecords_Handler,
		},
		{
			MethodName: "GetRecord",
			Handler:    _RecordService_GetRecord_Handler,
		},
		{
			MethodName: "ListRecords",
			Handler:    _RecordService_ListRecords_Handler,
		},
		{
			MethodName: "UpdateRecord",
			Handler:    _RecordService_UpdateRecord_Handler,
		},
		{
			MethodName: "DeleteRecord",
			Handler:    _RecordService_DeleteRecord_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auditumio/auditum/v1alpha1/record_service.proto",
}

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

Functions

func RegisterProjectServiceHandler

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

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

func RegisterProjectServiceHandlerClient

func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectServiceClient) error

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

func RegisterProjectServiceHandlerFromEndpoint

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

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

func RegisterProjectServiceHandlerServer

func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectServiceServer) error

RegisterProjectServiceHandlerServer registers the http handlers for service ProjectService to "mux". UnaryRPC :call ProjectServiceServer 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 RegisterProjectServiceHandlerFromEndpoint instead.

func RegisterProjectServiceServer

func RegisterProjectServiceServer(s grpc.ServiceRegistrar, srv ProjectServiceServer)

func RegisterRecordServiceHandler

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

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

func RegisterRecordServiceHandlerClient

func RegisterRecordServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RecordServiceClient) error

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

func RegisterRecordServiceHandlerFromEndpoint

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

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

func RegisterRecordServiceHandlerServer

func RegisterRecordServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RecordServiceServer) error

RegisterRecordServiceHandlerServer registers the http handlers for service RecordService to "mux". UnaryRPC :call RecordServiceServer 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 RegisterRecordServiceHandlerFromEndpoint instead.

func RegisterRecordServiceServer

func RegisterRecordServiceServer(s grpc.ServiceRegistrar, srv RecordServiceServer)

Types

type Actor

type Actor struct {

	// Type of the actor.
	// This field may be used to distinguish different kinds of actors from
	// each other.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 256 bytes in length.
	//
	// EXAMPLE.
	// In an example social website domain, the following actor types can be used:
	//   - USER for a person that updates the post;
	//   - SERVICE_ACCOUNT for a system that automatically archives posts when
	//     they become outdated.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Domain/application specific identifier of the actor.
	// This field uniquely identifies the actor who triggered the operation.
	// The id must be unique within a `type`.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 256 bytes in length.
	//
	// BEST PRACTICE.
	//   - The id may refer to a user (staff, customer, etc) or to a system
	//     (service account, etc), depending on the context of the operation.
	//   - This field is required. If, for any reason, there is a case when it is
	//     impossible or not desirable to provide actor identity, use a consistent
	//     stub value like "unknown".
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Custom properties related to the actor.
	//
	// REQUIREMENTS.
	// Mandatory:
	// Keys must conform to the following regexp: [a-zA-Z0-9-_]+.
	// Keys must be at least 1 byte in length.
	// Configurable defaults:
	// Keys must be at most 64 bytes in length.
	// Values must be at most 256 bytes in length.
	// The total size of all keys and values must be at most 2048 bytes.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents the audit record actor.

func (*Actor) Descriptor deprecated

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

Deprecated: Use Actor.ProtoReflect.Descriptor instead.

func (*Actor) GetId

func (x *Actor) GetId() string

func (*Actor) GetMetadata

func (x *Actor) GetMetadata() map[string]string

func (*Actor) GetType

func (x *Actor) GetType() string

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) ProtoReflect

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

func (*Actor) Reset

func (x *Actor) Reset()

func (*Actor) String

func (x *Actor) String() string

type BatchCreateRecordsRequest

type BatchCreateRecordsRequest struct {

	// ID of the project to create records in.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Records to create.
	// Maximum number of records in a batch is 100.
	Records []*Record `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateRecordsRequest) Descriptor deprecated

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

Deprecated: Use BatchCreateRecordsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateRecordsRequest) GetProjectId

func (x *BatchCreateRecordsRequest) GetProjectId() string

func (*BatchCreateRecordsRequest) GetRecords

func (x *BatchCreateRecordsRequest) GetRecords() []*Record

func (*BatchCreateRecordsRequest) ProtoMessage

func (*BatchCreateRecordsRequest) ProtoMessage()

func (*BatchCreateRecordsRequest) ProtoReflect

func (*BatchCreateRecordsRequest) Reset

func (x *BatchCreateRecordsRequest) Reset()

func (*BatchCreateRecordsRequest) String

func (x *BatchCreateRecordsRequest) String() string

type BatchCreateRecordsResponse

type BatchCreateRecordsResponse struct {

	// Created records.
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateRecordsResponse) Descriptor deprecated

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

Deprecated: Use BatchCreateRecordsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateRecordsResponse) GetRecords

func (x *BatchCreateRecordsResponse) GetRecords() []*Record

func (*BatchCreateRecordsResponse) ProtoMessage

func (*BatchCreateRecordsResponse) ProtoMessage()

func (*BatchCreateRecordsResponse) ProtoReflect

func (*BatchCreateRecordsResponse) Reset

func (x *BatchCreateRecordsResponse) Reset()

func (*BatchCreateRecordsResponse) String

func (x *BatchCreateRecordsResponse) String() string

type CreateProjectRequest

type CreateProjectRequest struct {

	// Project to create.
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProjectRequest) Descriptor deprecated

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

Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead.

func (*CreateProjectRequest) GetProject

func (x *CreateProjectRequest) GetProject() *Project

func (*CreateProjectRequest) ProtoMessage

func (*CreateProjectRequest) ProtoMessage()

func (*CreateProjectRequest) ProtoReflect

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

func (*CreateProjectRequest) Reset

func (x *CreateProjectRequest) Reset()

func (*CreateProjectRequest) String

func (x *CreateProjectRequest) String() string

type CreateProjectResponse

type CreateProjectResponse struct {

	// Created project.
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProjectResponse) Descriptor deprecated

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

Deprecated: Use CreateProjectResponse.ProtoReflect.Descriptor instead.

func (*CreateProjectResponse) GetProject

func (x *CreateProjectResponse) GetProject() *Project

func (*CreateProjectResponse) ProtoMessage

func (*CreateProjectResponse) ProtoMessage()

func (*CreateProjectResponse) ProtoReflect

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

func (*CreateProjectResponse) Reset

func (x *CreateProjectResponse) Reset()

func (*CreateProjectResponse) String

func (x *CreateProjectResponse) String() string

type CreateRecordRequest

type CreateRecordRequest struct {

	// Record to create.
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRecordRequest) Descriptor deprecated

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

Deprecated: Use CreateRecordRequest.ProtoReflect.Descriptor instead.

func (*CreateRecordRequest) GetRecord

func (x *CreateRecordRequest) GetRecord() *Record

func (*CreateRecordRequest) ProtoMessage

func (*CreateRecordRequest) ProtoMessage()

func (*CreateRecordRequest) ProtoReflect

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

func (*CreateRecordRequest) Reset

func (x *CreateRecordRequest) Reset()

func (*CreateRecordRequest) String

func (x *CreateRecordRequest) String() string

type CreateRecordResponse

type CreateRecordResponse struct {

	// Created record.
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRecordResponse) Descriptor deprecated

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

Deprecated: Use CreateRecordResponse.ProtoReflect.Descriptor instead.

func (*CreateRecordResponse) GetRecord

func (x *CreateRecordResponse) GetRecord() *Record

func (*CreateRecordResponse) ProtoMessage

func (*CreateRecordResponse) ProtoMessage()

func (*CreateRecordResponse) ProtoReflect

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

func (*CreateRecordResponse) Reset

func (x *CreateRecordResponse) Reset()

func (*CreateRecordResponse) String

func (x *CreateRecordResponse) String() string

type DeleteRecordRequest

type DeleteRecordRequest struct {

	// ID of the project that owns the record.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// ID of the record to delete.
	RecordId string `protobuf:"bytes,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRecordRequest) Descriptor deprecated

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

Deprecated: Use DeleteRecordRequest.ProtoReflect.Descriptor instead.

func (*DeleteRecordRequest) GetProjectId

func (x *DeleteRecordRequest) GetProjectId() string

func (*DeleteRecordRequest) GetRecordId

func (x *DeleteRecordRequest) GetRecordId() string

func (*DeleteRecordRequest) ProtoMessage

func (*DeleteRecordRequest) ProtoMessage()

func (*DeleteRecordRequest) ProtoReflect

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

func (*DeleteRecordRequest) Reset

func (x *DeleteRecordRequest) Reset()

func (*DeleteRecordRequest) String

func (x *DeleteRecordRequest) String() string

type DeleteRecordResponse

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

func (*DeleteRecordResponse) Descriptor deprecated

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

Deprecated: Use DeleteRecordResponse.ProtoReflect.Descriptor instead.

func (*DeleteRecordResponse) ProtoMessage

func (*DeleteRecordResponse) ProtoMessage()

func (*DeleteRecordResponse) ProtoReflect

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

func (*DeleteRecordResponse) Reset

func (x *DeleteRecordResponse) Reset()

func (*DeleteRecordResponse) String

func (x *DeleteRecordResponse) String() string

type GetProjectRequest

type GetProjectRequest struct {

	// ID of the record to get.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProjectRequest) Descriptor deprecated

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

Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead.

func (*GetProjectRequest) GetProjectId

func (x *GetProjectRequest) GetProjectId() string

func (*GetProjectRequest) ProtoMessage

func (*GetProjectRequest) ProtoMessage()

func (*GetProjectRequest) ProtoReflect

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

func (*GetProjectRequest) Reset

func (x *GetProjectRequest) Reset()

func (*GetProjectRequest) String

func (x *GetProjectRequest) String() string

type GetProjectResponse

type GetProjectResponse struct {

	// Found project.
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProjectResponse) Descriptor deprecated

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

Deprecated: Use GetProjectResponse.ProtoReflect.Descriptor instead.

func (*GetProjectResponse) GetProject

func (x *GetProjectResponse) GetProject() *Project

func (*GetProjectResponse) ProtoMessage

func (*GetProjectResponse) ProtoMessage()

func (*GetProjectResponse) ProtoReflect

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

func (*GetProjectResponse) Reset

func (x *GetProjectResponse) Reset()

func (*GetProjectResponse) String

func (x *GetProjectResponse) String() string

type GetRecordRequest

type GetRecordRequest struct {

	// ID of the project that owns the record.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// ID of the record to retrieve.
	RecordId string `protobuf:"bytes,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecordRequest) Descriptor deprecated

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

Deprecated: Use GetRecordRequest.ProtoReflect.Descriptor instead.

func (*GetRecordRequest) GetProjectId

func (x *GetRecordRequest) GetProjectId() string

func (*GetRecordRequest) GetRecordId

func (x *GetRecordRequest) GetRecordId() string

func (*GetRecordRequest) ProtoMessage

func (*GetRecordRequest) ProtoMessage()

func (*GetRecordRequest) ProtoReflect

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

func (*GetRecordRequest) Reset

func (x *GetRecordRequest) Reset()

func (*GetRecordRequest) String

func (x *GetRecordRequest) String() string

type GetRecordResponse

type GetRecordResponse struct {

	// Found record.
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecordResponse) Descriptor deprecated

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

Deprecated: Use GetRecordResponse.ProtoReflect.Descriptor instead.

func (*GetRecordResponse) GetRecord

func (x *GetRecordResponse) GetRecord() *Record

func (*GetRecordResponse) ProtoMessage

func (*GetRecordResponse) ProtoMessage()

func (*GetRecordResponse) ProtoReflect

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

func (*GetRecordResponse) Reset

func (x *GetRecordResponse) Reset()

func (*GetRecordResponse) String

func (x *GetRecordResponse) String() string

type ListProjectsRequest

type ListProjectsRequest struct {

	// Filter to apply to the list of projects.
	Filter *ListProjectsRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// The maximum number of projects to return. The service may return fewer than
	// this value.
	// If unspecified, at most 10 projects will be returned.
	// The maximum value is 100; values above 100 will be coerced to 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListProjects` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListProjects` must match
	// the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProjectsRequest) Descriptor deprecated

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

Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.

func (*ListProjectsRequest) GetFilter

func (*ListProjectsRequest) GetPageSize

func (x *ListProjectsRequest) GetPageSize() int32

func (*ListProjectsRequest) GetPageToken

func (x *ListProjectsRequest) GetPageToken() string

func (*ListProjectsRequest) ProtoMessage

func (*ListProjectsRequest) ProtoMessage()

func (*ListProjectsRequest) ProtoReflect

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

func (*ListProjectsRequest) Reset

func (x *ListProjectsRequest) Reset()

func (*ListProjectsRequest) String

func (x *ListProjectsRequest) String() string

type ListProjectsRequest_Filter

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

Describes a filter to apply to the list of projects.

func (*ListProjectsRequest_Filter) Descriptor deprecated

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

Deprecated: Use ListProjectsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListProjectsRequest_Filter) ProtoMessage

func (*ListProjectsRequest_Filter) ProtoMessage()

func (*ListProjectsRequest_Filter) ProtoReflect

func (*ListProjectsRequest_Filter) Reset

func (x *ListProjectsRequest_Filter) Reset()

func (*ListProjectsRequest_Filter) String

func (x *ListProjectsRequest_Filter) String() string

type ListProjectsResponse

type ListProjectsResponse struct {

	// Found projects.
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	// A token that can be sent as `page_token` to retrieve the next page.
	// If this field is empty, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProjectsResponse) Descriptor deprecated

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

Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.

func (*ListProjectsResponse) GetNextPageToken

func (x *ListProjectsResponse) GetNextPageToken() string

func (*ListProjectsResponse) GetProjects

func (x *ListProjectsResponse) GetProjects() []*Project

func (*ListProjectsResponse) ProtoMessage

func (*ListProjectsResponse) ProtoMessage()

func (*ListProjectsResponse) ProtoReflect

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

func (*ListProjectsResponse) Reset

func (x *ListProjectsResponse) Reset()

func (*ListProjectsResponse) String

func (x *ListProjectsResponse) String() string

type ListRecordsRequest

type ListRecordsRequest struct {

	// ID of the project that owns the records.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Filter to apply to the list of records.
	// All filter fields are combined with logical AND.
	// All filter fields are optional.
	Filter *ListRecordsRequest_Filter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// The maximum number of records to return. The service may return fewer than
	// this value.
	// If unspecified, at most 10 records will be returned.
	// The maximum value is 100; values above 100 will be coerced to 100.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListRecords` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListRecords` must match
	// the call that provided the page token.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRecordsRequest) Descriptor deprecated

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

Deprecated: Use ListRecordsRequest.ProtoReflect.Descriptor instead.

func (*ListRecordsRequest) GetFilter

func (*ListRecordsRequest) GetPageSize

func (x *ListRecordsRequest) GetPageSize() int32

func (*ListRecordsRequest) GetPageToken

func (x *ListRecordsRequest) GetPageToken() string

func (*ListRecordsRequest) GetProjectId

func (x *ListRecordsRequest) GetProjectId() string

func (*ListRecordsRequest) ProtoMessage

func (*ListRecordsRequest) ProtoMessage()

func (*ListRecordsRequest) ProtoReflect

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

func (*ListRecordsRequest) Reset

func (x *ListRecordsRequest) Reset()

func (*ListRecordsRequest) String

func (x *ListRecordsRequest) String() string

type ListRecordsRequest_Filter

type ListRecordsRequest_Filter struct {

	// Return records with the provided labels.
	// This filter works as "has" semantic: all provided labels must be present
	// in the record, but returned records may have other labels.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Return records with the provided resource type.
	ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// Return records with the provided resource ID.
	ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// Return records with the provided operation type.
	OperationType string `protobuf:"bytes,4,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
	// Return records with the provided operation ID.
	OperationId string `protobuf:"bytes,5,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
	// Return records with operation time starting from the provided time, inclusive.
	OperationTimeFrom *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=operation_time_from,json=operationTimeFrom,proto3" json:"operation_time_from,omitempty"`
	// Return records with operation time up to the provided time, exclusive.
	OperationTimeTo *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=operation_time_to,json=operationTimeTo,proto3" json:"operation_time_to,omitempty"`
	// Return records with the provided actor type.
	ActorType string `protobuf:"bytes,8,opt,name=actor_type,json=actorType,proto3" json:"actor_type,omitempty"`
	// Return records with the provided actor ID.
	ActorId string `protobuf:"bytes,9,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
	// contains filtered or unexported fields
}

Describes a filter to apply to the list of records.

func (*ListRecordsRequest_Filter) Descriptor deprecated

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

Deprecated: Use ListRecordsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListRecordsRequest_Filter) GetActorId

func (x *ListRecordsRequest_Filter) GetActorId() string

func (*ListRecordsRequest_Filter) GetActorType

func (x *ListRecordsRequest_Filter) GetActorType() string

func (*ListRecordsRequest_Filter) GetLabels

func (x *ListRecordsRequest_Filter) GetLabels() map[string]string

func (*ListRecordsRequest_Filter) GetOperationId

func (x *ListRecordsRequest_Filter) GetOperationId() string

func (*ListRecordsRequest_Filter) GetOperationTimeFrom

func (x *ListRecordsRequest_Filter) GetOperationTimeFrom() *timestamppb.Timestamp

func (*ListRecordsRequest_Filter) GetOperationTimeTo

func (x *ListRecordsRequest_Filter) GetOperationTimeTo() *timestamppb.Timestamp

func (*ListRecordsRequest_Filter) GetOperationType

func (x *ListRecordsRequest_Filter) GetOperationType() string

func (*ListRecordsRequest_Filter) GetResourceId

func (x *ListRecordsRequest_Filter) GetResourceId() string

func (*ListRecordsRequest_Filter) GetResourceType

func (x *ListRecordsRequest_Filter) GetResourceType() string

func (*ListRecordsRequest_Filter) ProtoMessage

func (*ListRecordsRequest_Filter) ProtoMessage()

func (*ListRecordsRequest_Filter) ProtoReflect

func (*ListRecordsRequest_Filter) Reset

func (x *ListRecordsRequest_Filter) Reset()

func (*ListRecordsRequest_Filter) String

func (x *ListRecordsRequest_Filter) String() string

type ListRecordsResponse

type ListRecordsResponse struct {

	// Found records.
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// A token that can be sent as `page_token` to retrieve the next page.
	// If this field is empty, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRecordsResponse) Descriptor deprecated

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

Deprecated: Use ListRecordsResponse.ProtoReflect.Descriptor instead.

func (*ListRecordsResponse) GetNextPageToken

func (x *ListRecordsResponse) GetNextPageToken() string

func (*ListRecordsResponse) GetRecords

func (x *ListRecordsResponse) GetRecords() []*Record

func (*ListRecordsResponse) ProtoMessage

func (*ListRecordsResponse) ProtoMessage()

func (*ListRecordsResponse) ProtoReflect

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

func (*ListRecordsResponse) Reset

func (x *ListRecordsResponse) Reset()

func (*ListRecordsResponse) String

func (x *ListRecordsResponse) String() string

type Operation

type Operation struct {

	// Type of the operation.
	// This field may be used to categorize operations / actions / events.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 256 bytes in length.
	//
	// EXAMPLE.
	// In an example social website domain, the following operation types can be
	// used:
	// - CREATE when the post or comment is created;
	// - UPDATE when the post or comment post is updated;
	// - DELETE when the post or comment post is deleted.
	//
	// BEST PRACTICE.
	//   - Use `type` for high-level categorization and `id` for identification.
	//     For example, there can be multiple ways to create the resource: a user
	//     can create a resource from an app, an administrator can create a resource
	//     from the back office, a batch of resources can be created from the API -
	//     all of these operations can be of type CREATE.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Domain/application specific identifier of the operation.
	// This field identifies the operation that is audited.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 512 bytes in length.
	//
	// EXAMPLE.
	// A few examples on how the operation for creating a post comment can be
	// identified:
	// - Simple identifier like "CreateComment"
	// - Event name, e.g. "CommentCreated"
	// - API operation for HTTP, e.g. "POST /posts/101/comments"
	// - API operation for gRPC, e.g. "example.v1.PostService/CreateComment"
	// - Serverless function name
	// - etc.
	//
	// BEST PRACTICE.
	//   - There might be different approaches to identifying operations, see EXAMPLE
	//     for ideas and suggestions. It is recommended to keep it consistent.
	//   - Remember that `type` field can be used for high-level categorization, so
	//     it is possible to have different operations with the same type. See `type`
	//     field description.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Time when the operation occurred.
	Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	// Custom properties related to the operation.
	//
	// REQUIREMENTS.
	// Mandatory:
	// Keys must conform to the following regexp: [a-zA-Z0-9-_]+.
	// Keys must be at least 1 byte in length.
	// Configurable defaults:
	// Keys must be at most 64 bytes in length.
	// Values must be at most 256 bytes in length.
	// The total size of all keys and values must be at most 2048 bytes.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// Trace context related to the operation.
	TraceContext *TraceContext `protobuf:"bytes,5,opt,name=trace_context,json=traceContext,proto3" json:"trace_context,omitempty"`
	// Status of the operation to distinguish whether it succeeded or failed.
	//
	// BEST PRACTICE.
	//   - Depending on your use case, it may be important not only to record
	//     completed operations, but failed attempts too. Use this field to
	//     distinguish the operation outcome.
	Status OperationStatus_Enum `protobuf:"varint,6,opt,name=status,proto3,enum=auditumio.auditum.v1alpha1.OperationStatus_Enum" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Represents the audit record operation.

func (*Operation) Descriptor deprecated

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

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetId

func (x *Operation) GetId() string

func (*Operation) GetMetadata

func (x *Operation) GetMetadata() map[string]string

func (*Operation) GetStatus

func (x *Operation) GetStatus() OperationStatus_Enum

func (*Operation) GetTime

func (x *Operation) GetTime() *timestamppb.Timestamp

func (*Operation) GetTraceContext

func (x *Operation) GetTraceContext() *TraceContext

func (*Operation) GetType

func (x *Operation) GetType() string

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect

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

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type OperationStatus

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

Wraps operation status enumeration.

func (*OperationStatus) Descriptor deprecated

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

Deprecated: Use OperationStatus.ProtoReflect.Descriptor instead.

func (*OperationStatus) ProtoMessage

func (*OperationStatus) ProtoMessage()

func (*OperationStatus) ProtoReflect

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

func (*OperationStatus) Reset

func (x *OperationStatus) Reset()

func (*OperationStatus) String

func (x *OperationStatus) String() string

type OperationStatus_Enum

type OperationStatus_Enum int32

Enumerates available operation statuses.

const (
	// Operation status not provided or unknown.
	OperationStatus_UNSPECIFIED OperationStatus_Enum = 0
	// Operation succeeded.
	OperationStatus_SUCCEEDED OperationStatus_Enum = 1
	// Operation failed.
	OperationStatus_FAILED OperationStatus_Enum = 2
)

func (OperationStatus_Enum) Descriptor

func (OperationStatus_Enum) Enum

func (OperationStatus_Enum) EnumDescriptor deprecated

func (OperationStatus_Enum) EnumDescriptor() ([]byte, []int)

Deprecated: Use OperationStatus_Enum.Descriptor instead.

func (OperationStatus_Enum) Number

func (OperationStatus_Enum) String

func (x OperationStatus_Enum) String() string

func (OperationStatus_Enum) Type

type Project

type Project struct {

	// Internal project identifier.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Time when the project was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Display name of the project.
	//
	// REQUIREMENTS.
	// The value must be 3-64 characters long.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Whether to allow updating records for this project.
	// If set, overrides the global setting.
	// Defaults to unset.
	UpdateRecordEnabled *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=update_record_enabled,json=updateRecordEnabled,proto3" json:"update_record_enabled,omitempty"`
	// Whether to allow deleting records for this project.
	// If set, overrides the global setting.
	// Defaults to unset.
	DeleteRecordEnabled *wrapperspb.BoolValue `protobuf:"bytes,5,opt,name=delete_record_enabled,json=deleteRecordEnabled,proto3" json:"delete_record_enabled,omitempty"`
	// contains filtered or unexported fields
}

Represents a project.

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetCreateTime

func (x *Project) GetCreateTime() *timestamppb.Timestamp

func (*Project) GetDeleteRecordEnabled

func (x *Project) GetDeleteRecordEnabled() *wrapperspb.BoolValue

func (*Project) GetDisplayName

func (x *Project) GetDisplayName() string

func (*Project) GetId

func (x *Project) GetId() string

func (*Project) GetUpdateRecordEnabled

func (x *Project) GetUpdateRecordEnabled() *wrapperspb.BoolValue

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type ProjectServiceClient

type ProjectServiceClient interface {
	CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*CreateProjectResponse, error)
	GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*GetProjectResponse, error)
	ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)
	UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*UpdateProjectResponse, error)
}

ProjectServiceClient is the client API for ProjectService 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 ProjectServiceServer

type ProjectServiceServer interface {
	CreateProject(context.Context, *CreateProjectRequest) (*CreateProjectResponse, error)
	GetProject(context.Context, *GetProjectRequest) (*GetProjectResponse, error)
	ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
	UpdateProject(context.Context, *UpdateProjectRequest) (*UpdateProjectResponse, error)
	// contains filtered or unexported methods
}

ProjectServiceServer is the server API for ProjectService service. All implementations must embed UnimplementedProjectServiceServer for forward compatibility

type Record

type Record struct {

	// Internal record identifier.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Identifier of the project the record belongs to.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Time when the record was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Labels for the record that can be used for filtering.
	// The labels are indexed, unlike metadata fields, which means it is possible
	// to find records by their labels.
	//
	// REQUIREMENTS.
	// Mandatory:
	// Keys must conform to the following regexp: [a-zA-Z0-9-_]+.
	// Keys must be at least 1 byte in length.
	// Configurable defaults:
	// Keys must be at most 64 bytes in length.
	// Values must be at most 256 bytes in length.
	// The total size of all keys and values must be at most 2048 bytes.
	//
	// EXAMPLE.
	// In an example social website domain, records for both POST and COMMENT
	// resources can be created with "post_id" label. This way all records related to the
	// post and its comments can be retrieved in chronological order with one
	// request by filtering with "post_id" label.
	//
	// BEST PRACTICE.
	//   - Add only labels that are critical for chronological retrieval of
	//     records related to multiple resources.
	//   - Do not add labels for standard fields (such as resource type) as they
	//     are already available for filtering.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Record resource.
	Resource *Resource `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"`
	// Record operation.
	Operation *Operation `protobuf:"bytes,6,opt,name=operation,proto3" json:"operation,omitempty"`
	// Record actor.
	Actor *Actor `protobuf:"bytes,7,opt,name=actor,proto3" json:"actor,omitempty"`
	// contains filtered or unexported fields
}

Represents an audit record.

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetActor

func (x *Record) GetActor() *Actor

func (*Record) GetCreateTime

func (x *Record) GetCreateTime() *timestamppb.Timestamp

func (*Record) GetId

func (x *Record) GetId() string

func (*Record) GetLabels

func (x *Record) GetLabels() map[string]string

func (*Record) GetOperation

func (x *Record) GetOperation() *Operation

func (*Record) GetProjectId

func (x *Record) GetProjectId() string

func (*Record) GetResource

func (x *Record) GetResource() *Resource

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type RecordServiceClient

type RecordServiceClient interface {
	CreateRecord(ctx context.Context, in *CreateRecordRequest, opts ...grpc.CallOption) (*CreateRecordResponse, error)
	BatchCreateRecords(ctx context.Context, in *BatchCreateRecordsRequest, opts ...grpc.CallOption) (*BatchCreateRecordsResponse, error)
	GetRecord(ctx context.Context, in *GetRecordRequest, opts ...grpc.CallOption) (*GetRecordResponse, error)
	ListRecords(ctx context.Context, in *ListRecordsRequest, opts ...grpc.CallOption) (*ListRecordsResponse, error)
	UpdateRecord(ctx context.Context, in *UpdateRecordRequest, opts ...grpc.CallOption) (*UpdateRecordResponse, error)
	DeleteRecord(ctx context.Context, in *DeleteRecordRequest, opts ...grpc.CallOption) (*DeleteRecordResponse, error)
}

RecordServiceClient is the client API for RecordService 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 RecordServiceServer

type RecordServiceServer interface {
	CreateRecord(context.Context, *CreateRecordRequest) (*CreateRecordResponse, error)
	BatchCreateRecords(context.Context, *BatchCreateRecordsRequest) (*BatchCreateRecordsResponse, error)
	GetRecord(context.Context, *GetRecordRequest) (*GetRecordResponse, error)
	ListRecords(context.Context, *ListRecordsRequest) (*ListRecordsResponse, error)
	UpdateRecord(context.Context, *UpdateRecordRequest) (*UpdateRecordResponse, error)
	DeleteRecord(context.Context, *DeleteRecordRequest) (*DeleteRecordResponse, error)
	// contains filtered or unexported methods
}

RecordServiceServer is the server API for RecordService service. All implementations must embed UnimplementedRecordServiceServer for forward compatibility

type Resource

type Resource struct {

	// Type of the resource.
	// This field may be used to distinguish different kinds of resources from
	// each other.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 256 bytes in length.
	//
	// EXAMPLE.
	// In an example social website domain, the following resource types can be
	// used:
	// - POST for content post;
	// - COMMENT for comment to a post.
	//
	// BEST PRACTICE.
	//   - Match resource types according to your business domain model.
	//   - Keep the variety of resource types under control. This will make it
	//     easier to filter and analyze records.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Domain/application specific identifier of the resource.
	// This field uniquely identifies the resource.
	// The id must be unique within a `type`.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 256 bytes in length.
	//
	// EXAMPLE.
	// In an example social website domain, the value can represent post id,
	// comment id, etc.
	// For singleton resources the name can be used as a resource identifier,
	// e.g. "site_settings" for global site settings that you want to audit.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Custom properties related to the resource.
	//
	// REQUIREMENTS.
	// Mandatory:
	// Keys must conform to the following regexp: [a-zA-Z0-9-_]+.
	// Keys must be at least 1 byte in length.
	// Configurable defaults:
	// Keys must be at most 64 bytes in length.
	// Values must be at most 256 bytes in length.
	// The total size of all keys and values must be at most 2048 bytes.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// A list of changes for the resource.
	// This can be used to provide context into what is actually changed.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The number of changes must be at most 20 changes.
	//
	// BEST PRACTICE.
	//   - Add only changes that are critical for audit trail. Do not add the whole
	//     resource as a change, as it will bloat the audit log, making it harder to
	//     trace truly important changes. Instead, add only the fields that were
	//     actually changed.
	//   - There are two strategies for recording operation about resource creation:
	//     1) Do not add any changes about resource creation.
	//     If a particular resource attribute was never changed, the state of the
	//     resource itself already provides information about this attribute.
	//     2) Add a change about resource creation with all resource fields. For
	//     updates, still follow the rule of adding only changed fields.
	Changes []*ResourceChange `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

Represents the audit record resource.

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetChanges

func (x *Resource) GetChanges() []*ResourceChange

func (*Resource) GetId

func (x *Resource) GetId() string

func (*Resource) GetMetadata

func (x *Resource) GetMetadata() map[string]string

func (*Resource) GetType

func (x *Resource) GetType() 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

type ResourceChange

type ResourceChange struct {

	// Name of the change.
	// The name should answer the question "WHAT is changed?".
	// This may be used to distinguish different kinds of resource fields in the
	// set of changes.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 256 bytes in length.
	//
	// EXAMPLE.
	// In an example social website domain, assuming we are recording post update
	// where its title was changed, this field can be set to "title".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Change description.
	// This provides human-readable description of this particular change.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 1024 bytes in length.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Original value before the operation.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 4096 bytes in length.
	OldValue *structpb.Value `protobuf:"bytes,3,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
	// Changed value of after the operation.
	//
	// REQUIREMENTS.
	// Configurable defaults:
	// The value must be at most 4096 bytes in length.
	NewValue *structpb.Value `protobuf:"bytes,4,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
	// contains filtered or unexported fields
}

Represents the audit record resource change item.

func (*ResourceChange) Descriptor deprecated

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

Deprecated: Use ResourceChange.ProtoReflect.Descriptor instead.

func (*ResourceChange) GetDescription

func (x *ResourceChange) GetDescription() string

func (*ResourceChange) GetName

func (x *ResourceChange) GetName() string

func (*ResourceChange) GetNewValue

func (x *ResourceChange) GetNewValue() *structpb.Value

func (*ResourceChange) GetOldValue

func (x *ResourceChange) GetOldValue() *structpb.Value

func (*ResourceChange) ProtoMessage

func (*ResourceChange) ProtoMessage()

func (*ResourceChange) ProtoReflect

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

func (*ResourceChange) Reset

func (x *ResourceChange) Reset()

func (*ResourceChange) String

func (x *ResourceChange) String() string

type TraceContext

type TraceContext struct {

	// Traceparent Header value.
	//
	// REQUIREMENTS.
	// Mandatory:
	// Must be valid W3C traceparent header value.
	// See: https://www.w3.org/TR/trace-context/#traceparent-header
	Traceparent string `protobuf:"bytes,1,opt,name=traceparent,proto3" json:"traceparent,omitempty"`
	// Tracestate Header value.
	//
	// REQUIREMENTS.
	// Mandatory:
	// Must be valid W3C tracestate header value.
	// See: https://www.w3.org/TR/trace-context/#tracestate-header
	// Maximum length of the tracestate is 512 bytes.
	// Can be provided only if valid traceparent is provided as well.
	Tracestate string `protobuf:"bytes,2,opt,name=tracestate,proto3" json:"tracestate,omitempty"`
	// contains filtered or unexported fields
}

Represents the audit record operation trace context.

Adheres to the W3C Trace Context specification. See: https://www.w3.org/TR/trace-context/

func (*TraceContext) Descriptor deprecated

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

Deprecated: Use TraceContext.ProtoReflect.Descriptor instead.

func (*TraceContext) GetTraceparent

func (x *TraceContext) GetTraceparent() string

func (*TraceContext) GetTracestate

func (x *TraceContext) GetTracestate() string

func (*TraceContext) ProtoMessage

func (*TraceContext) ProtoMessage()

func (*TraceContext) ProtoReflect

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

func (*TraceContext) Reset

func (x *TraceContext) Reset()

func (*TraceContext) String

func (x *TraceContext) String() string

type UnimplementedProjectServiceServer

type UnimplementedProjectServiceServer struct {
}

UnimplementedProjectServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedProjectServiceServer) CreateProject

func (UnimplementedProjectServiceServer) GetProject

func (UnimplementedProjectServiceServer) ListProjects

func (UnimplementedProjectServiceServer) UpdateProject

type UnimplementedRecordServiceServer

type UnimplementedRecordServiceServer struct {
}

UnimplementedRecordServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRecordServiceServer) BatchCreateRecords

func (UnimplementedRecordServiceServer) CreateRecord

func (UnimplementedRecordServiceServer) DeleteRecord

func (UnimplementedRecordServiceServer) GetRecord

func (UnimplementedRecordServiceServer) ListRecords

func (UnimplementedRecordServiceServer) UpdateRecord

type UnsafeProjectServiceServer

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

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

type UnsafeRecordServiceServer

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

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

type UpdateProjectRequest

type UpdateProjectRequest struct {

	// Project to update.
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Field mask indicating a list of fields to update.
	// Currently supported fields:
	// - `display_name`
	// - `update_record_enabled`
	// - `delete_record_enabled`
	// Support for other fields may be added in the future.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProjectRequest) Descriptor deprecated

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

Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectRequest) GetProject

func (x *UpdateProjectRequest) GetProject() *Project

func (*UpdateProjectRequest) GetUpdateMask

func (x *UpdateProjectRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateProjectRequest) ProtoMessage

func (*UpdateProjectRequest) ProtoMessage()

func (*UpdateProjectRequest) ProtoReflect

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

func (*UpdateProjectRequest) Reset

func (x *UpdateProjectRequest) Reset()

func (*UpdateProjectRequest) String

func (x *UpdateProjectRequest) String() string

type UpdateProjectResponse

type UpdateProjectResponse struct {

	// Updated project.
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProjectResponse) Descriptor deprecated

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

Deprecated: Use UpdateProjectResponse.ProtoReflect.Descriptor instead.

func (*UpdateProjectResponse) GetProject

func (x *UpdateProjectResponse) GetProject() *Project

func (*UpdateProjectResponse) ProtoMessage

func (*UpdateProjectResponse) ProtoMessage()

func (*UpdateProjectResponse) ProtoReflect

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

func (*UpdateProjectResponse) Reset

func (x *UpdateProjectResponse) Reset()

func (*UpdateProjectResponse) String

func (x *UpdateProjectResponse) String() string

type UpdateRecordRequest

type UpdateRecordRequest struct {

	// Record to update.
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// Field mask indicating a list of fields to update.
	// Currently supported fields:
	// - `labels`
	// - `resource`
	// - `operation`
	// - `actor`
	// Support for other fields may be added in the future.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRecordRequest) Descriptor deprecated

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

Deprecated: Use UpdateRecordRequest.ProtoReflect.Descriptor instead.

func (*UpdateRecordRequest) GetRecord

func (x *UpdateRecordRequest) GetRecord() *Record

func (*UpdateRecordRequest) GetUpdateMask

func (x *UpdateRecordRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateRecordRequest) ProtoMessage

func (*UpdateRecordRequest) ProtoMessage()

func (*UpdateRecordRequest) ProtoReflect

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

func (*UpdateRecordRequest) Reset

func (x *UpdateRecordRequest) Reset()

func (*UpdateRecordRequest) String

func (x *UpdateRecordRequest) String() string

type UpdateRecordResponse

type UpdateRecordResponse struct {

	// Updated record.
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRecordResponse) Descriptor deprecated

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

Deprecated: Use UpdateRecordResponse.ProtoReflect.Descriptor instead.

func (*UpdateRecordResponse) GetRecord

func (x *UpdateRecordResponse) GetRecord() *Record

func (*UpdateRecordResponse) ProtoMessage

func (*UpdateRecordResponse) ProtoMessage()

func (*UpdateRecordResponse) ProtoReflect

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

func (*UpdateRecordResponse) Reset

func (x *UpdateRecordResponse) Reset()

func (*UpdateRecordResponse) String

func (x *UpdateRecordResponse) String() string

Jump to

Keyboard shortcuts

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