v1

package
v0.5.302 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_metaprov_modelaapi_services_webrequest_v1_webrequest_proto protoreflect.FileDescriptor
View Source
var WebRequestService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.webrequest.v1.WebRequestService",
	HandlerType: (*WebRequestServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListWebRequests",
			Handler:    _WebRequestService_ListWebRequests_Handler,
		},
		{
			MethodName: "CreateWebRequest",
			Handler:    _WebRequestService_CreateWebRequest_Handler,
		},
		{
			MethodName: "GetWebRequest",
			Handler:    _WebRequestService_GetWebRequest_Handler,
		},
		{
			MethodName: "UpdateWebRequest",
			Handler:    _WebRequestService_UpdateWebRequest_Handler,
		},
		{
			MethodName: "DeleteWebRequest",
			Handler:    _WebRequestService_DeleteWebRequest_Handler,
		},
		{
			MethodName: "RunWebRequest",
			Handler:    _WebRequestService_RunWebRequest_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/webrequest/v1/webrequest.proto",
}

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

Functions

func RegisterWebRequestServiceHandler added in v0.4.687

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

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

func RegisterWebRequestServiceHandlerClient added in v0.4.687

func RegisterWebRequestServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WebRequestServiceClient) error

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

func RegisterWebRequestServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterWebRequestServiceHandlerServer added in v0.4.687

func RegisterWebRequestServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WebRequestServiceServer) error

RegisterWebRequestServiceHandlerServer registers the http handlers for service WebRequestService to "mux". UnaryRPC :call WebRequestServiceServer 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 RegisterWebRequestServiceHandlerFromEndpoint instead.

func RegisterWebRequestServiceServer

func RegisterWebRequestServiceServer(s grpc.ServiceRegistrar, srv WebRequestServiceServer)

Types

type CreateWebRequestRequest

type CreateWebRequestRequest struct {
	Webrequest *v1alpha1.WebRequest `protobuf:"bytes,1,opt,name=webrequest,proto3" json:"webrequest,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWebRequestRequest) Descriptor deprecated

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

Deprecated: Use CreateWebRequestRequest.ProtoReflect.Descriptor instead.

func (*CreateWebRequestRequest) GetWebrequest added in v0.4.475

func (x *CreateWebRequestRequest) GetWebrequest() *v1alpha1.WebRequest

func (*CreateWebRequestRequest) ProtoMessage

func (*CreateWebRequestRequest) ProtoMessage()

func (*CreateWebRequestRequest) ProtoReflect

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

func (*CreateWebRequestRequest) Reset

func (x *CreateWebRequestRequest) Reset()

func (*CreateWebRequestRequest) String

func (x *CreateWebRequestRequest) String() string

type CreateWebRequestResponse

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

func (*CreateWebRequestResponse) Descriptor deprecated

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

Deprecated: Use CreateWebRequestResponse.ProtoReflect.Descriptor instead.

func (*CreateWebRequestResponse) ProtoMessage

func (*CreateWebRequestResponse) ProtoMessage()

func (*CreateWebRequestResponse) ProtoReflect

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

func (*CreateWebRequestResponse) Reset

func (x *CreateWebRequestResponse) Reset()

func (*CreateWebRequestResponse) String

func (x *CreateWebRequestResponse) String() string

type DeleteWebRequestRequest

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

func (*DeleteWebRequestRequest) Descriptor deprecated

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

Deprecated: Use DeleteWebRequestRequest.ProtoReflect.Descriptor instead.

func (*DeleteWebRequestRequest) GetName

func (x *DeleteWebRequestRequest) GetName() string

func (*DeleteWebRequestRequest) GetNamespace

func (x *DeleteWebRequestRequest) GetNamespace() string

func (*DeleteWebRequestRequest) ProtoMessage

func (*DeleteWebRequestRequest) ProtoMessage()

func (*DeleteWebRequestRequest) ProtoReflect

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

func (*DeleteWebRequestRequest) Reset

func (x *DeleteWebRequestRequest) Reset()

func (*DeleteWebRequestRequest) String

func (x *DeleteWebRequestRequest) String() string

type DeleteWebRequestResponse

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

func (*DeleteWebRequestResponse) Descriptor deprecated

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

Deprecated: Use DeleteWebRequestResponse.ProtoReflect.Descriptor instead.

func (*DeleteWebRequestResponse) ProtoMessage

func (*DeleteWebRequestResponse) ProtoMessage()

func (*DeleteWebRequestResponse) ProtoReflect

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

func (*DeleteWebRequestResponse) Reset

func (x *DeleteWebRequestResponse) Reset()

func (*DeleteWebRequestResponse) String

func (x *DeleteWebRequestResponse) String() string

type GetWebRequestRequest

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

func (*GetWebRequestRequest) Descriptor deprecated

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

Deprecated: Use GetWebRequestRequest.ProtoReflect.Descriptor instead.

func (*GetWebRequestRequest) GetName

func (x *GetWebRequestRequest) GetName() string

func (*GetWebRequestRequest) GetNamespace

func (x *GetWebRequestRequest) GetNamespace() string

func (*GetWebRequestRequest) ProtoMessage

func (*GetWebRequestRequest) ProtoMessage()

func (*GetWebRequestRequest) ProtoReflect

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

func (*GetWebRequestRequest) Reset

func (x *GetWebRequestRequest) Reset()

func (*GetWebRequestRequest) String

func (x *GetWebRequestRequest) String() string

type GetWebRequestResponse

type GetWebRequestResponse struct {
	Webrequest *v1alpha1.WebRequest `protobuf:"bytes,1,opt,name=webrequest,proto3" json:"webrequest,omitempty"`
	Yaml       string               `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWebRequestResponse) Descriptor deprecated

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

