v1

package
v0.5.557 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 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_postmortem_v1_postmortem_proto protoreflect.FileDescriptor
View Source
var PostMortemService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.postmortem.v1.PostMortemService",
	HandlerType: (*PostMortemServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListPostMortems",
			Handler:    _PostMortemService_ListPostMortems_Handler,
		},
		{
			MethodName: "CreatePostMortem",
			Handler:    _PostMortemService_CreatePostMortem_Handler,
		},
		{
			MethodName: "GetPostMortem",
			Handler:    _PostMortemService_GetPostMortem_Handler,
		},
		{
			MethodName: "UpdatePostMortem",
			Handler:    _PostMortemService_UpdatePostMortem_Handler,
		},
		{
			MethodName: "DeletePostMortem",
			Handler:    _PostMortemService_DeletePostMortem_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/postmortem/v1/postmortem.proto",
}

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

Functions

func RegisterPostMortemServiceHandler added in v0.4.687

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

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

func RegisterPostMortemServiceHandlerClient added in v0.4.687

func RegisterPostMortemServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostMortemServiceClient) error

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

func RegisterPostMortemServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterPostMortemServiceHandlerServer added in v0.4.687

func RegisterPostMortemServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostMortemServiceServer) error

RegisterPostMortemServiceHandlerServer registers the http handlers for service PostMortemService to "mux". UnaryRPC :call PostMortemServiceServer 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 RegisterPostMortemServiceHandlerFromEndpoint instead.

func RegisterPostMortemServiceServer

func RegisterPostMortemServiceServer(s grpc.ServiceRegistrar, srv PostMortemServiceServer)

Types

type CreatePostMortemRequest

