v1

package
v0.5.68 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 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 CronReportService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.cronreport.v1.CronReportService",
	HandlerType: (*CronReportServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCronReports",
			Handler:    _CronReportService_ListCronReports_Handler,
		},
		{
			MethodName: "CreateCronReport",
			Handler:    _CronReportService_CreateCronReport_Handler,
		},
		{
			MethodName: "GetCronReport",
			Handler:    _CronReportService_GetCronReport_Handler,
		},
		{
			MethodName: "UpdateCronReport",
			Handler:    _CronReportService_UpdateCronReport_Handler,
		},
		{
			MethodName: "DeleteCronReport",
			Handler:    _CronReportService_DeleteCronReport_Handler,
		},
		{
			MethodName: "RunReport",
			Handler:    _CronReportService_RunReport_Handler,
		},
		{
			MethodName: "PauseCronReport",
			Handler:    _CronReportService_PauseCronReport_Handler,
		},
		{
			MethodName: "ResumeCronReport",
			Handler:    _CronReportService_ResumeCronReport_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/cronreport/v1/cronreport.proto",
}

CronReportService_ServiceDesc is the grpc.ServiceDesc for CronReportService 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_cronreport_v1_cronreport_proto protoreflect.FileDescriptor

Functions

func RegisterCronReportServiceHandler added in v0.4.687

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

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

func RegisterCronReportServiceHandlerClient added in v0.4.687

func RegisterCronReportServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CronReportServiceClient) error

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

func RegisterCronReportServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterCronReportServiceHandlerServer added in v0.4.687

func RegisterCronReportServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CronReportServiceServer) error

RegisterCronReportServiceHandlerServer registers the http handlers for service CronReportService to "mux". UnaryRPC :call CronReportServiceServer 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 RegisterCronReportServiceHandlerFromEndpoint instead.

func RegisterCronReportServiceServer

func RegisterCronReportServiceServer(s grpc.ServiceRegistrar, srv CronReportServiceServer)

Types

type CreateCronReportRequest