Deprecated: Use GetWebRequestResponse.ProtoReflect.Descriptor instead.

func (*GetWebRequestResponse) GetWebrequest added in v0.4.472

func (x *GetWebRequestResponse) GetWebrequest() *v1alpha1.WebRequest

func (*GetWebRequestResponse) GetYaml

func (x *GetWebRequestResponse) GetYaml() string

func (*GetWebRequestResponse) ProtoMessage

func (*GetWebRequestResponse) ProtoMessage()

func (*GetWebRequestResponse) ProtoReflect

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

func (*GetWebRequestResponse) Reset

func (x *GetWebRequestResponse) Reset()

func (*GetWebRequestResponse) String

func (x *GetWebRequestResponse) String() string

type ListWebRequestsRequest

type ListWebRequestsRequest struct {
	Namespace string            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Labels    map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListWebRequestsRequest) Descriptor deprecated

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

Deprecated: Use ListWebRequestsRequest.ProtoReflect.Descriptor instead.

func (*ListWebRequestsRequest) GetLabels

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

func (*ListWebRequestsRequest) GetName

func (x *ListWebRequestsRequest) GetName() string

func (*ListWebRequestsRequest) GetNamespace

func (x *ListWebRequestsRequest) GetNamespace() string

func (*ListWebRequestsRequest) ProtoMessage

func (*ListWebRequestsRequest) ProtoMessage()

func (*ListWebRequestsRequest) ProtoReflect

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

func (*ListWebRequestsRequest) Reset

func (x *ListWebRequestsRequest) Reset()

func (*ListWebRequestsRequest) String

func (x *ListWebRequestsRequest) String() string

type ListWebRequestsResponse

type ListWebRequestsResponse struct {
	Webrequests   *v1alpha1.WebRequestList `protobuf:"bytes,1,opt,name=webrequests,proto3" json:"webrequests,omitempty"`
	NextPageToken string                   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWebRequestsResponse) Descriptor deprecated

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

Deprecated: Use ListWebRequestsResponse.ProtoReflect.Descriptor instead.

func (*ListWebRequestsResponse) GetNextPageToken added in v0.4.472

func (x *ListWebRequestsResponse) GetNextPageToken() string

func (*ListWebRequestsResponse) GetWebrequests added in v0.4.472

func (x *ListWebRequestsResponse) GetWebrequests() *v1alpha1.WebRequestList

func (*ListWebRequestsResponse) ProtoMessage

func (*ListWebRequestsResponse) ProtoMessage()

func (*ListWebRequestsResponse) ProtoReflect

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

func (*ListWebRequestsResponse) Reset

func (x *ListWebRequestsResponse) Reset()

func (*ListWebRequestsResponse) String

func (x *ListWebRequestsResponse) String() string

type RunWebRequestRequest

type RunWebRequestRequest struct {
	Webrequest *v1alpha1.WebRequest `protobuf:"bytes,1,opt,name=webrequest,proto3" json:"webrequest,omitempty"`
	// contains filtered or unexported fields
}

func (*RunWebRequestRequest) Descriptor deprecated

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

Deprecated: Use RunWebRequestRequest.ProtoReflect.Descriptor instead.

func (*RunWebRequestRequest) GetWebrequest added in v0.4.479

func (x *RunWebRequestRequest) GetWebrequest() *v1alpha1.WebRequest

