decision_logs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Overview

Package decision_logs is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	DecisionLogs_ListDecisionLogs_FullMethodName = "/aserto.decision_logs.v2.DecisionLogs/ListDecisionLogs"
	DecisionLogs_GetDecisionLog_FullMethodName   = "/aserto.decision_logs.v2.DecisionLogs/GetDecisionLog"
	DecisionLogs_ListUsers_FullMethodName        = "/aserto.decision_logs.v2.DecisionLogs/ListUsers"
	DecisionLogs_GetUser_FullMethodName          = "/aserto.decision_logs.v2.DecisionLogs/GetUser"
	DecisionLogs_ExecuteQuery_FullMethodName     = "/aserto.decision_logs.v2.DecisionLogs/ExecuteQuery"
	DecisionLogs_GetDecisions_FullMethodName     = "/aserto.decision_logs.v2.DecisionLogs/GetDecisions"
)

Variables

View Source
var DecisionLogs_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aserto.decision_logs.v2.DecisionLogs",
	HandlerType: (*DecisionLogsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListDecisionLogs",
			Handler:    _DecisionLogs_ListDecisionLogs_Handler,
		},
		{
			MethodName: "GetDecisionLog",
			Handler:    _DecisionLogs_GetDecisionLog_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _DecisionLogs_ListUsers_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _DecisionLogs_GetUser_Handler,
		},
		{
			MethodName: "ExecuteQuery",
			Handler:    _DecisionLogs_ExecuteQuery_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetDecisions",
			Handler:       _DecisionLogs_GetDecisions_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "aserto/decision-logs/v2/decision_logs.proto",
}

DecisionLogs_ServiceDesc is the grpc.ServiceDesc for DecisionLogs 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_aserto_decision_logs_v2_decision_logs_proto protoreflect.FileDescriptor

Functions

func RegisterDecisionLogsHandler

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

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

func RegisterDecisionLogsHandlerClient

func RegisterDecisionLogsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DecisionLogsClient) error

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

func RegisterDecisionLogsHandlerFromEndpoint

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

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

func RegisterDecisionLogsHandlerServer

func RegisterDecisionLogsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DecisionLogsServer) error

RegisterDecisionLogsHandlerServer registers the http handlers for service DecisionLogs to "mux". UnaryRPC :call DecisionLogsServer 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 RegisterDecisionLogsHandlerFromEndpoint instead.

func RegisterDecisionLogsServer

func RegisterDecisionLogsServer(s grpc.ServiceRegistrar, srv DecisionLogsServer)

Types

type Decision

type Decision struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`               // unique id, replay a decision starting with this, also useful to de-dup
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // UTC time when the decision was made
	Path      string                 `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`           // Policy path used in decision
	User      *DecisionUser          `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`           // info about user for whom the decision as made
	Policy    *DecisionPolicy        `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"`       // info about policy used for the decision
	Outcomes  map[string]bool        ``                                                                        // outcome of the decisions specified in the policy context
	/* 158-byte string literal not displayed */
	Resource    *structpb.Struct  `protobuf:"bytes,7,opt,name=resource,proto3" json:"resource,omitempty"` // the resource context used in a decision
	Annotations map[string]string ``                                                                      // annotations that may be added to a decision
	/* 163-byte string literal not displayed */
	TenantId *string `protobuf:"bytes,9,opt,name=tenant_id,json=tenantId,proto3,oneof" json:"tenant_id,omitempty"` // id of the tenant that generated the decision
	// contains filtered or unexported fields
}

represents a decision that an authorizer performed in the past

func (*Decision) Descriptor deprecated

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

Deprecated: Use Decision.ProtoReflect.Descriptor instead.

func (*Decision) GetAnnotations

func (x *Decision) GetAnnotations() map[string]string

func (*Decision) GetId

func (x *Decision) GetId() string

func (*Decision) GetOutcomes

func (x *Decision) GetOutcomes() map[string]bool

func (*Decision) GetPath

func (x *Decision) GetPath() string

