v1

package
v0.4.886 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 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_sqlqueryrun_v1_sqlqueryrun_proto protoreflect.FileDescriptor
View Source
var SqlQueryRunService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.sqlqueryrun.v1.SqlQueryRunService",
	HandlerType: (*SqlQueryRunServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListSqlQuerieRuns",
			Handler:    _SqlQueryRunService_ListSqlQuerieRuns_Handler,
		},
		{
			MethodName: "CreateSqlQueryRun",
			Handler:    _SqlQueryRunService_CreateSqlQueryRun_Handler,
		},
		{
			MethodName: "GetSqlQueryRun",
			Handler:    _SqlQueryRunService_GetSqlQueryRun_Handler,
		},
		{
			MethodName: "UpdateSqlQueryRun",
			Handler:    _SqlQueryRunService_UpdateSqlQueryRun_Handler,
		},
		{
			MethodName: "DeleteSqlQueryRun",
			Handler:    _SqlQueryRunService_DeleteSqlQueryRun_Handler,
		},
		{
			MethodName: "RunSqlQueryRun",
			Handler:    _SqlQueryRunService_RunSqlQueryRun_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/sqlqueryrun/v1/sqlqueryrun.proto",
}

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

Functions

func RegisterSqlQueryRunServiceHandler added in v0.4.687

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

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

func RegisterSqlQueryRunServiceHandlerClient added in v0.4.687

func RegisterSqlQueryRunServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SqlQueryRunServiceClient) error

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

func RegisterSqlQueryRunServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterSqlQueryRunServiceHandlerServer added in v0.4.687

func RegisterSqlQueryRunServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SqlQueryRunServiceServer) error

RegisterSqlQueryRunServiceHandlerServer registers the http handlers for service SqlQueryRunService to "mux". UnaryRPC :call SqlQueryRunServiceServer 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 RegisterSqlQueryRunServiceHandlerFromEndpoint instead.

func RegisterSqlQueryRunServiceServer

func RegisterSqlQueryRunServiceServer(s grpc.ServiceRegistrar, srv SqlQueryRunServiceServer)

Types

type CreateSqlQueryRunRequest

type CreateSqlQueryRunRequest struct {
	Sqlqueryrun *v1alpha1.SqlQueryRun `protobuf:"bytes,1,opt,name=sqlqueryrun,proto3" json:"sqlqueryrun,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSqlQueryRunRequest) Descriptor deprecated

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

Deprecated: Use CreateSqlQueryRunRequest.ProtoReflect.Descriptor instead.

func (*CreateSqlQueryRunRequest) GetSqlqueryrun added in v0.4.475

func (x *CreateSqlQueryRunRequest) GetSqlqueryrun() *v1alpha1.SqlQueryRun

func (*CreateSqlQueryRunRequest) ProtoMessage

func (*CreateSqlQueryRunRequest) ProtoMessage()

func (*CreateSqlQueryRunRequest) ProtoReflect

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

func (*CreateSqlQueryRunRequest) Reset

func (x *CreateSqlQueryRunRequest) Reset()

func (*CreateSqlQueryRunRequest) String

func (x *CreateSqlQueryRunRequest) String() string

type CreateSqlQueryRunResponse

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

func (*CreateSqlQueryRunResponse) Descriptor deprecated

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

Deprecated: Use CreateSqlQueryRunResponse.ProtoReflect.Descriptor instead.

func (*CreateSqlQueryRunResponse) ProtoMessage

func (*CreateSqlQueryRunResponse) ProtoMessage()

func (*CreateSqlQueryRunResponse) ProtoReflect

func (*CreateSqlQueryRunResponse) Reset

func (x *CreateSqlQueryRunResponse) Reset()

func (*CreateSqlQueryRunResponse) String

func (x *CreateSqlQueryRunResponse) String() string

type DeleteSqlQueryRunRequest

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

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

Deprecated: Use DeleteSqlQueryRunRequest.ProtoReflect.Descriptor instead.

func (*DeleteSqlQueryRunRequest) GetName

func (x *DeleteSqlQueryRunRequest) GetName() string

func (*DeleteSqlQueryRunRequest) GetNamespace

func (x *DeleteSqlQueryRunRequest) GetNamespace() string

func (*DeleteSqlQueryRunRequest) ProtoMessage

func (*DeleteSqlQueryRunRequest) ProtoMessage()

func (*DeleteSqlQueryRunRequest) ProtoReflect

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

func (*DeleteSqlQueryRunRequest) Reset

func (x *DeleteSqlQueryRunRequest) Reset()

func (*DeleteSqlQueryRunRequest) String

func (x *DeleteSqlQueryRunRequest) String() string

type DeleteSqlQueryRunResponse

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

func (*DeleteSqlQueryRunResponse) Descriptor deprecated

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

Deprecated: Use DeleteSqlQueryRunResponse.ProtoReflect.Descriptor instead.

func (*DeleteSqlQueryRunResponse) ProtoMessage

func (*DeleteSqlQueryRunResponse) ProtoMessage()

func (*DeleteSqlQueryRunResponse) ProtoReflect

func (*DeleteSqlQueryRunResponse) Reset

func (x *DeleteSqlQueryRunResponse) Reset()

func (*DeleteSqlQueryRunResponse) String

func (x *DeleteSqlQueryRunResponse) String() string

type GetSqlQueryRunRequest

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

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

Deprecated: Use GetSqlQueryRunRequest.ProtoReflect.Descriptor instead.

func (*GetSqlQueryRunRequest) GetName

func (x *GetSqlQueryRunRequest) GetName() string

func (*GetSqlQueryRunRequest) GetNamespace

func (x *GetSqlQueryRunRequest) GetNamespace() string

func (*GetSqlQueryRunRequest) ProtoMessage

func (*GetSqlQueryRunRequest) ProtoMessage()

func (*GetSqlQueryRunRequest) ProtoReflect

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

func (*GetSqlQueryRunRequest) Reset

func (x *GetSqlQueryRunRequest) Reset()

func (*GetSqlQueryRunRequest) String

func (x *GetSqlQueryRunRequest) String() string

type GetSqlQueryRunResponse

type GetSqlQueryRunResponse struct {
	Sqlqueryrun *v1alpha1.SqlQueryRun `protobuf:"bytes,1,opt,name=sqlqueryrun,proto3" json:"sqlqueryrun,omitempty"`
	Yaml        string                `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSqlQueryRunResponse) Descriptor deprecated

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

