v1

package
v0.4.776 Latest Latest
Warning

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

Go to latest
Published: May 19, 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 FeatureService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.feature.v1.FeatureService",
	HandlerType: (*FeatureServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListFeatures",
			Handler:    _FeatureService_ListFeatures_Handler,
		},
		{
			MethodName: "CreateFeature",
			Handler:    _FeatureService_CreateFeature_Handler,
		},
		{
			MethodName: "GetFeature",
			Handler:    _FeatureService_GetFeature_Handler,
		},
		{
			MethodName: "UpdateFeature",
			Handler:    _FeatureService_UpdateFeature_Handler,
		},
		{
			MethodName: "DeleteFeature",
			Handler:    _FeatureService_DeleteFeature_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/feature/v1/feature.proto",
}

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

View Source
var File_github_com_metaprov_modelaapi_services_feature_v1_feature_proto protoreflect.FileDescriptor

Functions

func RegisterFeatureServiceHandler added in v0.4.687

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

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

func RegisterFeatureServiceHandlerClient added in v0.4.687

func RegisterFeatureServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FeatureServiceClient) error

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

func RegisterFeatureServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterFeatureServiceHandlerServer added in v0.4.687

func RegisterFeatureServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FeatureServiceServer) error

RegisterFeatureServiceHandlerServer registers the http handlers for service FeatureService to "mux". UnaryRPC :call FeatureServiceServer 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 RegisterFeatureServiceHandlerFromEndpoint instead.

func RegisterFeatureServiceServer

func RegisterFeatureServiceServer(s grpc.ServiceRegistrar, srv FeatureServiceServer)

Types

type CreateFeatureRequest

type CreateFeatureRequest struct {
	Feature *v1alpha1.Feature `protobuf:"bytes,1,opt,name=feature,proto3" json:"feature,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFeatureRequest) Descriptor deprecated

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

Deprecated: Use CreateFeatureRequest.ProtoReflect.Descriptor instead.

func (*CreateFeatureRequest) GetFeature added in v0.4.472

func (x *CreateFeatureRequest) GetFeature() *v1alpha1.Feature

func (*CreateFeatureRequest) ProtoMessage

func (*CreateFeatureRequest) ProtoMessage()

func (*CreateFeatureRequest) ProtoReflect

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

func (*CreateFeatureRequest) Reset

func (x *CreateFeatureRequest) Reset()

func (*CreateFeatureRequest) String

func (x *CreateFeatureRequest) String() string

type CreateFeatureResponse

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

func (*CreateFeatureResponse) Descriptor deprecated

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

Deprecated: Use CreateFeatureResponse.ProtoReflect.Descriptor instead.

func (*CreateFeatureResponse) ProtoMessage

func (*CreateFeatureResponse) ProtoMessage()

func (*CreateFeatureResponse) ProtoReflect

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

func (*CreateFeatureResponse) Reset

func (x *CreateFeatureResponse) Reset()

func (*CreateFeatureResponse) String

func (x *CreateFeatureResponse) String() string

type DeleteFeatureRequest

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

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

Deprecated: Use DeleteFeatureRequest.ProtoReflect.Descriptor instead.

func (*DeleteFeatureRequest) GetName

func (x *DeleteFeatureRequest) GetName() string

func (*DeleteFeatureRequest) GetNamespace

func (x *DeleteFeatureRequest) GetNamespace() string

func (*DeleteFeatureRequest) ProtoMessage

func (*DeleteFeatureRequest) ProtoMessage()

func (*DeleteFeatureRequest) ProtoReflect

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

func (*DeleteFeatureRequest) Reset

func (x *DeleteFeatureRequest) Reset()

func (*DeleteFeatureRequest) String

func (x *DeleteFeatureRequest) String() string

type DeleteFeatureResponse

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

func (*DeleteFeatureResponse) Descriptor deprecated

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

Deprecated: Use DeleteFeatureResponse.ProtoReflect.Descriptor instead.

func (*DeleteFeatureResponse) ProtoMessage

func (*DeleteFeatureResponse) ProtoMessage()

func (*DeleteFeatureResponse) ProtoReflect

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

func (*DeleteFeatureResponse) Reset

func (x *DeleteFeatureResponse) Reset()

func (*DeleteFeatureResponse) String

func (x *DeleteFeatureResponse) String() string

type FeatureServiceClient

type FeatureServiceClient interface {
	ListFeatures(ctx context.Context, in *ListFeaturesRequest, opts ...grpc.CallOption) (*ListFeaturesResponse, error)
	CreateFeature(ctx context.Context, in *CreateFeatureRequest, opts ...grpc.CallOption) (*CreateFeatureResponse, error)
	GetFeature(ctx context.Context, in *GetFeatureRequest, opts ...grpc.CallOption) (*GetFeatureResponse, error)
	UpdateFeature(ctx context.Context, in *UpdateFeatureRequest, opts ...grpc.CallOption) (*UpdateFeatureResponse, error)
	DeleteFeature(ctx context.Context, in *DeleteFeatureRequest, opts ...grpc.CallOption) (*DeleteFeatureResponse, error)
}

FeatureServiceClient is the client API for FeatureService 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 FeatureServiceServer

type FeatureServiceServer interface {
	ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error)
	CreateFeature(context.Context, *CreateFeatureRequest) (*CreateFeatureResponse, error)
	GetFeature(context.Context, *GetFeatureRequest) (*GetFeatureResponse, error)
	UpdateFeature(context.Context, *UpdateFeatureRequest) (*UpdateFeatureResponse, error)
	DeleteFeature(context.Context, *DeleteFeatureRequest) (*DeleteFeatureResponse, error)
	// contains filtered or unexported methods
}

FeatureServiceServer is the server API for FeatureService service. All implementations must embed UnimplementedFeatureServiceServer for forward compatibility

type GetFeatureRequest

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

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

Deprecated: Use GetFeatureRequest.ProtoReflect.Descriptor instead.

func (*GetFeatureRequest) GetName

func (x *GetFeatureRequest) GetName() string

func (*GetFeatureRequest) GetNamespace

func (x *GetFeatureRequest) GetNamespace() string

func (*GetFeatureRequest) ProtoMessage

func (*GetFeatureRequest) ProtoMessage()

func (*GetFeatureRequest) ProtoReflect

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

func (*GetFeatureRequest) Reset

func (x *GetFeatureRequest) Reset()

func (*GetFeatureRequest) String

func (x *GetFeatureRequest) String() string

type GetFeatureResponse

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

func (*GetFeatureResponse) Descriptor deprecated

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

Deprecated: Use GetFeatureResponse.ProtoReflect.Descriptor instead.

func (*GetFeatureResponse) GetFeature added in v0.4.475

func (x *GetFeatureResponse) GetFeature() *v1alpha1.Feature

func (*GetFeatureResponse) GetYaml

func (x *GetFeatureResponse) GetYaml() string

func (*GetFeatureResponse) ProtoMessage

func (*GetFeatureResponse) ProtoMessage()

func (*GetFeatureResponse) ProtoReflect

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

func (*GetFeatureResponse) Reset

func (x *GetFeatureResponse) Reset()

func (*GetFeatureResponse) String

func (x *GetFeatureResponse) String() string

type ListFeaturesRequest

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

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

Deprecated: Use ListFeaturesRequest.ProtoReflect.Descriptor instead.

func (*ListFeaturesRequest) GetLabels

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

func (*ListFeaturesRequest) GetNamespace

func (x *ListFeaturesRequest) GetNamespace() string

func (*ListFeaturesRequest) GetOrderBy added in v0.4.414

func (x *ListFeaturesRequest) GetOrderBy() string

func (*ListFeaturesRequest) GetPageSize added in v0.4.414

func (x *ListFeaturesRequest) GetPageSize() int32

func (*ListFeaturesRequest) GetPageToken added in v0.4.414

func (x *ListFeaturesRequest) GetPageToken() string

func (*ListFeaturesRequest) ProtoMessage

func (*ListFeaturesRequest) ProtoMessage()

func (*ListFeaturesRequest) ProtoReflect

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

func (*ListFeaturesRequest) Reset

func (x *ListFeaturesRequest) Reset()

func (*ListFeaturesRequest) String

func (x *ListFeaturesRequest) String() string

type ListFeaturesResponse

type ListFeaturesResponse struct {
	Features      *v1alpha1.FeatureList `protobuf:"bytes,1,opt,name=features,proto3" json:"features,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 (*ListFeaturesResponse) Descriptor deprecated

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

Deprecated: Use ListFeaturesResponse.ProtoReflect.Descriptor instead.

func (*ListFeaturesResponse) GetFeatures added in v0.4.472

func (x *ListFeaturesResponse) GetFeatures() *v1alpha1.FeatureList

func (*ListFeaturesResponse) GetNextPageToken added in v0.4.472

func (x *ListFeaturesResponse) GetNextPageToken() string

func (*ListFeaturesResponse) ProtoMessage

func (*ListFeaturesResponse) ProtoMessage()

func (*ListFeaturesResponse) ProtoReflect

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

func (*ListFeaturesResponse) Reset

func (x *ListFeaturesResponse) Reset()

func (*ListFeaturesResponse) String

func (x *ListFeaturesResponse) String() string

type UnimplementedFeatureServiceServer

type UnimplementedFeatureServiceServer struct {
}

UnimplementedFeatureServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFeatureServiceServer) CreateFeature