func (*Decision) GetPolicy

func (x *Decision) GetPolicy() *DecisionPolicy

func (*Decision) GetResource

func (x *Decision) GetResource() *structpb.Struct

func (*Decision) GetTenantId

func (x *Decision) GetTenantId() string

func (*Decision) GetTimestamp

func (x *Decision) GetTimestamp() *timestamppb.Timestamp

func (*Decision) GetUser

func (x *Decision) GetUser() *DecisionUser

func (*Decision) ProtoMessage

func (*Decision) ProtoMessage()

func (*Decision) ProtoReflect

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

func (*Decision) Reset

func (x *Decision) Reset()

func (*Decision) String

func (x *Decision) String() string

type DecisionLog

type DecisionLog struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*DecisionLog) Descriptor deprecated

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

Deprecated: Use DecisionLog.ProtoReflect.Descriptor instead.

func (*DecisionLog) GetUrl

func (x *DecisionLog) GetUrl() string

func (*DecisionLog) ProtoMessage

func (*DecisionLog) ProtoMessage()

func (*DecisionLog) ProtoReflect

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

func (*DecisionLog) Reset

func (x *DecisionLog) Reset()

func (*DecisionLog) String

func (x *DecisionLog) String() string

type DecisionLogItem

type DecisionLogItem struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DecisionLogItem) Descriptor deprecated

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

Deprecated: Use DecisionLogItem.ProtoReflect.Descriptor instead.

func (*DecisionLogItem) GetName

func (x *DecisionLogItem) GetName() string

func (*DecisionLogItem) ProtoMessage

func (*DecisionLogItem) ProtoMessage()

func (*DecisionLogItem) ProtoReflect

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

func (*DecisionLogItem) Reset

func (x *DecisionLogItem) Reset()

func (*DecisionLogItem) String

func (x *DecisionLogItem) String() string

type DecisionLogsClient

type DecisionLogsClient interface {
	ListDecisionLogs(ctx context.Context, in *ListDecisionLogsRequest, opts ...grpc.CallOption) (*ListDecisionLogsResponse, error)
	GetDecisionLog(ctx context.Context, in *GetDecisionLogRequest, opts ...grpc.CallOption) (*GetDecisionLogResponse, error)
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	ExecuteQuery(ctx context.Context, in *ExecuteQueryRequest, opts ...grpc.CallOption) (*ExecuteQueryResponse, error)
	GetDecisions(ctx context.Context, in *GetDecisionsRequest, opts ...grpc.CallOption) (DecisionLogs_GetDecisionsClient, error)
}

DecisionLogsClient is the client API for DecisionLogs 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 DecisionLogsServer

DecisionLogsServer is the server API for DecisionLogs service. All implementations should embed UnimplementedDecisionLogsServer for forward compatibility

type DecisionLogs_GetDecisionsClient

type DecisionLogs_GetDecisionsClient interface {
	Recv() (*GetDecisionsResponse, error)
	grpc.ClientStream
}

type DecisionLogs_GetDecisionsServer

type DecisionLogs_GetDecisionsServer interface {
	Send(*GetDecisionsResponse) error
	grpc.ServerStream
}

type DecisionPolicy

type DecisionPolicy struct {
	Context         *api.PolicyContext  `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`                                        // policy context used in the decision
	RegistryService string              `protobuf:"bytes,2,opt,name=registry_service,json=registryService,proto3" json:"registry_service,omitempty"` // registry service where policy was retrieved from (e.g. opcr.io)
	RegistryImage   string              `protobuf:"bytes,3,opt,name=registry_image,json=registryImage,proto3" json:"registry_image,omitempty"`       // image of the policy in the registry, including org (e.g. acmecorp/peoplefinder-abac)
	RegistryTag     string              `protobuf:"bytes,4,opt,name=registry_tag,json=registryTag,proto3" json:"registry_tag,omitempty"`             // tag of the policy image (e.g. 0.8.2 or latest)
	RegistryDigest  string              `protobuf:"bytes,5,opt,name=registry_digest,json=registryDigest,proto3" json:"registry_digest,omitempty"`    // digest of the policy image
	PolicyInstance  *api.PolicyInstance `protobuf:"bytes,6,opt,name=policy_instance,json=policyInstance,proto3" json:"policy_instance,omitempty"`    // policy instance used in decision
	// contains filtered or unexported fields
}