Deprecated: Use GetSqlQueryRunResponse.ProtoReflect.Descriptor instead.

func (*GetSqlQueryRunResponse) GetSqlqueryrun added in v0.4.472

func (x *GetSqlQueryRunResponse) GetSqlqueryrun() *v1alpha1.SqlQueryRun

func (*GetSqlQueryRunResponse) GetYaml

func (x *GetSqlQueryRunResponse) GetYaml() string

func (*GetSqlQueryRunResponse) ProtoMessage

func (*GetSqlQueryRunResponse) ProtoMessage()

func (*GetSqlQueryRunResponse) ProtoReflect

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

func (*GetSqlQueryRunResponse) Reset

func (x *GetSqlQueryRunResponse) Reset()

func (*GetSqlQueryRunResponse) String

func (x *GetSqlQueryRunResponse) String() string

type ListSqlQueryRunsRequest

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

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

Deprecated: Use ListSqlQueryRunsRequest.ProtoReflect.Descriptor instead.

func (*ListSqlQueryRunsRequest) GetLabels

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

func (*ListSqlQueryRunsRequest) GetName

func (x *ListSqlQueryRunsRequest) GetName() string

func (*ListSqlQueryRunsRequest) GetNamespace

func (x *ListSqlQueryRunsRequest) GetNamespace() string

func (*ListSqlQueryRunsRequest) ProtoMessage

func (*ListSqlQueryRunsRequest) ProtoMessage()

func (*ListSqlQueryRunsRequest) ProtoReflect

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

func (*ListSqlQueryRunsRequest) Reset

func (x *ListSqlQueryRunsRequest) Reset()

func (*ListSqlQueryRunsRequest) String

func (x *ListSqlQueryRunsRequest) String() string

type ListSqlQueryRunsResponse

