v1

package
v0.4.967 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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 FeaturesetService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.featureset.v1.FeaturesetService",
	HandlerType: (*FeaturesetServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListFeaturesets",
			Handler:    _FeaturesetService_ListFeaturesets_Handler,
		},
		{
			MethodName: "CreateFeatureset",
			Handler:    _FeaturesetService_CreateFeatureset_Handler,
		},
		{
			MethodName: "GetFeatureset",
			Handler:    _FeaturesetService_GetFeatureset_Handler,
		},
		{
			MethodName: "UpdateFeatureset",
			Handler:    _FeaturesetService_UpdateFeatureset_Handler,
		},
		{
			MethodName: "DeleteFeatureset",
			Handler:    _FeaturesetService_DeleteFeatureset_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/featureset/v1/featureset.proto",
}

FeaturesetService_ServiceDesc is the grpc.ServiceDesc for FeaturesetService 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_featureset_v1_featureset_proto protoreflect.FileDescriptor

Functions

func RegisterFeaturesetServiceHandler added in v0.4.687

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

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

func RegisterFeaturesetServiceHandlerClient added in v0.4.687

func RegisterFeaturesetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FeaturesetServiceClient) error

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

func RegisterFeaturesetServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterFeaturesetServiceHandlerServer added in v0.4.687

func RegisterFeaturesetServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FeaturesetServiceServer) error

RegisterFeaturesetServiceHandlerServer registers the http handlers for service FeaturesetService to "mux". UnaryRPC :call FeaturesetServiceServer 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 RegisterFeaturesetServiceHandlerFromEndpoint instead.

func RegisterFeaturesetServiceServer

func RegisterFeaturesetServiceServer(s grpc.ServiceRegistrar, srv FeaturesetServiceServer)

Types

type CreateFeaturesetRequest

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

func (*CreateFeaturesetRequest) Descriptor deprecated

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

Deprecated: Use CreateFeaturesetRequest.ProtoReflect.Descriptor instead.

func (*CreateFeaturesetRequest) GetFeatureset added in v0.4.472

func (x *CreateFeaturesetRequest) GetFeatureset() *v1alpha1.Featureset

func (*CreateFeaturesetRequest) ProtoMessage

func (*CreateFeaturesetRequest) ProtoMessage()

func (*CreateFeaturesetRequest) ProtoReflect

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

func (*CreateFeaturesetRequest) Reset

func (x *CreateFeaturesetRequest) Reset()

func (*CreateFeaturesetRequest) String

func (x *CreateFeaturesetRequest) String() string

type CreateFeaturesetResponse

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

func (*CreateFeaturesetResponse) Descriptor deprecated

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

Deprecated: Use CreateFeaturesetResponse.ProtoReflect.Descriptor instead.

func (*CreateFeaturesetResponse) ProtoMessage

func (*CreateFeaturesetResponse) ProtoMessage()

func (*CreateFeaturesetResponse) ProtoReflect

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

func (*CreateFeaturesetResponse) Reset

func (x *CreateFeaturesetResponse) Reset()

func (*CreateFeaturesetResponse) String

func (x *CreateFeaturesetResponse) String() string

type DeleteFeaturesetRequest

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

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

Deprecated: Use DeleteFeaturesetRequest.ProtoReflect.Descriptor instead.

func (*DeleteFeaturesetRequest) GetName

func (x *DeleteFeaturesetRequest) GetName() string

func (*DeleteFeaturesetRequest) GetNamespace

func (x *DeleteFeaturesetRequest) GetNamespace() string

func (*DeleteFeaturesetRequest) ProtoMessage

func (*DeleteFeaturesetRequest) ProtoMessage()

func (*DeleteFeaturesetRequest) ProtoReflect

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

func (*DeleteFeaturesetRequest) Reset

func (x *DeleteFeaturesetRequest) Reset()

func (*DeleteFeaturesetRequest) String

func (x *DeleteFeaturesetRequest) String() string

type DeleteFeaturesetResponse

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