func (*RunWebRequestRequest) ProtoMessage

func (*RunWebRequestRequest) ProtoMessage()

func (*RunWebRequestRequest) ProtoReflect

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

func (*RunWebRequestRequest) Reset

func (x *RunWebRequestRequest) Reset()

func (*RunWebRequestRequest) String

func (x *RunWebRequestRequest) String() string

type RunWebRequestResponse

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

func (*RunWebRequestResponse) Descriptor deprecated

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

Deprecated: Use RunWebRequestResponse.ProtoReflect.Descriptor instead.

func (*RunWebRequestResponse) ProtoMessage

func (*RunWebRequestResponse) ProtoMessage()

func (*RunWebRequestResponse) ProtoReflect

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

func (*RunWebRequestResponse) Reset

func (x *RunWebRequestResponse) Reset()

func (*RunWebRequestResponse) String

func (x *RunWebRequestResponse) String() string

type UnimplementedWebRequestServiceServer

type UnimplementedWebRequestServiceServer struct {
}

UnimplementedWebRequestServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedWebRequestServiceServer) CreateWebRequest

func (UnimplementedWebRequestServiceServer) DeleteWebRequest

func (UnimplementedWebRequestServiceServer) GetWebRequest

func (UnimplementedWebRequestServiceServer) ListWebRequests

func (UnimplementedWebRequestServiceServer) RunWebRequest

func (UnimplementedWebRequestServiceServer) UpdateWebRequest

type UnsafeWebRequestServiceServer added in v0.4.687

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

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

type UpdateWebRequestRequest

type UpdateWebRequestRequest struct {
	Webrequest *v1alpha1.WebRequest  `protobuf:"bytes,1,opt,name=webrequest,proto3" json:"webrequest,omitempty"`
	FieldMask  *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateWebRequestRequest) Descriptor deprecated

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

Deprecated: Use UpdateWebRequestRequest.ProtoReflect.Descriptor instead.

func (*UpdateWebRequestRequest) GetFieldMask added in v0.4.422

func (x *UpdateWebRequestRequest) GetFieldMask() *field_mask.FieldMask

func (*UpdateWebRequestRequest) GetWebrequest added in v0.4.475

func (x *UpdateWebRequestRequest) GetWebrequest() *v1alpha1.WebRequest

func (*UpdateWebRequestRequest) ProtoMessage

func (*UpdateWebRequestRequest) ProtoMessage()

func (*UpdateWebRequestRequest) ProtoReflect

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

func (*UpdateWebRequestRequest) Reset

func (x *UpdateWebRequestRequest) Reset()

func (*UpdateWebRequestRequest) String

func (x *UpdateWebRequestRequest) String() string

type UpdateWebRequestResponse

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

func (*UpdateWebRequestResponse) Descriptor deprecated

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

Deprecated: Use UpdateWebRequestResponse.ProtoReflect.Descriptor instead.

func (*UpdateWebRequestResponse) ProtoMessage

func (*UpdateWebRequestResponse) ProtoMessage()

func (*UpdateWebRequestResponse) ProtoReflect

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

func (*UpdateWebRequestResponse) Reset

func (x *UpdateWebRequestResponse) Reset()

func (*UpdateWebRequestResponse) String

func (x *UpdateWebRequestResponse) String() string

type WebRequestServiceClient

type WebRequestServiceClient interface {
	ListWebRequests(ctx context.Context, in *ListWebRequestsRequest, opts ...grpc.CallOption) (*ListWebRequestsResponse, error)
	CreateWebRequest(ctx context.Context, in *CreateWebRequestRequest, opts ...grpc.CallOption) (*CreateWebRequestResponse, error)
	GetWebRequest(ctx context.Context, in *GetWebRequestRequest, opts ...grpc.CallOption) (*GetWebRequestResponse, error)
	UpdateWebRequest(ctx context.Context, in *UpdateWebRequestRequest, opts ...grpc.CallOption) (*UpdateWebRequestResponse, error)
	DeleteWebRequest(ctx context.Context, in *DeleteWebRequestRequest, opts ...grpc.CallOption) (*DeleteWebRequestResponse, error)
	RunWebRequest(ctx context.Context, in *RunWebRequestRequest, opts ...grpc.CallOption) (*RunWebRequestResponse, error)
}

WebRequestServiceClient is the client API for WebRequestService 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 WebRequestServiceServer

WebRequestServiceServer is the server API for WebRequestService service. All implementations must embed UnimplementedWebRequestServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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