information about a policy used in a decision

func (*DecisionPolicy) Descriptor deprecated

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

Deprecated: Use DecisionPolicy.ProtoReflect.Descriptor instead.

func (*DecisionPolicy) GetContext

func (x *DecisionPolicy) GetContext() *api.PolicyContext

func (*DecisionPolicy) GetPolicyInstance

func (x *DecisionPolicy) GetPolicyInstance() *api.PolicyInstance

func (*DecisionPolicy) GetRegistryDigest

func (x *DecisionPolicy) GetRegistryDigest() string

func (*DecisionPolicy) GetRegistryImage

func (x *DecisionPolicy) GetRegistryImage() string

func (*DecisionPolicy) GetRegistryService

func (x *DecisionPolicy) GetRegistryService() string

func (*DecisionPolicy) GetRegistryTag

func (x *DecisionPolicy) GetRegistryTag() string

func (*DecisionPolicy) ProtoMessage

func (*DecisionPolicy) ProtoMessage()

func (*DecisionPolicy) ProtoReflect

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

func (*DecisionPolicy) Reset

func (x *DecisionPolicy) Reset()

func (*DecisionPolicy) String

func (x *DecisionPolicy) String() string

type DecisionUser

type DecisionUser struct {
	Context *api.IdentityContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // identity context used in the decision
	Id      string               `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`           // id of the user the identity resolved to
	Email   string               `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`     // convinience human-readable identifier
	// contains filtered or unexported fields
}

information about a user on behalf of whom a decision was made

func (*DecisionUser) Descriptor deprecated

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

Deprecated: Use DecisionUser.ProtoReflect.Descriptor instead.

func (*DecisionUser) GetContext

func (x *DecisionUser) GetContext() *api.IdentityContext

func (*DecisionUser) GetEmail

func (x *DecisionUser) GetEmail() string

func (*DecisionUser) GetId

func (x *DecisionUser) GetId() string

func (*DecisionUser) ProtoMessage

func (*DecisionUser) ProtoMessage()

func (*DecisionUser) ProtoReflect

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

func (*DecisionUser) Reset

func (x *DecisionUser) Reset()

func (*DecisionUser) String

func (x *DecisionUser) String() string

type ExecuteQueryRequest