func (*DeleteFeaturesetResponse) Descriptor deprecated

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

Deprecated: Use DeleteFeaturesetResponse.ProtoReflect.Descriptor instead.

func (*DeleteFeaturesetResponse) ProtoMessage

func (*DeleteFeaturesetResponse) ProtoMessage()

func (*DeleteFeaturesetResponse) ProtoReflect

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

func (*DeleteFeaturesetResponse) Reset

func (x *DeleteFeaturesetResponse) Reset()

func (*DeleteFeaturesetResponse) String

func (x *DeleteFeaturesetResponse) String() string

type FeaturesetServiceClient

type FeaturesetServiceClient interface {
	ListFeaturesets(ctx context.Context, in *ListFeaturesetRequest, opts ...grpc.CallOption) (*ListFeaturesetResponse, error)
	CreateFeatureset(ctx context.Context, in *CreateFeaturesetRequest, opts ...grpc.CallOption) (*CreateFeaturesetResponse, error)
	GetFeatureset(ctx context.Context, in *GetFeaturesetRequest, opts ...grpc.CallOption) (*GetFeaturesetResponse, error)
	UpdateFeatureset(ctx context.Context, in *UpdateFeaturesetRequest, opts ...grpc.CallOption) (*UpdateFeaturesetResponse, error)
	DeleteFeatureset(ctx context.Context, in *DeleteFeaturesetRequest, opts ...grpc.CallOption) (*DeleteFeaturesetResponse, error)
}

FeaturesetServiceClient is the client API for FeaturesetService 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 FeaturesetServiceServer

type FeaturesetServiceServer interface {
	ListFeaturesets(context.Context, *ListFeaturesetRequest) (*ListFeaturesetResponse, error)
	CreateFeatureset(context.Context, *CreateFeaturesetRequest) (*CreateFeaturesetResponse, error)
	GetFeatureset(context.Context, *GetFeaturesetRequest) (*GetFeaturesetResponse, error)
	UpdateFeatureset(context.Context, *UpdateFeaturesetRequest) (*UpdateFeaturesetResponse, error)
	DeleteFeatureset(context.Context, *DeleteFeaturesetRequest) (*DeleteFeaturesetResponse, error)
	// contains filtered or unexported methods
}

FeaturesetServiceServer is the server API for FeaturesetService service. All implementations must embed UnimplementedFeaturesetServiceServer for forward compatibility

type GetFeaturesetRequest

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

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

Deprecated: Use GetFeaturesetRequest.ProtoReflect.Descriptor instead.

func (*GetFeaturesetRequest) GetName

func (x *GetFeaturesetRequest) GetName() string

func (*GetFeaturesetRequest) GetNamespace

func (x *GetFeaturesetRequest) GetNamespace() string

func (*GetFeaturesetRequest) ProtoMessage

func (*GetFeaturesetRequest) ProtoMessage()

func (*GetFeaturesetRequest) ProtoReflect

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

func (*GetFeaturesetRequest) Reset

func (x *GetFeaturesetRequest) Reset()

func (*GetFeaturesetRequest) String

func (x *GetFeaturesetRequest) String() string

type GetFeaturesetResponse

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

func (*GetFeaturesetResponse) Descriptor deprecated

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

Deprecated: Use GetFeaturesetResponse.ProtoReflect.Descriptor instead.

func (*GetFeaturesetResponse) GetFeatureset added in v0.4.479

func (x *GetFeaturesetResponse) GetFeatureset() *v1alpha1.Featureset

func (*GetFeaturesetResponse) GetYaml

func (x *GetFeaturesetResponse) GetYaml() string

func (*GetFeaturesetResponse) ProtoMessage

func (*GetFeaturesetResponse) ProtoMessage()

func (*GetFeaturesetResponse) ProtoReflect

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

func (*GetFeaturesetResponse) Reset

func (x *GetFeaturesetResponse) Reset()

func (*GetFeaturesetResponse) String

func (x *GetFeaturesetResponse) String() string

type ListFeaturesetRequest

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

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

