policy_builder

package
v0.8.66 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Overview

Package policy_builder is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	PolicyBuilder_ListPolicyBuilders_FullMethodName  = "/aserto.tenant.policy_builder.v1.PolicyBuilder/ListPolicyBuilders"
	PolicyBuilder_CreatePolicyBuilder_FullMethodName = "/aserto.tenant.policy_builder.v1.PolicyBuilder/CreatePolicyBuilder"
	PolicyBuilder_DeletePolicyBuilder_FullMethodName = "/aserto.tenant.policy_builder.v1.PolicyBuilder/DeletePolicyBuilder"
)

Variables

View Source
var File_aserto_tenant_policy_builder_v1_policy_builder_proto protoreflect.FileDescriptor
View Source
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 (*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 (*CreatePolicyBuilderResponse) ProtoMessage

func (*CreatePolicyBuilderResponse) ProtoMessage()

func (*CreatePolicyBuilderResponse) ProtoReflect

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 (*DeletePolicyBuilderRequest) ProtoMessage

func (*DeletePolicyBuilderRequest) ProtoMessage()

func (*DeletePolicyBuilderRequest) ProtoReflect

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 (*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 (*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 (*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.

type PolicyBuilderServer

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

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.

Jump to

Keyboard shortcuts

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