decision_logs

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package decision_logs is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var DecisionLogs_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aserto.decision_logs.v1.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{},
	Metadata: "aserto/decision_logs/v1/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_v1_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 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)
}

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 ExecuteQueryRequest

type ExecuteQueryRequest struct {
	Page     *v1.PaginationRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	PolicyId string                `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	TopN     int64                 `protobuf:"varint,3,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) GetPage

func (*ExecuteQueryRequest) GetPolicyId

func (x *ExecuteQueryRequest) GetPolicyId() 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    *v1.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 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     *v1.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 added in v0.0.37

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    *v1.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 *v1.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() *v1.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    *v1.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 (x *ListUsersResponse) GetPage() *v1.PaginationResponse

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 {
	Log string `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetLog

func (x *Result) GetLog() string

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

Jump to

Keyboard shortcuts

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