func (UnimplementedFeatureServiceServer) DeleteFeature

func (UnimplementedFeatureServiceServer) GetFeature

func (UnimplementedFeatureServiceServer) ListFeatures

func (UnimplementedFeatureServiceServer) UpdateFeature

type UnsafeFeatureServiceServer added in v0.4.687

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

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

type UpdateFeatureRequest

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

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

Deprecated: Use UpdateFeatureRequest.ProtoReflect.Descriptor instead.

func (*UpdateFeatureRequest) GetFeature added in v0.4.475

func (x *UpdateFeatureRequest) GetFeature() *v1alpha1.Feature

func (*UpdateFeatureRequest) GetFieldMask added in v0.4.422

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

func (*UpdateFeatureRequest) ProtoMessage

func (*UpdateFeatureRequest) ProtoMessage()

func (*UpdateFeatureRequest) ProtoReflect

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

func (*UpdateFeatureRequest) Reset

func (x *UpdateFeatureRequest) Reset()

func (*UpdateFeatureRequest) String

func (x *UpdateFeatureRequest) String() string

type UpdateFeatureResponse

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

func (*UpdateFeatureResponse) Descriptor deprecated

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

Deprecated: Use UpdateFeatureResponse.ProtoReflect.Descriptor instead.

func (*UpdateFeatureResponse) ProtoMessage

func (*UpdateFeatureResponse) ProtoMessage()

func (*UpdateFeatureResponse) ProtoReflect

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

func (*UpdateFeatureResponse) Reset

func (x *UpdateFeatureResponse) Reset()

func (*UpdateFeatureResponse) String

func (x *UpdateFeatureResponse) String() string

Jump to

Keyboard shortcuts

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