v1

package
v0.5.80 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 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_labelingpipelinerun_v1_labelingpipelinerun_proto protoreflect.FileDescriptor
View Source
var LabelingPipelineRunService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.labelingpipelinerun.v1.LabelingPipelineRunService",
	HandlerType: (*LabelingPipelineRunServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListLabelingPipelineRuns",
			Handler:    _LabelingPipelineRunService_ListLabelingPipelineRuns_Handler,
		},
		{
			MethodName: "CreateLabelingPipelineRun",
			Handler:    _LabelingPipelineRunService_CreateLabelingPipelineRun_Handler,
		},
		{
			MethodName: "GetLabelingPipelineRun",
			Handler:    _LabelingPipelineRunService_GetLabelingPipelineRun_Handler,
		},
		{
			MethodName: "UpdateLabelingPipelineRun",
			Handler:    _LabelingPipelineRunService_UpdateLabelingPipelineRun_Handler,
		},
		{
			MethodName: "DeleteLabelingPipelineRun",
			Handler:    _LabelingPipelineRunService_DeleteLabelingPipelineRun_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/labelingpipelinerun/v1/labelingpipelinerun.proto",
}

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

Functions

func RegisterLabelingPipelineRunServiceHandler added in v0.4.687

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

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

func RegisterLabelingPipelineRunServiceHandlerClient added in v0.4.687

func RegisterLabelingPipelineRunServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LabelingPipelineRunServiceClient) error

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

func RegisterLabelingPipelineRunServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterLabelingPipelineRunServiceHandlerServer added in v0.4.687

func RegisterLabelingPipelineRunServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LabelingPipelineRunServiceServer) error

RegisterLabelingPipelineRunServiceHandlerServer registers the http handlers for service LabelingPipelineRunService to "mux". UnaryRPC :call LabelingPipelineRunServiceServer 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 RegisterLabelingPipelineRunServiceHandlerFromEndpoint instead.

func RegisterLabelingPipelineRunServiceServer

func RegisterLabelingPipelineRunServiceServer(s grpc.ServiceRegistrar, srv LabelingPipelineRunServiceServer)

Types

type CreateLabelingPipelineRunRequest

type CreateLabelingPipelineRunRequest struct {
	Labelingpipelinerun *v1alpha1.LabelingPipelineRun `protobuf:"bytes,1,opt,name=labelingpipelinerun,proto3" json:"labelingpipelinerun,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLabelingPipelineRunRequest) Descriptor deprecated

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

Deprecated: Use CreateLabelingPipelineRunRequest.ProtoReflect.Descriptor instead.

func (*CreateLabelingPipelineRunRequest) GetLabelingpipelinerun added in v0.4.472

func (x *CreateLabelingPipelineRunRequest) GetLabelingpipelinerun() *v1alpha1.LabelingPipelineRun

func (*CreateLabelingPipelineRunRequest) ProtoMessage

func (*CreateLabelingPipelineRunRequest) ProtoMessage()

func (*CreateLabelingPipelineRunRequest) ProtoReflect

func (*CreateLabelingPipelineRunRequest) Reset

func (*CreateLabelingPipelineRunRequest) String

type CreateLabelingPipelineRunResponse

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

func (*CreateLabelingPipelineRunResponse) Descriptor deprecated

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

Deprecated: Use CreateLabelingPipelineRunResponse.ProtoReflect.Descriptor instead.

func (*CreateLabelingPipelineRunResponse) ProtoMessage

func (*CreateLabelingPipelineRunResponse) ProtoMessage()

func (*CreateLabelingPipelineRunResponse) ProtoReflect

func (*CreateLabelingPipelineRunResponse) Reset

func (*CreateLabelingPipelineRunResponse) String

type DeleteLabelingPipelineRunRequest

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

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

Deprecated: Use DeleteLabelingPipelineRunRequest.ProtoReflect.Descriptor instead.

func (*DeleteLabelingPipelineRunRequest) GetName

func (*DeleteLabelingPipelineRunRequest) GetNamespace

func (x *DeleteLabelingPipelineRunRequest) GetNamespace() string

func (*DeleteLabelingPipelineRunRequest) ProtoMessage

func (*DeleteLabelingPipelineRunRequest) ProtoMessage()

func (*DeleteLabelingPipelineRunRequest) ProtoReflect

func (*DeleteLabelingPipelineRunRequest) Reset

func (*DeleteLabelingPipelineRunRequest) String

type DeleteLabelingPipelineRunResponse

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

func (*DeleteLabelingPipelineRunResponse) Descriptor deprecated

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

Deprecated: Use DeleteLabelingPipelineRunResponse.ProtoReflect.Descriptor instead.

func (*DeleteLabelingPipelineRunResponse) ProtoMessage

func (*DeleteLabelingPipelineRunResponse) ProtoMessage()

func (*DeleteLabelingPipelineRunResponse) ProtoReflect

func (*DeleteLabelingPipelineRunResponse) Reset

func (*DeleteLabelingPipelineRunResponse) String

type GetLabelingPipelineRunRequest

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

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

Deprecated: Use GetLabelingPipelineRunRequest.ProtoReflect.Descriptor instead.

func (*GetLabelingPipelineRunRequest) GetName

func (*GetLabelingPipelineRunRequest) GetNamespace

func (x *GetLabelingPipelineRunRequest) GetNamespace() string

func (*GetLabelingPipelineRunRequest) ProtoMessage

func (*GetLabelingPipelineRunRequest) ProtoMessage()

func (*GetLabelingPipelineRunRequest) ProtoReflect

func (*GetLabelingPipelineRunRequest) Reset

func (x *GetLabelingPipelineRunRequest) Reset()

func (*GetLabelingPipelineRunRequest) String

type GetLabelingPipelineRunResponse

type GetLabelingPipelineRunResponse struct {
	Labelingpipelinerun *v1alpha1.LabelingPipelineRun `protobuf:"bytes,1,opt,name=labelingpipelinerun,proto3" json:"labelingpipelinerun,omitempty"`
	Yaml                string                        `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLabelingPipelineRunResponse) Descriptor deprecated

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