type CreateCronReportRequest struct {
	Cronreport *v1alpha1.CronReport `protobuf:"bytes,1,opt,name=cronreport,proto3" json:"cronreport,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCronReportRequest) Descriptor deprecated

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

Deprecated: Use CreateCronReportRequest.ProtoReflect.Descriptor instead.

func (*CreateCronReportRequest) GetCronreport added in v0.4.480

func (x *CreateCronReportRequest) GetCronreport() *v1alpha1.CronReport

func (*CreateCronReportRequest) ProtoMessage

func (*CreateCronReportRequest) ProtoMessage()

func (*CreateCronReportRequest) ProtoReflect

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

func (*CreateCronReportRequest) Reset

func (x *CreateCronReportRequest) Reset()

func (*CreateCronReportRequest) String

func (x *CreateCronReportRequest) String() string

type CreateCronReportResponse

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

func (*CreateCronReportResponse) Descriptor deprecated

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

Deprecated: Use CreateCronReportResponse.ProtoReflect.Descriptor instead.

func (*CreateCronReportResponse) ProtoMessage

func (*CreateCronReportResponse) ProtoMessage()

func (*CreateCronReportResponse) ProtoReflect

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

func (*CreateCronReportResponse) Reset

func (x *CreateCronReportResponse) Reset()

func (*CreateCronReportResponse) String

func (x *CreateCronReportResponse) String() string

type CronReportServiceClient

CronReportServiceClient is the client API for CronReportService 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 CronReportServiceServer

CronReportServiceServer is the server API for CronReportService service. All implementations must embed UnimplementedCronReportServiceServer for forward compatibility

type DeleteCronReportRequest

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

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

Deprecated: Use DeleteCronReportRequest.ProtoReflect.Descriptor instead.

func (*DeleteCronReportRequest) GetName

func (x *DeleteCronReportRequest) GetName() string

func (*DeleteCronReportRequest) GetNamespace

func (x *DeleteCronReportRequest) GetNamespace() string

func (*DeleteCronReportRequest) ProtoMessage

func (*DeleteCronReportRequest) ProtoMessage()

func (*DeleteCronReportRequest) ProtoReflect

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

func (*DeleteCronReportRequest) Reset

func (x *DeleteCronReportRequest) Reset()

func (*DeleteCronReportRequest) String

func (x *DeleteCronReportRequest) String() string

type DeleteCronReportResponse

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

func (*DeleteCronReportResponse) Descriptor deprecated

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

Deprecated: Use DeleteCronReportResponse.ProtoReflect.Descriptor instead.

func (*DeleteCronReportResponse) ProtoMessage

func (*DeleteCronReportResponse) ProtoMessage()

func (*DeleteCronReportResponse) ProtoReflect

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

func (*DeleteCronReportResponse) Reset

func (x *DeleteCronReportResponse) Reset()

func (*DeleteCronReportResponse) String

func (x *DeleteCronReportResponse) String() string

type GetCronReportRequest

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

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

Deprecated: Use GetCronReportRequest.ProtoReflect.Descriptor instead.

func (*GetCronReportRequest) GetName

func (x *GetCronReportRequest) GetName() string

func (*GetCronReportRequest) GetNamespace

func (x *GetCronReportRequest) GetNamespace() string

func (*GetCronReportRequest) ProtoMessage

func (*GetCronReportRequest) ProtoMessage()

func (*GetCronReportRequest) ProtoReflect

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

func (*GetCronReportRequest) Reset

func (x *GetCronReportRequest) Reset()

func (*GetCronReportRequest) String

func (x *GetCronReportRequest) String() string

type GetCronReportResponse

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

func (*GetCronReportResponse) Descriptor deprecated

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

Deprecated: Use GetCronReportResponse.ProtoReflect.Descriptor instead.

func (*GetCronReportResponse) GetCronreport added in v0.4.480

func (x *GetCronReportResponse) GetCronreport() *v1alpha1.CronReport

func (*GetCronReportResponse) GetYaml

func (x *GetCronReportResponse) GetYaml() string

func (*GetCronReportResponse) ProtoMessage

func (*GetCronReportResponse) ProtoMessage()

func (*GetCronReportResponse) ProtoReflect

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

func (*GetCronReportResponse) Reset

func (x *GetCronReportResponse) Reset()

func (*GetCronReportResponse) String

func (x *GetCronReportResponse) String() string

type ListCronReportsRequest

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

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

Deprecated: Use ListCronReportsRequest.ProtoReflect.Descriptor instead.

func (*ListCronReportsRequest) GetLabels

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

func (*ListCronReportsRequest) GetNamespace

func (x *ListCronReportsRequest) GetNamespace() string

func (*ListCronReportsRequest) GetOrderBy added in v0.4.414

func (x *ListCronReportsRequest) GetOrderBy() string

func (*ListCronReportsRequest) GetPageSize added in v0.4.414

func (x *ListCronReportsRequest) GetPageSize() int32

func (*ListCronReportsRequest) GetPageToken added in v0.4.414

func (x *ListCronReportsRequest) GetPageToken() string

func (*ListCronReportsRequest) ProtoMessage

func (*ListCronReportsRequest) ProtoMessage()

func (*ListCronReportsRequest) ProtoReflect

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

func (*ListCronReportsRequest) Reset

func (x *ListCronReportsRequest) Reset()

func (*ListCronReportsRequest) String

func (x *ListCronReportsRequest) String() string

type ListCronReportsResponse

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

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

Deprecated: Use ListCronReportsResponse.ProtoReflect.Descriptor instead.

func (*ListCronReportsResponse) GetCronreports added in v0.4.480

func (x *ListCronReportsResponse) GetCronreports() *v1alpha1.CronReportList

func (*ListCronReportsResponse) GetNextPageToken added in v0.4.471

func (x *ListCronReportsResponse) GetNextPageToken() string

func (*ListCronReportsResponse) ProtoMessage

func (*ListCronReportsResponse) ProtoMessage()

func (*ListCronReportsResponse) ProtoReflect

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

func (*ListCronReportsResponse) Reset

func (x *ListCronReportsResponse) Reset()

func (*ListCronReportsResponse) String

func (x *ListCronReportsResponse) String() string

type PauseCronReportRequest

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

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

Deprecated: Use PauseCronReportRequest.ProtoReflect.Descriptor instead.

func (*PauseCronReportRequest) GetName

func (x *PauseCronReportRequest) GetName() string

func (*PauseCronReportRequest) GetNamespace

func (x *PauseCronReportRequest) GetNamespace() string

func (*PauseCronReportRequest) ProtoMessage

func (*PauseCronReportRequest) ProtoMessage()

func (*PauseCronReportRequest) ProtoReflect

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

func (*PauseCronReportRequest) Reset

func (x *PauseCronReportRequest) Reset()

func (*PauseCronReportRequest) String

func (x *PauseCronReportRequest) String() string

type PauseCronReportResponse

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

func (*PauseCronReportResponse) Descriptor deprecated

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

Deprecated: Use PauseCronReportResponse.ProtoReflect.Descriptor instead.

func (*PauseCronReportResponse) ProtoMessage

func (*PauseCronReportResponse) ProtoMessage()

func (*PauseCronReportResponse) ProtoReflect

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

func (*PauseCronReportResponse) Reset

func (x *PauseCronReportResponse) Reset()

func (*PauseCronReportResponse) String

func (x *PauseCronReportResponse) String() string

type ResumeCronReportRequest

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

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

Deprecated: Use ResumeCronReportRequest.ProtoReflect.Descriptor instead.

func (*ResumeCronReportRequest) GetName

func (x *ResumeCronReportRequest) GetName() string

func (*ResumeCronReportRequest) GetNamespace

func (x *ResumeCronReportRequest) GetNamespace() string

func (*ResumeCronReportRequest) ProtoMessage

func (*ResumeCronReportRequest) ProtoMessage()

func (*ResumeCronReportRequest) ProtoReflect

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

func (*ResumeCronReportRequest) Reset

func (x *ResumeCronReportRequest) Reset()

func (*ResumeCronReportRequest) String

func (x *ResumeCronReportRequest) String() string

type ResumeCronReportResponse

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

func (*ResumeCronReportResponse) Descriptor deprecated

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

Deprecated: Use ResumeCronReportResponse.ProtoReflect.Descriptor instead.

func (*ResumeCronReportResponse) ProtoMessage

func (*ResumeCronReportResponse) ProtoMessage()

func (*ResumeCronReportResponse) ProtoReflect

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

func (*ResumeCronReportResponse) Reset

func (x *ResumeCronReportResponse) Reset()

func (*ResumeCronReportResponse) String

func (x *ResumeCronReportResponse) String() string

type RunCronReportRequest

type RunCronReportRequest struct {
	Cronreport *v1alpha1.CronReport `protobuf:"bytes,1,opt,name=cronreport,proto3" json:"cronreport,omitempty"`
	// contains filtered or unexported fields
}

func (*RunCronReportRequest) Descriptor deprecated

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

Deprecated: Use RunCronReportRequest.ProtoReflect.Descriptor instead.

func (*RunCronReportRequest) GetCronreport added in v0.4.480

func (x *RunCronReportRequest) GetCronreport() *v1alpha1.CronReport

func (*RunCronReportRequest) ProtoMessage

func (*RunCronReportRequest) ProtoMessage()

func (*RunCronReportRequest) ProtoReflect

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

func (*RunCronReportRequest) Reset

func (x *RunCronReportRequest) Reset()

func (*RunCronReportRequest) String

func (x *RunCronReportRequest) String() string

type RunCronReportResponse

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

func (*RunCronReportResponse) Descriptor deprecated

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

Deprecated: Use RunCronReportResponse.ProtoReflect.Descriptor instead.

func (*RunCronReportResponse) ProtoMessage

func (*RunCronReportResponse) ProtoMessage()

func (*RunCronReportResponse) ProtoReflect

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

func (*RunCronReportResponse) Reset

func (x *RunCronReportResponse) Reset()

func (*RunCronReportResponse) String

func (x *RunCronReportResponse) String() string

type UnimplementedCronReportServiceServer

type UnimplementedCronReportServiceServer struct {
}

UnimplementedCronReportServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCronReportServiceServer) CreateCronReport

func (UnimplementedCronReportServiceServer) DeleteCronReport

func (UnimplementedCronReportServiceServer) GetCronReport

func (UnimplementedCronReportServiceServer) ListCronReports

func (UnimplementedCronReportServiceServer) PauseCronReport

func (UnimplementedCronReportServiceServer) ResumeCronReport

func (UnimplementedCronReportServiceServer) RunReport

func (UnimplementedCronReportServiceServer) UpdateCronReport

type UnsafeCronReportServiceServer added in v0.4.687

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

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

type UpdateCronReportRequest

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

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

Deprecated: Use UpdateCronReportRequest.ProtoReflect.Descriptor instead.

func (*UpdateCronReportRequest) GetCronreport added in v0.4.480

func (x *UpdateCronReportRequest) GetCronreport() *v1alpha1.CronReport

func (*UpdateCronReportRequest) GetFieldMask added in v0.4.422

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

func (*UpdateCronReportRequest) ProtoMessage

func (*UpdateCronReportRequest) ProtoMessage()

func (*UpdateCronReportRequest) ProtoReflect

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

func (*UpdateCronReportRequest) Reset

func (x *UpdateCronReportRequest) Reset()

func (*UpdateCronReportRequest) String

func (x *UpdateCronReportRequest) String() string

type UpdateCronReportResponse

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

func (*UpdateCronReportResponse) Descriptor deprecated

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

Deprecated: Use UpdateCronReportResponse.ProtoReflect.Descriptor instead.

func (*UpdateCronReportResponse) ProtoMessage

func (*UpdateCronReportResponse) ProtoMessage()

func (*UpdateCronReportResponse) ProtoReflect

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

func (*UpdateCronReportResponse) Reset

func (x *UpdateCronReportResponse) Reset()

func (*UpdateCronReportResponse) String

func (x *UpdateCronReportResponse) String() string

Jump to

Keyboard shortcuts

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