type ExecuteQueryRequest struct {
	Page          *api.PaginationRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	PolicyName    string                 `protobuf:"bytes,2,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"`
	InstanceLabel string                 `protobuf:"bytes,3,opt,name=instance_label,json=instanceLabel,proto3" json:"instance_label,omitempty"`
	TopN          int64                  `protobuf:"varint,4,opt,name=top_n,json=topN,proto3" json:"top_n,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteQueryRequest) Descriptor deprecated

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

Deprecated: Use ExecuteQueryRequest.ProtoReflect.Descriptor instead.

func (*ExecuteQueryRequest) GetInstanceLabel

func (x *ExecuteQueryRequest) GetInstanceLabel() string

func (*ExecuteQueryRequest) GetPage

func (*ExecuteQueryRequest) GetPolicyName

func (x *ExecuteQueryRequest) GetPolicyName() string

func (*ExecuteQueryRequest) GetTopN

func (x *ExecuteQueryRequest) GetTopN() int64

func (*ExecuteQueryRequest) ProtoMessage

func (*ExecuteQueryRequest) ProtoMessage()

func (*ExecuteQueryRequest) ProtoReflect

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

func (*ExecuteQueryRequest) Reset

func (x *ExecuteQueryRequest) Reset()

func (*ExecuteQueryRequest) String

func (x *ExecuteQueryRequest) String() string

type ExecuteQueryResponse

type ExecuteQueryResponse struct {
	Page    *api.PaginationResponse `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	Results []*Result               `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteQueryResponse) Descriptor deprecated

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

Deprecated: Use ExecuteQueryResponse.ProtoReflect.Descriptor instead.

func (*ExecuteQueryResponse) GetPage

func (*ExecuteQueryResponse) GetResults

func (x *ExecuteQueryResponse) GetResults() []*Result

func (*ExecuteQueryResponse) ProtoMessage

func (*ExecuteQueryResponse) ProtoMessage()

func (*ExecuteQueryResponse) ProtoReflect

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

func (*ExecuteQueryResponse) Reset

func (x *ExecuteQueryResponse) Reset()

func (*ExecuteQueryResponse) String

func (x *ExecuteQueryResponse) String() string

type GetDecisionLogRequest

type GetDecisionLogRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDecisionLogRequest) Descriptor deprecated

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

Deprecated: Use GetDecisionLogRequest.ProtoReflect.Descriptor instead.

func (*GetDecisionLogRequest) GetName

func (x *GetDecisionLogRequest) GetName() string

func (*GetDecisionLogRequest) ProtoMessage

func (*GetDecisionLogRequest) ProtoMessage()

func (*GetDecisionLogRequest) ProtoReflect

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

func (*GetDecisionLogRequest) Reset

func (x *GetDecisionLogRequest) Reset()

func (*GetDecisionLogRequest) String

func (x *GetDecisionLogRequest) String() string

type GetDecisionLogResponse

type GetDecisionLogResponse struct {
	Log *DecisionLog `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDecisionLogResponse) Descriptor deprecated

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

Deprecated: Use GetDecisionLogResponse.ProtoReflect.Descriptor instead.

func (*GetDecisionLogResponse) GetLog

func (x *GetDecisionLogResponse) GetLog() *DecisionLog

func (*GetDecisionLogResponse) ProtoMessage

func (*GetDecisionLogResponse) ProtoMessage()

func (*GetDecisionLogResponse) ProtoReflect

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

func (*GetDecisionLogResponse) Reset

func (x *GetDecisionLogResponse) Reset()

func (*GetDecisionLogResponse) String

func (x *GetDecisionLogResponse) String() string

type GetDecisionsRequest

type GetDecisionsRequest struct {
	PolicyName    string                 `protobuf:"bytes,1,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"`
	InstanceLabel string                 `protobuf:"bytes,2,opt,name=instance_label,json=instanceLabel,proto3" json:"instance_label,omitempty"`
	Since         *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=since,proto3" json:"since,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDecisionsRequest) Descriptor deprecated

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

Deprecated: Use GetDecisionsRequest.ProtoReflect.Descriptor instead.

func (*GetDecisionsRequest) GetInstanceLabel

func (x *GetDecisionsRequest) GetInstanceLabel() string

func (*GetDecisionsRequest) GetPolicyName

func (x *GetDecisionsRequest) GetPolicyName() string

func (*GetDecisionsRequest) GetSince

func (x *GetDecisionsRequest) GetSince() *timestamppb.Timestamp

func (*GetDecisionsRequest) ProtoMessage

func (*GetDecisionsRequest) ProtoMessage()

func (*GetDecisionsRequest) ProtoReflect

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

func (*GetDecisionsRequest) Reset

func (x *GetDecisionsRequest) Reset()

func (*GetDecisionsRequest) String

func (x *GetDecisionsRequest) String() string

type GetDecisionsResponse

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

func (*GetDecisionsResponse) Descriptor deprecated

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

Deprecated: Use GetDecisionsResponse.ProtoReflect.Descriptor instead.

func (*GetDecisionsResponse) GetDecision

func (x *GetDecisionsResponse) GetDecision() *Decision

func (*GetDecisionsResponse) ProtoMessage

func (*GetDecisionsResponse) ProtoMessage()

func (*GetDecisionsResponse) ProtoReflect

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

func (*GetDecisionsResponse) Reset