Deprecated: Use GetLabelingPipelineRunResponse.ProtoReflect.Descriptor instead.

func (*GetLabelingPipelineRunResponse) GetLabelingpipelinerun added in v0.4.475

func (x *GetLabelingPipelineRunResponse) GetLabelingpipelinerun() *v1alpha1.LabelingPipelineRun

func (*GetLabelingPipelineRunResponse) GetYaml

func (*GetLabelingPipelineRunResponse) ProtoMessage

func (*GetLabelingPipelineRunResponse) ProtoMessage()

func (*GetLabelingPipelineRunResponse) ProtoReflect

func (*GetLabelingPipelineRunResponse) Reset

func (x *GetLabelingPipelineRunResponse) Reset()

func (*GetLabelingPipelineRunResponse) String

type LabelingPipelineRunServiceClient

type LabelingPipelineRunServiceClient interface {
	ListLabelingPipelineRuns(ctx context.Context, in *ListLabelingPipelineRunRequest, opts ...grpc.CallOption) (*ListLabelingPipelineRunResponse, error)
	CreateLabelingPipelineRun(ctx context.Context, in *CreateLabelingPipelineRunRequest, opts ...grpc.CallOption) (*CreateLabelingPipelineRunResponse, error)
	GetLabelingPipelineRun(ctx context.Context, in *GetLabelingPipelineRunRequest, opts ...grpc.CallOption) (*GetLabelingPipelineRunResponse, error)
	UpdateLabelingPipelineRun(ctx context.Context, in *UpdateLabelingPipelineRunRequest, opts ...grpc.CallOption) (*UpdateLabelingPipelineRunResponse, error)
	DeleteLabelingPipelineRun(ctx context.Context, in *DeleteLabelingPipelineRunRequest, opts ...grpc.CallOption) (*DeleteLabelingPipelineRunResponse, error)
}

LabelingPipelineRunServiceClient is the client API for LabelingPipelineRunService 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 LabelingPipelineRunServiceServer

type LabelingPipelineRunServiceServer interface {
	ListLabelingPipelineRuns(context.Context, *ListLabelingPipelineRunRequest) (*ListLabelingPipelineRunResponse, error)
	CreateLabelingPipelineRun(context.Context, *CreateLabelingPipelineRunRequest) (*CreateLabelingPipelineRunResponse, error)
	GetLabelingPipelineRun(context.Context, *GetLabelingPipelineRunRequest) (*GetLabelingPipelineRunResponse, error)
	UpdateLabelingPipelineRun(context.Context, *UpdateLabelingPipelineRunRequest) (*UpdateLabelingPipelineRunResponse, error)
	DeleteLabelingPipelineRun(context.Context, *DeleteLabelingPipelineRunRequest) (*DeleteLabelingPipelineRunResponse, error)
	// contains filtered or unexported methods
}

LabelingPipelineRunServiceServer is the server API for LabelingPipelineRunService service. All implementations must embed UnimplementedLabelingPipelineRunServiceServer for forward compatibility

type ListLabelingPipelineRunRequest

