v1

package
v0.4.781 Latest Latest
Warning

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

Go to latest
Published: May 20, 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_webrequestrun_v1_webrequestrun_proto protoreflect.FileDescriptor
View Source
var WebRequestRunService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.webrequestrun.v1.WebRequestRunService",
	HandlerType: (*WebRequestRunServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListWebRequestRuns",
			Handler:    _WebRequestRunService_ListWebRequestRuns_Handler,
		},
		{
			MethodName: "CreateWebRequestRun",
			Handler:    _WebRequestRunService_CreateWebRequestRun_Handler,
		},
		{
			MethodName: "GetWebRequestRun",
			Handler:    _WebRequestRunService_GetWebRequestRun_Handler,
		},
		{
			MethodName: "UpdateWebRequestRun",
			Handler:    _WebRequestRunService_UpdateWebRequestRun_Handler,
		},
		{
			MethodName: "DeleteWebRequestRun",
			Handler:    _WebRequestRunService_DeleteWebRequestRun_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/webrequestrun/v1/webrequestrun.proto",
}

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

Functions

func RegisterWebRequestRunServiceHandler added in v0.4.687

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

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

func RegisterWebRequestRunServiceHandlerClient added in v0.4.687

func RegisterWebRequestRunServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WebRequestRunServiceClient) error

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

func RegisterWebRequestRunServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterWebRequestRunServiceHandlerServer added in v0.4.687

func RegisterWebRequestRunServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WebRequestRunServiceServer) error

RegisterWebRequestRunServiceHandlerServer registers the http handlers for service WebRequestRunService to "mux". UnaryRPC :call WebRequestRunServiceServer 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 RegisterWebRequestRunServiceHandlerFromEndpoint instead.

func RegisterWebRequestRunServiceServer

func RegisterWebRequestRunServiceServer(s grpc.ServiceRegistrar, srv WebRequestRunServiceServer)

Types

type CreateWebRequestRunRequest

type CreateWebRequestRunRequest struct {
	Webrequestrun *v1alpha1.WebRequestRun `protobuf:"bytes,1,opt,name=webrequestrun,proto3" json:"webrequestrun,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWebRequestRunRequest) Descriptor deprecated

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

Deprecated: Use CreateWebRequestRunRequest.ProtoReflect.Descriptor instead.

func (*CreateWebRequestRunRequest) GetWebrequestrun added in v0.4.475

func (x *CreateWebRequestRunRequest) GetWebrequestrun() *v1alpha1.WebRequestRun

func (*CreateWebRequestRunRequest) ProtoMessage

func (*CreateWebRequestRunRequest) ProtoMessage()

func (*CreateWebRequestRunRequest) ProtoReflect

func (*CreateWebRequestRunRequest) Reset

func (x *CreateWebRequestRunRequest) Reset()

func (*CreateWebRequestRunRequest) String

func (x *CreateWebRequestRunRequest) String() string

type CreateWebRequestRunResponse

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

func (*CreateWebRequestRunResponse) Descriptor deprecated

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

Deprecated: Use CreateWebRequestRunResponse.ProtoReflect.Descriptor instead.

func (*CreateWebRequestRunResponse) ProtoMessage

func (*CreateWebRequestRunResponse) ProtoMessage()

func (*CreateWebRequestRunResponse) ProtoReflect

func (*CreateWebRequestRunResponse) Reset

func (x *CreateWebRequestRunResponse) Reset()

func (*CreateWebRequestRunResponse) String

func (x *CreateWebRequestRunResponse) String() string

type DeleteWebRequestRunRequest

type DeleteWebRequestRunRequest 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 (*DeleteWebRequestRunRequest) Descriptor deprecated

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

Deprecated: Use DeleteWebRequestRunRequest.ProtoReflect.Descriptor instead.

func (*DeleteWebRequestRunRequest) GetName

func (x *DeleteWebRequestRunRequest) GetName() string

func (*DeleteWebRequestRunRequest) GetNamespace

func (x *DeleteWebRequestRunRequest) GetNamespace() string

func (*DeleteWebRequestRunRequest) ProtoMessage

func (*DeleteWebRequestRunRequest) ProtoMessage()

func (*DeleteWebRequestRunRequest) ProtoReflect

func (*DeleteWebRequestRunRequest) Reset

func (x *DeleteWebRequestRunRequest) Reset()

func (*DeleteWebRequestRunRequest) String

func (x *DeleteWebRequestRunRequest) String() string

type DeleteWebRequestRunResponse

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

func (*DeleteWebRequestRunResponse) Descriptor deprecated

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

Deprecated: Use DeleteWebRequestRunResponse.ProtoReflect.Descriptor instead.

func (*DeleteWebRequestRunResponse) ProtoMessage

func (*DeleteWebRequestRunResponse) ProtoMessage()

func (*DeleteWebRequestRunResponse) ProtoReflect

func (*DeleteWebRequestRunResponse) Reset

func (x *DeleteWebRequestRunResponse) Reset()

func (*DeleteWebRequestRunResponse) String

func (x *DeleteWebRequestRunResponse) String() string

type GetWebRequestRunRequest

type GetWebRequestRunRequest 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 (*GetWebRequestRunRequest) Descriptor deprecated

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

Deprecated: Use GetWebRequestRunRequest.ProtoReflect.Descriptor instead.

func (*GetWebRequestRunRequest) GetName

func (x *GetWebRequestRunRequest) GetName() string

func (*GetWebRequestRunRequest) GetNamespace

func (x *GetWebRequestRunRequest) GetNamespace() string

func (*GetWebRequestRunRequest) ProtoMessage

func (*GetWebRequestRunRequest) ProtoMessage()

func (*GetWebRequestRunRequest) ProtoReflect

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

func (*GetWebRequestRunRequest) Reset

func (x *GetWebRequestRunRequest) Reset()

func (*GetWebRequestRunRequest) String

func (x *GetWebRequestRunRequest) String() string

type GetWebRequestRunResponse

type GetWebRequestRunResponse struct {
	Webrequestrun *v1alpha1.WebRequestRun `protobuf:"bytes,1,opt,name=webrequestrun,proto3" json:"webrequestrun,omitempty"`
	Yaml          string                  `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWebRequestRunResponse) Descriptor deprecated

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