Deprecated: Use ListFeaturesetRequest.ProtoReflect.Descriptor instead.

func (*ListFeaturesetRequest) GetLabels

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

func (*ListFeaturesetRequest) GetNamespace

func (x *ListFeaturesetRequest) GetNamespace() string

func (*ListFeaturesetRequest) GetOrderBy added in v0.4.414

func (x *ListFeaturesetRequest) GetOrderBy() string

func (*ListFeaturesetRequest) GetPageSize added in v0.4.414

func (x *ListFeaturesetRequest) GetPageSize() int32

func (*ListFeaturesetRequest) GetPageToken added in v0.4.414

func (x *ListFeaturesetRequest) GetPageToken() string

func (*ListFeaturesetRequest) ProtoMessage

func (*ListFeaturesetRequest) ProtoMessage()

func (*ListFeaturesetRequest) ProtoReflect

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

func (*ListFeaturesetRequest) Reset

func (x *ListFeaturesetRequest) Reset()

func (*ListFeaturesetRequest) String

func (x *ListFeaturesetRequest) String() string

type ListFeaturesetResponse

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

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

Deprecated: Use ListFeaturesetResponse.ProtoReflect.Descriptor instead.

func (*ListFeaturesetResponse) GetFeaturesets added in v0.4.472

func (x *ListFeaturesetResponse) GetFeaturesets() *v1alpha1.FeaturesetList

func (*ListFeaturesetResponse) GetNextPageToken added in v0.4.472

func (x *ListFeaturesetResponse) GetNextPageToken() string

func (*ListFeaturesetResponse) ProtoMessage

func (*ListFeaturesetResponse) ProtoMessage()

func (*ListFeaturesetResponse) ProtoReflect

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

func (*ListFeaturesetResponse) Reset

func (x *ListFeaturesetResponse) Reset()

func (*ListFeaturesetResponse) String

func (x *ListFeaturesetResponse) String() string

type UnimplementedFeaturesetServiceServer

type UnimplementedFeaturesetServiceServer struct {
}

UnimplementedFeaturesetServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFeaturesetServiceServer) CreateFeatureset

func (UnimplementedFeaturesetServiceServer) DeleteFeatureset

func (UnimplementedFeaturesetServiceServer) GetFeatureset

func (UnimplementedFeaturesetServiceServer) ListFeaturesets

func (UnimplementedFeaturesetServiceServer) UpdateFeatureset

type UnsafeFeaturesetServiceServer added in v0.4.687

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

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

type UpdateFeaturesetRequest

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

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

Deprecated: Use UpdateFeaturesetRequest.ProtoReflect.Descriptor instead.

func (*UpdateFeaturesetRequest) GetFeatureset added in v0.4.475

func (x *UpdateFeaturesetRequest) GetFeatureset() *v1alpha1.Featureset

func (*UpdateFeaturesetRequest) GetFieldMask added in v0.4.422

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

func (*UpdateFeaturesetRequest) ProtoMessage

func (*UpdateFeaturesetRequest) ProtoMessage()

func (*UpdateFeaturesetRequest) ProtoReflect

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

func (*UpdateFeaturesetRequest) Reset

func (x *UpdateFeaturesetRequest) Reset()

func (*UpdateFeaturesetRequest) String

func (x *UpdateFeaturesetRequest) String() string

type UpdateFeaturesetResponse

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

func (*UpdateFeaturesetResponse) Descriptor deprecated

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

Deprecated: Use UpdateFeaturesetResponse.ProtoReflect.Descriptor instead.

func (*UpdateFeaturesetResponse) ProtoMessage

func (*UpdateFeaturesetResponse) ProtoMessage()

func (*UpdateFeaturesetResponse) ProtoReflect

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

func (*UpdateFeaturesetResponse) Reset

func (x *UpdateFeaturesetResponse) Reset()

func (*UpdateFeaturesetResponse) String

func (x *UpdateFeaturesetResponse) String() string

Jump to

Keyboard shortcuts

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