type ListLabelingPipelineRunRequest struct {
	Namespace string            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels    map[string]string `` /* 153-byte string literal not displayed */
	PageSize  int32             `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string            `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	OrderBy   string            `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLabelingPipelineRunRequest) Descriptor deprecated

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

Deprecated: Use ListLabelingPipelineRunRequest.ProtoReflect.Descriptor instead.

func (*ListLabelingPipelineRunRequest) GetLabels

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

func (*ListLabelingPipelineRunRequest) GetNamespace

func (x *ListLabelingPipelineRunRequest) GetNamespace() string

func (*ListLabelingPipelineRunRequest) GetOrderBy added in v0.4.414

func (x *ListLabelingPipelineRunRequest) GetOrderBy() string

func (*ListLabelingPipelineRunRequest) GetPageSize added in v0.4.414

func (x *ListLabelingPipelineRunRequest) GetPageSize() int32

func (*ListLabelingPipelineRunRequest) GetPageToken added in v0.4.414

func (x *ListLabelingPipelineRunRequest) GetPageToken() string

func (*ListLabelingPipelineRunRequest) ProtoMessage

func (*ListLabelingPipelineRunRequest) ProtoMessage()

func (*ListLabelingPipelineRunRequest) ProtoReflect

func (*ListLabelingPipelineRunRequest) Reset

func (x *ListLabelingPipelineRunRequest) Reset()

func (*ListLabelingPipelineRunRequest) String

type ListLabelingPipelineRunResponse

type ListLabelingPipelineRunResponse struct {
	Labelingpipelineruns *v1alpha1.LabelingPipelineRunList `protobuf:"bytes,1,opt,name=labelingpipelineruns,proto3" json:"labelingpipelineruns,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 (*ListLabelingPipelineRunResponse) Descriptor deprecated

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

Deprecated: Use ListLabelingPipelineRunResponse.ProtoReflect.Descriptor instead.

func (*ListLabelingPipelineRunResponse) GetLabelingpipelineruns added in v0.4.472

func (*ListLabelingPipelineRunResponse) GetNextPageToken added in v0.4.472

func (x *ListLabelingPipelineRunResponse) GetNextPageToken() string

func (*ListLabelingPipelineRunResponse) ProtoMessage

func (*ListLabelingPipelineRunResponse) ProtoMessage()

func (*ListLabelingPipelineRunResponse) ProtoReflect

func (*ListLabelingPipelineRunResponse) Reset

func (*ListLabelingPipelineRunResponse) String

type UnimplementedLabelingPipelineRunServiceServer

type UnimplementedLabelingPipelineRunServiceServer struct {
}

UnimplementedLabelingPipelineRunServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLabelingPipelineRunServiceServer) GetLabelingPipelineRun

func (UnimplementedLabelingPipelineRunServiceServer) ListLabelingPipelineRuns

type UnsafeLabelingPipelineRunServiceServer added in v0.4.687

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

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

type UpdateLabelingPipelineRunRequest

type UpdateLabelingPipelineRunRequest struct {
	Labelingpipelinerun *v1alpha1.LabelingPipelineRun `protobuf:"bytes,1,opt,name=labelingpipelinerun,proto3" json:"labelingpipelinerun,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 (*UpdateLabelingPipelineRunRequest) Descriptor deprecated

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

Deprecated: Use UpdateLabelingPipelineRunRequest.ProtoReflect.Descriptor instead.

func (*UpdateLabelingPipelineRunRequest) GetFieldMask added in v0.4.422

func (*UpdateLabelingPipelineRunRequest) GetLabelingpipelinerun added in v0.4.475

func (x *UpdateLabelingPipelineRunRequest) GetLabelingpipelinerun() *v1alpha1.LabelingPipelineRun

func (*UpdateLabelingPipelineRunRequest) ProtoMessage

func (*UpdateLabelingPipelineRunRequest) ProtoMessage()

func (*UpdateLabelingPipelineRunRequest) ProtoReflect

func (*UpdateLabelingPipelineRunRequest) Reset

func (*UpdateLabelingPipelineRunRequest) String

type UpdateLabelingPipelineRunResponse

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

func (*UpdateLabelingPipelineRunResponse) Descriptor deprecated

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

Deprecated: Use UpdateLabelingPipelineRunResponse.ProtoReflect.Descriptor instead.

func (*UpdateLabelingPipelineRunResponse) ProtoMessage

func (*UpdateLabelingPipelineRunResponse) ProtoMessage()

func (*UpdateLabelingPipelineRunResponse) ProtoReflect

func (*UpdateLabelingPipelineRunResponse) Reset

func (*UpdateLabelingPipelineRunResponse) String

Jump to

Keyboard shortcuts

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