Deprecated: Use GetWebRequestRunResponse.ProtoReflect.Descriptor instead.

func (*GetWebRequestRunResponse) GetWebrequestrun added in v0.4.475

func (x *GetWebRequestRunResponse) GetWebrequestrun() *v1alpha1.WebRequestRun

func (*GetWebRequestRunResponse) GetYaml

func (x *GetWebRequestRunResponse) GetYaml() string

func (*GetWebRequestRunResponse) ProtoMessage

func (*GetWebRequestRunResponse) ProtoMessage()

func (*GetWebRequestRunResponse) ProtoReflect

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

func (*GetWebRequestRunResponse) Reset

func (x *GetWebRequestRunResponse) Reset()

func (*GetWebRequestRunResponse) String

func (x *GetWebRequestRunResponse) String() string

type ListWebRequestRunsRequest

type ListWebRequestRunsRequest 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 (*ListWebRequestRunsRequest) Descriptor deprecated

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

Deprecated: Use ListWebRequestRunsRequest.ProtoReflect.Descriptor instead.

func (*ListWebRequestRunsRequest) GetLabels

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

func (*ListWebRequestRunsRequest) GetName

func (x *ListWebRequestRunsRequest) GetName() string

func (*ListWebRequestRunsRequest) GetNamespace

func (x *ListWebRequestRunsRequest) GetNamespace() string

func (*ListWebRequestRunsRequest) ProtoMessage

func (*ListWebRequestRunsRequest) ProtoMessage()

func (*ListWebRequestRunsRequest) ProtoReflect

func (*ListWebRequestRunsRequest) Reset

func (x *ListWebRequestRunsRequest) Reset()

func (*ListWebRequestRunsRequest) String

func (x *ListWebRequestRunsRequest) String() string

type ListWebRequestRunsResponse