type ListSqlQueryRunsResponse struct {
	Sqlqueryruns  *v1alpha1.SqlQueryRunList `protobuf:"bytes,1,opt,name=sqlqueryruns,proto3" json:"sqlqueryruns,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 (*ListSqlQueryRunsResponse) Descriptor deprecated

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

Deprecated: Use ListSqlQueryRunsResponse.ProtoReflect.Descriptor instead.

func (*ListSqlQueryRunsResponse) GetNextPageToken added in v0.4.472

func (x *ListSqlQueryRunsResponse) GetNextPageToken() string

func (*ListSqlQueryRunsResponse) GetSqlqueryruns added in v0.4.472

func (x *ListSqlQueryRunsResponse) GetSqlqueryruns() *v1alpha1.SqlQueryRunList

func (*ListSqlQueryRunsResponse) ProtoMessage

func (*ListSqlQueryRunsResponse) ProtoMessage()

func (*ListSqlQueryRunsResponse) ProtoReflect

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

func (*ListSqlQueryRunsResponse) Reset

func (x *ListSqlQueryRunsResponse) Reset()

func (*ListSqlQueryRunsResponse) String

func (x *ListSqlQueryRunsResponse) String() string

type RunSqlQueryRunRequest

type RunSqlQueryRunRequest struct {
	Sqlqueryrun *v1alpha1.SqlQueryRun `protobuf:"bytes,1,opt,name=sqlqueryrun,proto3" json:"sqlqueryrun,omitempty"`
	// contains filtered or unexported fields
}

func (*RunSqlQueryRunRequest) Descriptor deprecated

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

Deprecated: Use RunSqlQueryRunRequest.ProtoReflect.Descriptor instead.

func (*RunSqlQueryRunRequest) GetSqlqueryrun added in v0.4.479

func (x *RunSqlQueryRunRequest) GetSqlqueryrun() *v1alpha1.SqlQueryRun

func (*RunSqlQueryRunRequest) ProtoMessage

func (*RunSqlQueryRunRequest) ProtoMessage()

func (*RunSqlQueryRunRequest) ProtoReflect

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

func (*RunSqlQueryRunRequest) Reset

func (x *RunSqlQueryRunRequest) Reset()

func (*RunSqlQueryRunRequest) String

func (x *RunSqlQueryRunRequest) String() string

type RunSqlQueryRunResponse

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

func (*RunSqlQueryRunResponse) Descriptor deprecated

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

Deprecated: Use RunSqlQueryRunResponse.ProtoReflect.Descriptor instead.

func (*RunSqlQueryRunResponse) ProtoMessage

func (*RunSqlQueryRunResponse) ProtoMessage()

func (*RunSqlQueryRunResponse) ProtoReflect

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

func (*RunSqlQueryRunResponse) Reset

func (x *RunSqlQueryRunResponse) Reset()

func (*RunSqlQueryRunResponse) String

func (x *RunSqlQueryRunResponse) String() string

type SqlQueryRunServiceClient

type SqlQueryRunServiceClient interface {
	ListSqlQuerieRuns(ctx context.Context, in *ListSqlQueryRunsRequest, opts ...grpc.CallOption) (*ListSqlQueryRunsResponse, error)
	CreateSqlQueryRun(ctx context.Context, in *CreateSqlQueryRunRequest, opts ...grpc.CallOption) (*CreateSqlQueryRunResponse, error)
	GetSqlQueryRun(ctx context.Context, in *GetSqlQueryRunRequest, opts ...grpc.CallOption) (*GetSqlQueryRunResponse, error)
	UpdateSqlQueryRun(ctx context.Context, in *UpdateSqlQueryRunRequest, opts ...grpc.CallOption) (*UpdateSqlQueryRunResponse, error)
	DeleteSqlQueryRun(ctx context.Context, in *DeleteSqlQueryRunRequest, opts ...grpc.CallOption) (*DeleteSqlQueryRunResponse, error)
	RunSqlQueryRun(ctx context.Context, in *RunSqlQueryRunRequest, opts ...grpc.CallOption) (*RunSqlQueryRunResponse, error)
}

SqlQueryRunServiceClient is the client API for SqlQueryRunService 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 SqlQueryRunServiceServer

SqlQueryRunServiceServer is the server API for SqlQueryRunService service. All implementations must embed UnimplementedSqlQueryRunServiceServer for forward compatibility

type UnimplementedSqlQueryRunServiceServer

type UnimplementedSqlQueryRunServiceServer struct {
}

UnimplementedSqlQueryRunServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSqlQueryRunServiceServer) CreateSqlQueryRun

func (UnimplementedSqlQueryRunServiceServer) DeleteSqlQueryRun

func (UnimplementedSqlQueryRunServiceServer) GetSqlQueryRun

func (UnimplementedSqlQueryRunServiceServer) ListSqlQuerieRuns

func (UnimplementedSqlQueryRunServiceServer) RunSqlQueryRun

func (UnimplementedSqlQueryRunServiceServer) UpdateSqlQueryRun

type UnsafeSqlQueryRunServiceServer added in v0.4.687

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

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

type UpdateSqlQueryRunRequest

type UpdateSqlQueryRunRequest struct {
	Sqlqueryrun *v1alpha1.SqlQueryRun `protobuf:"bytes,1,opt,name=sqlqueryrun,proto3" json:"sqlqueryrun,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 (*UpdateSqlQueryRunRequest) Descriptor deprecated

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

Deprecated: Use UpdateSqlQueryRunRequest.ProtoReflect.Descriptor instead.

func (*UpdateSqlQueryRunRequest) GetFieldMask added in v0.4.422

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

func (*UpdateSqlQueryRunRequest) GetSqlqueryrun added in v0.4.475

func (x *UpdateSqlQueryRunRequest) GetSqlqueryrun() *v1alpha1.SqlQueryRun

func (*UpdateSqlQueryRunRequest) ProtoMessage

func (*UpdateSqlQueryRunRequest) ProtoMessage()

func (*UpdateSqlQueryRunRequest) ProtoReflect

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

func (*UpdateSqlQueryRunRequest) Reset

func (x *UpdateSqlQueryRunRequest) Reset()

func (*UpdateSqlQueryRunRequest) String

func (x *UpdateSqlQueryRunRequest) String() string

type UpdateSqlQueryRunResponse

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

func (*UpdateSqlQueryRunResponse) Descriptor deprecated

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

Deprecated: Use UpdateSqlQueryRunResponse.ProtoReflect.Descriptor instead.

func (*UpdateSqlQueryRunResponse) ProtoMessage

func (*UpdateSqlQueryRunResponse) ProtoMessage()

func (*UpdateSqlQueryRunResponse) ProtoReflect

func (*UpdateSqlQueryRunResponse) Reset

func (x *UpdateSqlQueryRunResponse) Reset()

func (*UpdateSqlQueryRunResponse) String

func (x *UpdateSqlQueryRunResponse) String() string

Jump to

Keyboard shortcuts

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