func (x *GetDecisionsResponse) Reset()

func (*GetDecisionsResponse) String

func (x *GetDecisionsResponse) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

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

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type ListDecisionLogsRequest

type ListDecisionLogsRequest struct {
	Page     *api.PaginationRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	Policies []string               `protobuf:"bytes,2,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDecisionLogsRequest) Descriptor deprecated

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

Deprecated: Use ListDecisionLogsRequest.ProtoReflect.Descriptor instead.

func (*ListDecisionLogsRequest) GetPage

func (*ListDecisionLogsRequest) GetPolicies

func (x *ListDecisionLogsRequest) GetPolicies() []string

func (*ListDecisionLogsRequest) ProtoMessage

func (*ListDecisionLogsRequest) ProtoMessage()

func (*ListDecisionLogsRequest) ProtoReflect

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

func (*ListDecisionLogsRequest) Reset

func (x *ListDecisionLogsRequest) Reset()

func (*ListDecisionLogsRequest) String

func (x *ListDecisionLogsRequest) String() string

type ListDecisionLogsResponse

type ListDecisionLogsResponse struct {
	Page    *api.PaginationResponse `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	Results []*DecisionLogItem      `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDecisionLogsResponse) Descriptor deprecated

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

Deprecated: Use ListDecisionLogsResponse.ProtoReflect.Descriptor instead.

func (*ListDecisionLogsResponse) GetPage

func (*ListDecisionLogsResponse) GetResults

func (x *ListDecisionLogsResponse) GetResults() []*DecisionLogItem

func (*ListDecisionLogsResponse) ProtoMessage

func (*ListDecisionLogsResponse) ProtoMessage()

func (*ListDecisionLogsResponse) ProtoReflect

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

func (*ListDecisionLogsResponse) Reset

func (x *ListDecisionLogsResponse) Reset()

func (*ListDecisionLogsResponse) String

func (x *ListDecisionLogsResponse) String() string

type ListUsersRequest

type ListUsersRequest struct {
	Page *api.PaginationRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetPage

func (x *ListUsersRequest) GetPage() *api.PaginationRequest

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {
	Page    *api.PaginationResponse `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	Results []*UserItem             `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetPage

func (*ListUsersResponse) GetResults

func (x *ListUsersResponse) GetResults() []*UserItem

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type Result

type Result struct {

	// Deprecated: Marked as deprecated in aserto/decision-logs/v2/decision_logs.proto.
	Log   string    `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
	Event *Decision `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetEvent

func (x *Result) GetEvent() *Decision

func (*Result) GetLog deprecated

func (x *Result) GetLog() string

Deprecated: Marked as deprecated in aserto/decision-logs/v2/decision_logs.proto.

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type UnimplementedDecisionLogsServer

type UnimplementedDecisionLogsServer struct {
}

UnimplementedDecisionLogsServer should be embedded to have forward compatible implementations.

func (UnimplementedDecisionLogsServer) ExecuteQuery

func (UnimplementedDecisionLogsServer) GetDecisionLog

func (UnimplementedDecisionLogsServer) GetDecisions

func (UnimplementedDecisionLogsServer) GetUser

func (UnimplementedDecisionLogsServer) ListDecisionLogs

func (UnimplementedDecisionLogsServer) ListUsers

type UnsafeDecisionLogsServer

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

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

type User

type User struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetUrl

func (x *User) GetUrl() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserItem

type UserItem struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*UserItem) Descriptor deprecated

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

Deprecated: Use UserItem.ProtoReflect.Descriptor instead.

func (*UserItem) GetId

func (x *UserItem) GetId() string

func (*UserItem) GetUpdatedAt

func (x *UserItem) GetUpdatedAt() *timestamppb.Timestamp

func (*UserItem) ProtoMessage

func (*UserItem) ProtoMessage()

func (*UserItem) ProtoReflect

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

func (*UserItem) Reset

func (x *UserItem) Reset()

func (*UserItem) String

func (x *UserItem) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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