type CreatePostMortemRequest struct {
	Postmortem *v1alpha1.PostMortem `protobuf:"bytes,1,opt,name=postmortem,proto3" json:"postmortem,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePostMortemRequest) Descriptor deprecated

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

Deprecated: Use CreatePostMortemRequest.ProtoReflect.Descriptor instead.

func (*CreatePostMortemRequest) GetPostmortem added in v0.4.472

func (x *CreatePostMortemRequest) GetPostmortem() *v1alpha1.PostMortem

func (*CreatePostMortemRequest) ProtoMessage

func (*CreatePostMortemRequest) ProtoMessage()

func (*CreatePostMortemRequest) ProtoReflect

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

func (*CreatePostMortemRequest) Reset

func (x *CreatePostMortemRequest) Reset()

func (*CreatePostMortemRequest) String

func (x *CreatePostMortemRequest) String() string

type CreatePostMortemResponse

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

func (*CreatePostMortemResponse) Descriptor deprecated

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

Deprecated: Use CreatePostMortemResponse.ProtoReflect.Descriptor instead.

func (*CreatePostMortemResponse) ProtoMessage

func (*CreatePostMortemResponse) ProtoMessage()

func (*CreatePostMortemResponse) ProtoReflect

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

func (*CreatePostMortemResponse) Reset

func (x *CreatePostMortemResponse) Reset()

func (*CreatePostMortemResponse) String

func (x *CreatePostMortemResponse) String() string

type DeletePostMortemRequest

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

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

Deprecated: Use DeletePostMortemRequest.ProtoReflect.Descriptor instead.

func (*DeletePostMortemRequest) GetName

func (x *DeletePostMortemRequest) GetName() string

func (*DeletePostMortemRequest) GetNamespace

func (x *DeletePostMortemRequest) GetNamespace() string

func (*DeletePostMortemRequest) ProtoMessage

func (*DeletePostMortemRequest) ProtoMessage()

func (*DeletePostMortemRequest) ProtoReflect

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

func (*DeletePostMortemRequest) Reset

func (x *DeletePostMortemRequest) Reset()

func (*DeletePostMortemRequest) String

func (x *DeletePostMortemRequest) String() string

type DeletePostMortemResponse

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

func (*DeletePostMortemResponse) Descriptor deprecated

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

Deprecated: Use DeletePostMortemResponse.ProtoReflect.Descriptor instead.

func (*DeletePostMortemResponse) ProtoMessage

func (*DeletePostMortemResponse) ProtoMessage()

func (*DeletePostMortemResponse) ProtoReflect

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

func (*DeletePostMortemResponse) Reset

func (x *DeletePostMortemResponse) Reset()

func (*DeletePostMortemResponse) String

func (x *DeletePostMortemResponse) String() string

type GetPostMortemRequest

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

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

Deprecated: Use GetPostMortemRequest.ProtoReflect.Descriptor instead.

func (*GetPostMortemRequest) GetName

func (x *GetPostMortemRequest) GetName() string

func (*GetPostMortemRequest) GetNamespace

func (x *GetPostMortemRequest) GetNamespace() string

func (*GetPostMortemRequest) ProtoMessage

func (*GetPostMortemRequest) ProtoMessage()

func (*GetPostMortemRequest) ProtoReflect

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

func (*GetPostMortemRequest) Reset

func (x *GetPostMortemRequest) Reset()

func (*GetPostMortemRequest) String

func (x *GetPostMortemRequest) String() string

type GetPostMortemResponse

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

func (*GetPostMortemResponse) Descriptor deprecated

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

Deprecated: Use GetPostMortemResponse.ProtoReflect.Descriptor instead.

func (*GetPostMortemResponse) GetPostmortem added in v0.4.475

func (x *GetPostMortemResponse) GetPostmortem() *v1alpha1.PostMortem

func (*GetPostMortemResponse) GetYaml

func (x *GetPostMortemResponse) GetYaml() string

func (*GetPostMortemResponse) ProtoMessage

func (*GetPostMortemResponse) ProtoMessage()

func (*GetPostMortemResponse) ProtoReflect

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

func (*GetPostMortemResponse) Reset

func (x *GetPostMortemResponse) Reset()

func (*GetPostMortemResponse) String

func (x *GetPostMortemResponse) String() string

type ListPostMortemsRequest

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

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

Deprecated: Use ListPostMortemsRequest.ProtoReflect.Descriptor instead.

func (*ListPostMortemsRequest) GetLabels

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

func (*ListPostMortemsRequest) GetNamespace

func (x *ListPostMortemsRequest) GetNamespace() string

func (*ListPostMortemsRequest) GetOrderBy added in v0.4.414

func (x *ListPostMortemsRequest) GetOrderBy() string

func (*ListPostMortemsRequest) GetPageSize added in v0.4.414

func (x *ListPostMortemsRequest) GetPageSize() int32

func (*ListPostMortemsRequest) GetPageToken added in v0.4.414

func (x *ListPostMortemsRequest) GetPageToken() string

func (*ListPostMortemsRequest) ProtoMessage

func (*ListPostMortemsRequest) ProtoMessage()

func (*ListPostMortemsRequest) ProtoReflect

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

func (*ListPostMortemsRequest) Reset

func (x *ListPostMortemsRequest) Reset()

func (*ListPostMortemsRequest) String

func (x *ListPostMortemsRequest) String() string

type ListPostMortemsResponse

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

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

Deprecated: Use ListPostMortemsResponse.ProtoReflect.Descriptor instead.

func (*ListPostMortemsResponse) GetNextPageToken added in v0.4.472

func (x *ListPostMortemsResponse) GetNextPageToken() string

func (*ListPostMortemsResponse) GetPostmortems added in v0.4.472

func (x *ListPostMortemsResponse) GetPostmortems() *v1alpha1.PostMortemList

func (*ListPostMortemsResponse) ProtoMessage

func (*ListPostMortemsResponse) ProtoMessage()

func (*ListPostMortemsResponse) ProtoReflect

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

func (*ListPostMortemsResponse) Reset

func (x *ListPostMortemsResponse) Reset()

func (*ListPostMortemsResponse) String

func (x *ListPostMortemsResponse) String() string

type PostMortemServiceClient

type PostMortemServiceClient interface {
	ListPostMortems(ctx context.Context, in *ListPostMortemsRequest, opts ...grpc.CallOption) (*ListPostMortemsResponse, error)
	CreatePostMortem(ctx context.Context, in *CreatePostMortemRequest, opts ...grpc.CallOption) (*CreatePostMortemResponse, error)
	GetPostMortem(ctx context.Context, in *GetPostMortemRequest, opts ...grpc.CallOption) (*GetPostMortemResponse, error)
	UpdatePostMortem(ctx context.Context, in *UpdatePostMortemRequest, opts ...grpc.CallOption) (*UpdatePostMortemResponse, error)
	DeletePostMortem(ctx context.Context, in *DeletePostMortemRequest, opts ...grpc.CallOption) (*DeletePostMortemResponse, error)
}

PostMortemServiceClient is the client API for PostMortemService 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 PostMortemServiceServer

type PostMortemServiceServer interface {
	ListPostMortems(context.Context, *ListPostMortemsRequest) (*ListPostMortemsResponse, error)
	CreatePostMortem(context.Context, *CreatePostMortemRequest) (*CreatePostMortemResponse, error)
	GetPostMortem(context.Context, *GetPostMortemRequest) (*GetPostMortemResponse, error)
	UpdatePostMortem(context.Context, *UpdatePostMortemRequest) (*UpdatePostMortemResponse, error)
	DeletePostMortem(context.Context, *DeletePostMortemRequest) (*DeletePostMortemResponse, error)
	// contains filtered or unexported methods
}

PostMortemServiceServer is the server API for PostMortemService service. All implementations must embed UnimplementedPostMortemServiceServer for forward compatibility

type UnimplementedPostMortemServiceServer

type UnimplementedPostMortemServiceServer struct {
}

UnimplementedPostMortemServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPostMortemServiceServer) CreatePostMortem

func (UnimplementedPostMortemServiceServer) DeletePostMortem

func (UnimplementedPostMortemServiceServer) GetPostMortem

func (UnimplementedPostMortemServiceServer) ListPostMortems

func (UnimplementedPostMortemServiceServer) UpdatePostMortem

type UnsafePostMortemServiceServer added in v0.4.687

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

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

type UpdatePostMortemRequest

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

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

Deprecated: Use UpdatePostMortemRequest.ProtoReflect.Descriptor instead.

func (*UpdatePostMortemRequest) GetFieldMask added in v0.4.422

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

func (*UpdatePostMortemRequest) GetPostmortem added in v0.4.472

func (x *UpdatePostMortemRequest) GetPostmortem() *v1alpha1.PostMortem

func (*UpdatePostMortemRequest) ProtoMessage

func (*UpdatePostMortemRequest) ProtoMessage()

func (*UpdatePostMortemRequest) ProtoReflect

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

func (*UpdatePostMortemRequest) Reset

func (x *UpdatePostMortemRequest) Reset()

func (*UpdatePostMortemRequest) String

func (x *UpdatePostMortemRequest) String() string

type UpdatePostMortemResponse

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

func (*UpdatePostMortemResponse) Descriptor deprecated

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

Deprecated: Use UpdatePostMortemResponse.ProtoReflect.Descriptor instead.

func (*UpdatePostMortemResponse) ProtoMessage

func (*UpdatePostMortemResponse) ProtoMessage()

func (*UpdatePostMortemResponse) ProtoReflect

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

func (*UpdatePostMortemResponse) Reset

func (x *UpdatePostMortemResponse) Reset()

func (*UpdatePostMortemResponse) String

func (x *UpdatePostMortemResponse) String() string

Jump to

Keyboard shortcuts

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