v1

package
v0.4.806 Latest Latest
Warning

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

Go to latest
Published: May 28, 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 CurtainService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.curtain.v1.CurtainService",
	HandlerType: (*CurtainServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCurtains",
			Handler:    _CurtainService_ListCurtains_Handler,
		},
		{
			MethodName: "CreateCurtain",
			Handler:    _CurtainService_CreateCurtain_Handler,
		},
		{
			MethodName: "GetCurtain",
			Handler:    _CurtainService_GetCurtain_Handler,
		},
		{
			MethodName: "UpdateCurtain",
			Handler:    _CurtainService_UpdateCurtain_Handler,
		},
		{
			MethodName: "DeleteCurtain",
			Handler:    _CurtainService_DeleteCurtain_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/curtain/v1/curtain.proto",
}

CurtainService_ServiceDesc is the grpc.ServiceDesc for CurtainService 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_curtain_v1_curtain_proto protoreflect.FileDescriptor

Functions

func RegisterCurtainServiceHandler added in v0.4.687

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

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

func RegisterCurtainServiceHandlerClient added in v0.4.687

func RegisterCurtainServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CurtainServiceClient) error

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

func RegisterCurtainServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterCurtainServiceHandlerServer added in v0.4.687

func RegisterCurtainServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CurtainServiceServer) error

RegisterCurtainServiceHandlerServer registers the http handlers for service CurtainService to "mux". UnaryRPC :call CurtainServiceServer 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 RegisterCurtainServiceHandlerFromEndpoint instead.

func RegisterCurtainServiceServer

func RegisterCurtainServiceServer(s grpc.ServiceRegistrar, srv CurtainServiceServer)

Types

type CreateCurtainRequest

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

func (*CreateCurtainRequest) Descriptor deprecated

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

Deprecated: Use CreateCurtainRequest.ProtoReflect.Descriptor instead.

func (*CreateCurtainRequest) GetCurtain added in v0.4.475

func (x *CreateCurtainRequest) GetCurtain() *v1alpha1.Curtain

func (*CreateCurtainRequest) ProtoMessage

func (*CreateCurtainRequest) ProtoMessage()

func (*CreateCurtainRequest) ProtoReflect

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

func (*CreateCurtainRequest) Reset

func (x *CreateCurtainRequest) Reset()

func (*CreateCurtainRequest) String

func (x *CreateCurtainRequest) String() string

type CreateCurtainResponse

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

func (*CreateCurtainResponse) Descriptor deprecated

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

Deprecated: Use CreateCurtainResponse.ProtoReflect.Descriptor instead.

func (*CreateCurtainResponse) ProtoMessage

func (*CreateCurtainResponse) ProtoMessage()

func (*CreateCurtainResponse) ProtoReflect

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

func (*CreateCurtainResponse) Reset

func (x *CreateCurtainResponse) Reset()

func (*CreateCurtainResponse) String

func (x *CreateCurtainResponse) String() string

type CurtainServiceClient

type CurtainServiceClient interface {
	ListCurtains(ctx context.Context, in *ListCurtainsRequest, opts ...grpc.CallOption) (*ListCurtainsResponse, error)
	CreateCurtain(ctx context.Context, in *CreateCurtainRequest, opts ...grpc.CallOption) (*CreateCurtainResponse, error)
	GetCurtain(ctx context.Context, in *GetCurtainRequest, opts ...grpc.CallOption) (*GetCurtainResponse, error)
	UpdateCurtain(ctx context.Context, in *UpdateCurtainRequest, opts ...grpc.CallOption) (*UpdateCurtainResponse, error)
	DeleteCurtain(ctx context.Context, in *DeleteCurtainRequest, opts ...grpc.CallOption) (*DeleteCurtainResponse, error)
}

CurtainServiceClient is the client API for CurtainService 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 CurtainServiceServer

type CurtainServiceServer interface {
	ListCurtains(context.Context, *ListCurtainsRequest) (*ListCurtainsResponse, error)
	CreateCurtain(context.Context, *CreateCurtainRequest) (*CreateCurtainResponse, error)
	GetCurtain(context.Context, *GetCurtainRequest) (*GetCurtainResponse, error)
	UpdateCurtain(context.Context, *UpdateCurtainRequest) (*UpdateCurtainResponse, error)
	DeleteCurtain(context.Context, *DeleteCurtainRequest) (*DeleteCurtainResponse, error)
	// contains filtered or unexported methods
}

CurtainServiceServer is the server API for CurtainService service. All implementations must embed UnimplementedCurtainServiceServer for forward compatibility

type DeleteCurtainRequest

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

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

Deprecated: Use DeleteCurtainRequest.ProtoReflect.Descriptor instead.

func (*DeleteCurtainRequest) GetName

func (x *DeleteCurtainRequest) GetName() string

func (*DeleteCurtainRequest) GetNamespace

func (x *DeleteCurtainRequest) GetNamespace() string

func (*DeleteCurtainRequest) ProtoMessage

func (*DeleteCurtainRequest) ProtoMessage()

func (*DeleteCurtainRequest) ProtoReflect

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

func (*DeleteCurtainRequest) Reset

func (x *DeleteCurtainRequest) Reset()

func (*DeleteCurtainRequest) String

func (x *DeleteCurtainRequest) String() string

type DeleteCurtainResponse

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

func (*DeleteCurtainResponse) Descriptor deprecated

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

Deprecated: Use DeleteCurtainResponse.ProtoReflect.Descriptor instead.