type ListWebRequestRunsResponse struct {
	Webrequestruns *v1alpha1.WebRequestRunList `protobuf:"bytes,1,opt,name=webrequestruns,proto3" json:"webrequestruns,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 (*ListWebRequestRunsResponse) Descriptor deprecated

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

Deprecated: Use ListWebRequestRunsResponse.ProtoReflect.Descriptor instead.

func (*ListWebRequestRunsResponse) GetNextPageToken added in v0.4.472

func (x *ListWebRequestRunsResponse) GetNextPageToken() string

func (*ListWebRequestRunsResponse) GetWebrequestruns added in v0.4.472

func (x *ListWebRequestRunsResponse) GetWebrequestruns() *v1alpha1.WebRequestRunList

func (*ListWebRequestRunsResponse) ProtoMessage

func (*ListWebRequestRunsResponse) ProtoMessage()

func (*ListWebRequestRunsResponse) ProtoReflect

func (*ListWebRequestRunsResponse) Reset

func (x *ListWebRequestRunsResponse) Reset()

func (*ListWebRequestRunsResponse) String

func (x *ListWebRequestRunsResponse) String() string

type UnimplementedWebRequestRunServiceServer

type UnimplementedWebRequestRunServiceServer struct {
}

UnimplementedWebRequestRunServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedWebRequestRunServiceServer) CreateWebRequestRun

func (UnimplementedWebRequestRunServiceServer) DeleteWebRequestRun

func (UnimplementedWebRequestRunServiceServer) GetWebRequestRun

func (UnimplementedWebRequestRunServiceServer) ListWebRequestRuns

func (UnimplementedWebRequestRunServiceServer) UpdateWebRequestRun

type UnsafeWebRequestRunServiceServer added in v0.4.687

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

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

type UpdateWebRequestRunRequest

type UpdateWebRequestRunRequest struct {
	Webrequestrun *v1alpha1.WebRequestRun `protobuf:"bytes,1,opt,name=webrequestrun,proto3" json:"webrequestrun,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 (*UpdateWebRequestRunRequest) Descriptor deprecated

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

Deprecated: Use UpdateWebRequestRunRequest.ProtoReflect.Descriptor instead.

func (*UpdateWebRequestRunRequest) GetFieldMask added in v0.4.422

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

func (*UpdateWebRequestRunRequest) GetWebrequestrun added in v0.4.472

func (x *UpdateWebRequestRunRequest) GetWebrequestrun() *v1alpha1.WebRequestRun

func (*UpdateWebRequestRunRequest) ProtoMessage

func (*UpdateWebRequestRunRequest) ProtoMessage()

func (*UpdateWebRequestRunRequest) ProtoReflect

func (*UpdateWebRequestRunRequest) Reset

func (x *UpdateWebRequestRunRequest) Reset()

func (*UpdateWebRequestRunRequest) String

func (x *UpdateWebRequestRunRequest) String() string

type UpdateWebRequestRunResponse

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

func (*UpdateWebRequestRunResponse) Descriptor deprecated

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

Deprecated: Use UpdateWebRequestRunResponse.ProtoReflect.Descriptor instead.

func (*UpdateWebRequestRunResponse) ProtoMessage

func (*UpdateWebRequestRunResponse) ProtoMessage()

func (*UpdateWebRequestRunResponse) ProtoReflect

func (*UpdateWebRequestRunResponse) Reset

func (x *UpdateWebRequestRunResponse) Reset()

func (*UpdateWebRequestRunResponse) String

func (x *UpdateWebRequestRunResponse) String() string

type WebRequestRunServiceClient

type WebRequestRunServiceClient interface {
	ListWebRequestRuns(ctx context.Context, in *ListWebRequestRunsRequest, opts ...grpc.CallOption) (*ListWebRequestRunsResponse, error)
	CreateWebRequestRun(ctx context.Context, in *CreateWebRequestRunRequest, opts ...grpc.CallOption) (*CreateWebRequestRunResponse, error)
	GetWebRequestRun(ctx context.Context, in *GetWebRequestRunRequest, opts ...grpc.CallOption) (*GetWebRequestRunResponse, error)
	UpdateWebRequestRun(ctx context.Context, in *UpdateWebRequestRunRequest, opts ...grpc.CallOption) (*UpdateWebRequestRunResponse, error)
	DeleteWebRequestRun(ctx context.Context, in *DeleteWebRequestRunRequest, opts ...grpc.CallOption) (*DeleteWebRequestRunResponse, error)
}

WebRequestRunServiceClient is the client API for WebRequestRunService 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 WebRequestRunServiceServer

type WebRequestRunServiceServer interface {
	ListWebRequestRuns(context.Context, *ListWebRequestRunsRequest) (*ListWebRequestRunsResponse, error)
	CreateWebRequestRun(context.Context, *CreateWebRequestRunRequest) (*CreateWebRequestRunResponse, error)
	GetWebRequestRun(context.Context, *GetWebRequestRunRequest) (*GetWebRequestRunResponse, error)
	UpdateWebRequestRun(context.Context, *UpdateWebRequestRunRequest) (*UpdateWebRequestRunResponse, error)
	DeleteWebRequestRun(context.Context, *DeleteWebRequestRunRequest) (*DeleteWebRequestRunResponse, error)
	// contains filtered or unexported methods
}

WebRequestRunServiceServer is the server API for WebRequestRunService service. All implementations must embed UnimplementedWebRequestRunServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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