Documentation ¶
Overview ¶
Package policy_builder is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterPolicyBuilderHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPolicyBuilderHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PolicyBuilderClient) error
- func RegisterPolicyBuilderHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPolicyBuilderHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PolicyBuilderServer) error
- func RegisterPolicyBuilderServer(s grpc.ServiceRegistrar, srv PolicyBuilderServer)
- type CreatePolicyBuilderRequest
- func (*CreatePolicyBuilderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePolicyBuilderRequest) GetForceReconnect() bool
- func (x *CreatePolicyBuilderRequest) GetPolicyBuilder() *v1.PolicyBuilder
- func (x *CreatePolicyBuilderRequest) GetWorkflowFileName() string
- func (*CreatePolicyBuilderRequest) ProtoMessage()
- func (x *CreatePolicyBuilderRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePolicyBuilderRequest) Reset()
- func (x *CreatePolicyBuilderRequest) String() string
- type CreatePolicyBuilderResponse
- func (*CreatePolicyBuilderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePolicyBuilderResponse) GetId() string
- func (*CreatePolicyBuilderResponse) ProtoMessage()
- func (x *CreatePolicyBuilderResponse) ProtoReflect() protoreflect.Message
- func (x *CreatePolicyBuilderResponse) Reset()
- func (x *CreatePolicyBuilderResponse) String() string
- type DeletePolicyBuilderRequest
- func (*DeletePolicyBuilderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePolicyBuilderRequest) GetId() string
- func (*DeletePolicyBuilderRequest) ProtoMessage()
- func (x *DeletePolicyBuilderRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePolicyBuilderRequest) Reset()
- func (x *DeletePolicyBuilderRequest) String() string
- type DeletePolicyBuilderResponse
- func (*DeletePolicyBuilderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePolicyBuilderResponse) GetResult() *emptypb.Empty
- func (*DeletePolicyBuilderResponse) ProtoMessage()
- func (x *DeletePolicyBuilderResponse) ProtoReflect() protoreflect.Message
- func (x *DeletePolicyBuilderResponse) Reset()
- func (x *DeletePolicyBuilderResponse) String() string
- type ListPolicyBuildersRequest
- func (*ListPolicyBuildersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPolicyBuildersRequest) GetRegistryOrg() string
- func (x *ListPolicyBuildersRequest) GetRegistryRepo() string
- func (*ListPolicyBuildersRequest) ProtoMessage()
- func (x *ListPolicyBuildersRequest) ProtoReflect() protoreflect.Message
- func (x *ListPolicyBuildersRequest) Reset()
- func (x *ListPolicyBuildersRequest) String() string
- type ListPolicyBuildersResponse
- func (*ListPolicyBuildersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPolicyBuildersResponse) GetResults() []*v1.PolicyBuilder
- func (*ListPolicyBuildersResponse) ProtoMessage()
- func (x *ListPolicyBuildersResponse) ProtoReflect() protoreflect.Message
- func (x *ListPolicyBuildersResponse) Reset()
- func (x *ListPolicyBuildersResponse) String() string
- type PolicyBuilderClient
- type PolicyBuilderServer
- type UnimplementedPolicyBuilderServer
- func (UnimplementedPolicyBuilderServer) CreatePolicyBuilder(context.Context, *CreatePolicyBuilderRequest) (*CreatePolicyBuilderResponse, error)
- func (UnimplementedPolicyBuilderServer) DeletePolicyBuilder(context.Context, *DeletePolicyBuilderRequest) (*DeletePolicyBuilderResponse, error)
- func (UnimplementedPolicyBuilderServer) ListPolicyBuilders(context.Context, *ListPolicyBuildersRequest) (*ListPolicyBuildersResponse, error)
- type UnsafePolicyBuilderServer
Constants ¶
This section is empty.
Variables ¶
var File_aserto_tenant_policy_builder_v1_policy_builder_proto protoreflect.FileDescriptor
var PolicyBuilder_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aserto.tenant.policy_builder.v1.PolicyBuilder", HandlerType: (*PolicyBuilderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListPolicyBuilders", Handler: _PolicyBuilder_ListPolicyBuilders_Handler, }, { MethodName: "CreatePolicyBuilder", Handler: _PolicyBuilder_CreatePolicyBuilder_Handler, }, { MethodName: "DeletePolicyBuilder", Handler: _PolicyBuilder_DeletePolicyBuilder_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aserto/tenant/policy_builder/v1/policy_builder.proto", }
PolicyBuilder_ServiceDesc is the grpc.ServiceDesc for PolicyBuilder service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPolicyBuilderHandler ¶
func RegisterPolicyBuilderHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPolicyBuilderHandler registers the http handlers for service PolicyBuilder to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPolicyBuilderHandlerClient ¶
func RegisterPolicyBuilderHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PolicyBuilderClient) error
RegisterPolicyBuilderHandlerClient registers the http handlers for service PolicyBuilder to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PolicyBuilderClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PolicyBuilderClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PolicyBuilderClient" to call the correct interceptors.
func RegisterPolicyBuilderHandlerFromEndpoint ¶
func RegisterPolicyBuilderHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPolicyBuilderHandlerFromEndpoint is same as RegisterPolicyBuilderHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPolicyBuilderHandlerServer ¶
func RegisterPolicyBuilderHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PolicyBuilderServer) error
RegisterPolicyBuilderHandlerServer registers the http handlers for service PolicyBuilder to "mux". UnaryRPC :call PolicyBuilderServer 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 RegisterPolicyBuilderHandlerFromEndpoint instead.
func RegisterPolicyBuilderServer ¶
func RegisterPolicyBuilderServer(s grpc.ServiceRegistrar, srv PolicyBuilderServer)
Types ¶
type CreatePolicyBuilderRequest ¶
type CreatePolicyBuilderRequest struct { PolicyBuilder *v1.PolicyBuilder `protobuf:"bytes,1,opt,name=policy_builder,json=policyBuilder,proto3" json:"policy_builder,omitempty"` ForceReconnect bool `protobuf:"varint,2,opt,name=force_reconnect,json=forceReconnect,proto3" json:"force_reconnect,omitempty"` WorkflowFileName string `protobuf:"bytes,3,opt,name=workflow_file_name,json=workflowFileName,proto3" json:"workflow_file_name,omitempty"` // contains filtered or unexported fields }
func (*CreatePolicyBuilderRequest) Descriptor
deprecated
func (*CreatePolicyBuilderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePolicyBuilderRequest.ProtoReflect.Descriptor instead.
func (*CreatePolicyBuilderRequest) GetForceReconnect ¶
func (x *CreatePolicyBuilderRequest) GetForceReconnect() bool
func (*CreatePolicyBuilderRequest) GetPolicyBuilder ¶
func (x *CreatePolicyBuilderRequest) GetPolicyBuilder() *v1.PolicyBuilder
func (*CreatePolicyBuilderRequest) GetWorkflowFileName ¶ added in v0.8.23
func (x *CreatePolicyBuilderRequest) GetWorkflowFileName() string
func (*CreatePolicyBuilderRequest) ProtoMessage ¶
func (*CreatePolicyBuilderRequest) ProtoMessage()
func (*CreatePolicyBuilderRequest) ProtoReflect ¶
func (x *CreatePolicyBuilderRequest) ProtoReflect() protoreflect.Message
func (*CreatePolicyBuilderRequest) Reset ¶
func (x *CreatePolicyBuilderRequest) Reset()
func (*CreatePolicyBuilderRequest) String ¶
func (x *CreatePolicyBuilderRequest) String() string
type CreatePolicyBuilderResponse ¶
type CreatePolicyBuilderResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreatePolicyBuilderResponse) Descriptor
deprecated
func (*CreatePolicyBuilderResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreatePolicyBuilderResponse.ProtoReflect.Descriptor instead.
func (*CreatePolicyBuilderResponse) GetId ¶
func (x *CreatePolicyBuilderResponse) GetId() string
func (*CreatePolicyBuilderResponse) ProtoMessage ¶
func (*CreatePolicyBuilderResponse) ProtoMessage()
func (*CreatePolicyBuilderResponse) ProtoReflect ¶
func (x *CreatePolicyBuilderResponse) ProtoReflect() protoreflect.Message
func (*CreatePolicyBuilderResponse) Reset ¶
func (x *CreatePolicyBuilderResponse) Reset()
func (*CreatePolicyBuilderResponse) String ¶
func (x *CreatePolicyBuilderResponse) String() string
type DeletePolicyBuilderRequest ¶
type DeletePolicyBuilderRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeletePolicyBuilderRequest) Descriptor
deprecated
func (*DeletePolicyBuilderRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePolicyBuilderRequest.ProtoReflect.Descriptor instead.
func (*DeletePolicyBuilderRequest) GetId ¶
func (x *DeletePolicyBuilderRequest) GetId() string
func (*DeletePolicyBuilderRequest) ProtoMessage ¶
func (*DeletePolicyBuilderRequest) ProtoMessage()
func (*DeletePolicyBuilderRequest) ProtoReflect ¶
func (x *DeletePolicyBuilderRequest) ProtoReflect() protoreflect.Message
func (*DeletePolicyBuilderRequest) Reset ¶
func (x *DeletePolicyBuilderRequest) Reset()
func (*DeletePolicyBuilderRequest) String ¶
func (x *DeletePolicyBuilderRequest) String() string
type DeletePolicyBuilderResponse ¶
type DeletePolicyBuilderResponse struct { Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*DeletePolicyBuilderResponse) Descriptor
deprecated
func (*DeletePolicyBuilderResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeletePolicyBuilderResponse.ProtoReflect.Descriptor instead.
func (*DeletePolicyBuilderResponse) GetResult ¶
func (x *DeletePolicyBuilderResponse) GetResult() *emptypb.Empty
func (*DeletePolicyBuilderResponse) ProtoMessage ¶
func (*DeletePolicyBuilderResponse) ProtoMessage()
func (*DeletePolicyBuilderResponse) ProtoReflect ¶
func (x *DeletePolicyBuilderResponse) ProtoReflect() protoreflect.Message
func (*DeletePolicyBuilderResponse) Reset ¶
func (x *DeletePolicyBuilderResponse) Reset()
func (*DeletePolicyBuilderResponse) String ¶
func (x *DeletePolicyBuilderResponse) String() string
type ListPolicyBuildersRequest ¶
type ListPolicyBuildersRequest struct { RegistryRepo string `protobuf:"bytes,1,opt,name=registry_repo,json=registryRepo,proto3" json:"registry_repo,omitempty"` RegistryOrg string `protobuf:"bytes,2,opt,name=registry_org,json=registryOrg,proto3" json:"registry_org,omitempty"` // contains filtered or unexported fields }
func (*ListPolicyBuildersRequest) Descriptor
deprecated
func (*ListPolicyBuildersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPolicyBuildersRequest.ProtoReflect.Descriptor instead.
func (*ListPolicyBuildersRequest) GetRegistryOrg ¶ added in v0.8.0
func (x *ListPolicyBuildersRequest) GetRegistryOrg() string
func (*ListPolicyBuildersRequest) GetRegistryRepo ¶ added in v0.8.0
func (x *ListPolicyBuildersRequest) GetRegistryRepo() string
func (*ListPolicyBuildersRequest) ProtoMessage ¶
func (*ListPolicyBuildersRequest) ProtoMessage()
func (*ListPolicyBuildersRequest) ProtoReflect ¶
func (x *ListPolicyBuildersRequest) ProtoReflect() protoreflect.Message
func (*ListPolicyBuildersRequest) Reset ¶
func (x *ListPolicyBuildersRequest) Reset()
func (*ListPolicyBuildersRequest) String ¶
func (x *ListPolicyBuildersRequest) String() string
type ListPolicyBuildersResponse ¶
type ListPolicyBuildersResponse struct { Results []*v1.PolicyBuilder `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListPolicyBuildersResponse) Descriptor
deprecated
func (*ListPolicyBuildersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPolicyBuildersResponse.ProtoReflect.Descriptor instead.
func (*ListPolicyBuildersResponse) GetResults ¶
func (x *ListPolicyBuildersResponse) GetResults() []*v1.PolicyBuilder
func (*ListPolicyBuildersResponse) ProtoMessage ¶
func (*ListPolicyBuildersResponse) ProtoMessage()
func (*ListPolicyBuildersResponse) ProtoReflect ¶
func (x *ListPolicyBuildersResponse) ProtoReflect() protoreflect.Message
func (*ListPolicyBuildersResponse) Reset ¶
func (x *ListPolicyBuildersResponse) Reset()
func (*ListPolicyBuildersResponse) String ¶
func (x *ListPolicyBuildersResponse) String() string
type PolicyBuilderClient ¶
type PolicyBuilderClient interface { ListPolicyBuilders(ctx context.Context, in *ListPolicyBuildersRequest, opts ...grpc.CallOption) (*ListPolicyBuildersResponse, error) CreatePolicyBuilder(ctx context.Context, in *CreatePolicyBuilderRequest, opts ...grpc.CallOption) (*CreatePolicyBuilderResponse, error) DeletePolicyBuilder(ctx context.Context, in *DeletePolicyBuilderRequest, opts ...grpc.CallOption) (*DeletePolicyBuilderResponse, error) }
PolicyBuilderClient is the client API for PolicyBuilder service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPolicyBuilderClient ¶
func NewPolicyBuilderClient(cc grpc.ClientConnInterface) PolicyBuilderClient
type PolicyBuilderServer ¶
type PolicyBuilderServer interface { ListPolicyBuilders(context.Context, *ListPolicyBuildersRequest) (*ListPolicyBuildersResponse, error) CreatePolicyBuilder(context.Context, *CreatePolicyBuilderRequest) (*CreatePolicyBuilderResponse, error) DeletePolicyBuilder(context.Context, *DeletePolicyBuilderRequest) (*DeletePolicyBuilderResponse, error) }
PolicyBuilderServer is the server API for PolicyBuilder service. All implementations should embed UnimplementedPolicyBuilderServer for forward compatibility
type UnimplementedPolicyBuilderServer ¶
type UnimplementedPolicyBuilderServer struct { }
UnimplementedPolicyBuilderServer should be embedded to have forward compatible implementations.
func (UnimplementedPolicyBuilderServer) CreatePolicyBuilder ¶
func (UnimplementedPolicyBuilderServer) CreatePolicyBuilder(context.Context, *CreatePolicyBuilderRequest) (*CreatePolicyBuilderResponse, error)
func (UnimplementedPolicyBuilderServer) DeletePolicyBuilder ¶
func (UnimplementedPolicyBuilderServer) DeletePolicyBuilder(context.Context, *DeletePolicyBuilderRequest) (*DeletePolicyBuilderResponse, error)
func (UnimplementedPolicyBuilderServer) ListPolicyBuilders ¶
func (UnimplementedPolicyBuilderServer) ListPolicyBuilders(context.Context, *ListPolicyBuildersRequest) (*ListPolicyBuildersResponse, error)
type UnsafePolicyBuilderServer ¶
type UnsafePolicyBuilderServer interface {
// contains filtered or unexported methods
}
UnsafePolicyBuilderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PolicyBuilderServer will result in compilation errors.