func (*DeleteCurtainResponse) ProtoMessage

func (*DeleteCurtainResponse) ProtoMessage()

func (*DeleteCurtainResponse) ProtoReflect

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

func (*DeleteCurtainResponse) Reset

func (x *DeleteCurtainResponse) Reset()

func (*DeleteCurtainResponse) String

func (x *DeleteCurtainResponse) String() string

type GetCurtainRequest

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

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

Deprecated: Use GetCurtainRequest.ProtoReflect.Descriptor instead.

func (*GetCurtainRequest) GetName

func (x *GetCurtainRequest) GetName() string

func (*GetCurtainRequest) GetNamespace

func (x *GetCurtainRequest) GetNamespace() string

func (*GetCurtainRequest) ProtoMessage

func (*GetCurtainRequest) ProtoMessage()

func (*GetCurtainRequest) ProtoReflect

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

func (*GetCurtainRequest) Reset

func (x *GetCurtainRequest) Reset()

func (*GetCurtainRequest) String

func (x *GetCurtainRequest) String() string

type GetCurtainResponse

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

func (*GetCurtainResponse) Descriptor deprecated

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

Deprecated: Use GetCurtainResponse.ProtoReflect.Descriptor instead.

func (*GetCurtainResponse) GetCurtain added in v0.4.475

func (x *GetCurtainResponse) GetCurtain() *v1alpha1.Curtain

func (*GetCurtainResponse) GetYaml

func (x *GetCurtainResponse) GetYaml() string

func (*GetCurtainResponse) ProtoMessage

func (*GetCurtainResponse) ProtoMessage()

func (*GetCurtainResponse) ProtoReflect

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

func (*GetCurtainResponse) Reset

func (x *GetCurtainResponse) Reset()

func (*GetCurtainResponse) String

func (x *GetCurtainResponse) String() string

type ListCurtainsRequest

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

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

Deprecated: Use ListCurtainsRequest.ProtoReflect.Descriptor instead.

func (*ListCurtainsRequest) GetLabels

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

func (*ListCurtainsRequest) GetNamespace

func (x *ListCurtainsRequest) GetNamespace() string

func (*ListCurtainsRequest) GetOrderBy added in v0.4.414

func (x *ListCurtainsRequest) GetOrderBy() string

func (*ListCurtainsRequest) GetPageSize

func (x *ListCurtainsRequest) GetPageSize() int32

func (*ListCurtainsRequest) GetPageToken

func (x *ListCurtainsRequest) GetPageToken() string

func (*ListCurtainsRequest) ProtoMessage

func (*ListCurtainsRequest) ProtoMessage()

func (*ListCurtainsRequest) ProtoReflect

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

func (*ListCurtainsRequest) Reset

func (x *ListCurtainsRequest) Reset()

func (*ListCurtainsRequest) String

func (x *ListCurtainsRequest) String() string

type ListCurtainsResponse

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

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

Deprecated: Use ListCurtainsResponse.ProtoReflect.Descriptor instead.

func (*ListCurtainsResponse) GetCurtains added in v0.4.471

func (x *ListCurtainsResponse) GetCurtains() *v1alpha1.CurtainList

func (*ListCurtainsResponse) GetNextPageToken

func (x *ListCurtainsResponse) GetNextPageToken() string

func (*ListCurtainsResponse) ProtoMessage

func (*ListCurtainsResponse) ProtoMessage()

func (*ListCurtainsResponse) ProtoReflect

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

func (*ListCurtainsResponse) Reset

func (x *ListCurtainsResponse) Reset()

func (*ListCurtainsResponse) String

func (x *ListCurtainsResponse) String() string

type UnimplementedCurtainServiceServer

type UnimplementedCurtainServiceServer struct {
}

UnimplementedCurtainServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCurtainServiceServer) CreateCurtain

func (UnimplementedCurtainServiceServer) DeleteCurtain

func (UnimplementedCurtainServiceServer) GetCurtain

func (UnimplementedCurtainServiceServer) ListCurtains

func (UnimplementedCurtainServiceServer) UpdateCurtain

type UnsafeCurtainServiceServer added in v0.4.687

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

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

type UpdateCurtainRequest

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

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

Deprecated: Use UpdateCurtainRequest.ProtoReflect.Descriptor instead.

func (*UpdateCurtainRequest) GetCurtain added in v0.4.475

func (x *UpdateCurtainRequest) GetCurtain() *v1alpha1.Curtain

func (*UpdateCurtainRequest) GetFieldMask added in v0.4.422

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

func (*UpdateCurtainRequest) ProtoMessage

func (*UpdateCurtainRequest) ProtoMessage()

func (*UpdateCurtainRequest) ProtoReflect

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

func (*UpdateCurtainRequest) Reset

func (x *UpdateCurtainRequest) Reset()

func (*UpdateCurtainRequest) String

func (x *UpdateCurtainRequest) String() string

type UpdateCurtainResponse

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

func (*UpdateCurtainResponse) Descriptor deprecated

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

Deprecated: Use UpdateCurtainResponse.ProtoReflect.Descriptor instead.

func (*UpdateCurtainResponse) ProtoMessage

func (*UpdateCurtainResponse) ProtoMessage()

func (*UpdateCurtainResponse) ProtoReflect

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

func (*UpdateCurtainResponse) Reset

func (x *UpdateCurtainResponse) Reset()

func (*UpdateCurtainResponse) String

func (x *UpdateCurtainResponse) String() string

Jump to

Keyboard shortcuts

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