service

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_app_pipedv1_cmd_piped_service_service_proto protoreflect.FileDescriptor
View Source
var PluginService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.piped.service.PluginService",
	HandlerType: (*PluginServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListStageCommands",
			Handler:    _PluginService_ListStageCommands_Handler,
		},
		{
			MethodName: "GetLatestAnalysisResult",
			Handler:    _PluginService_GetLatestAnalysisResult_Handler,
		},
		{
			MethodName: "PutLatestAnalysisResult",
			Handler:    _PluginService_PutLatestAnalysisResult_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/app/pipedv1/cmd/piped/service/service.proto",
}

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

Functions

func RegisterPluginServiceServer

func RegisterPluginServiceServer(s grpc.ServiceRegistrar, srv PluginServiceServer)

Types

type GetLatestAnalysisResultRequest

type GetLatestAnalysisResultRequest struct {
	ApplicationId string `protobuf:"bytes,1,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLatestAnalysisResultRequest) Descriptor deprecated

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

Deprecated: Use GetLatestAnalysisResultRequest.ProtoReflect.Descriptor instead.

func (*GetLatestAnalysisResultRequest) GetApplicationId

func (x *GetLatestAnalysisResultRequest) GetApplicationId() string

func (*GetLatestAnalysisResultRequest) ProtoMessage

func (*GetLatestAnalysisResultRequest) ProtoMessage()

func (*GetLatestAnalysisResultRequest) ProtoReflect

func (*GetLatestAnalysisResultRequest) Reset

func (x *GetLatestAnalysisResultRequest) Reset()

func (*GetLatestAnalysisResultRequest) String

func (*GetLatestAnalysisResultRequest) Validate

func (m *GetLatestAnalysisResultRequest) Validate() error

Validate checks the field values on GetLatestAnalysisResultRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetLatestAnalysisResultRequest) ValidateAll

func (m *GetLatestAnalysisResultRequest) ValidateAll() error

ValidateAll checks the field values on GetLatestAnalysisResultRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLatestAnalysisResultRequestMultiError, or nil if none found.

type GetLatestAnalysisResultRequestMultiError

type GetLatestAnalysisResultRequestMultiError []error

GetLatestAnalysisResultRequestMultiError is an error wrapping multiple validation errors returned by GetLatestAnalysisResultRequest.ValidateAll() if the designated constraints aren't met.

func (GetLatestAnalysisResultRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetLatestAnalysisResultRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetLatestAnalysisResultRequestValidationError

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

GetLatestAnalysisResultRequestValidationError is the validation error returned by GetLatestAnalysisResultRequest.Validate if the designated constraints aren't met.

func (GetLatestAnalysisResultRequestValidationError) Cause

Cause function returns cause value.

func (GetLatestAnalysisResultRequestValidationError) Error

Error satisfies the builtin error interface

func (GetLatestAnalysisResultRequestValidationError) ErrorName

ErrorName returns error name.

func (GetLatestAnalysisResultRequestValidationError) Field

Field function returns field value.

func (GetLatestAnalysisResultRequestValidationError) Key

Key function returns key value.

func (GetLatestAnalysisResultRequestValidationError) Reason

Reason function returns reason value.

type GetLatestAnalysisResultResponse

type GetLatestAnalysisResultResponse struct {
	AnalysisResult *model.AnalysisResult `protobuf:"bytes,1,opt,name=analysis_result,json=analysisResult,proto3" json:"analysis_result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLatestAnalysisResultResponse) Descriptor deprecated

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

Deprecated: Use GetLatestAnalysisResultResponse.ProtoReflect.Descriptor instead.

func (*GetLatestAnalysisResultResponse) GetAnalysisResult

func (x *GetLatestAnalysisResultResponse) GetAnalysisResult() *model.AnalysisResult

func (*GetLatestAnalysisResultResponse) ProtoMessage

func (*GetLatestAnalysisResultResponse) ProtoMessage()

func (*GetLatestAnalysisResultResponse) ProtoReflect

func (*GetLatestAnalysisResultResponse) Reset

func (*GetLatestAnalysisResultResponse) String

func (*GetLatestAnalysisResultResponse) Validate

func (m *GetLatestAnalysisResultResponse) Validate() error

Validate checks the field values on GetLatestAnalysisResultResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetLatestAnalysisResultResponse) ValidateAll

func (m *GetLatestAnalysisResultResponse) ValidateAll() error

ValidateAll checks the field values on GetLatestAnalysisResultResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLatestAnalysisResultResponseMultiError, or nil if none found.

type GetLatestAnalysisResultResponseMultiError

type GetLatestAnalysisResultResponseMultiError []error

GetLatestAnalysisResultResponseMultiError is an error wrapping multiple validation errors returned by GetLatestAnalysisResultResponse.ValidateAll() if the designated constraints aren't met.

func (GetLatestAnalysisResultResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetLatestAnalysisResultResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetLatestAnalysisResultResponseValidationError

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

GetLatestAnalysisResultResponseValidationError is the validation error returned by GetLatestAnalysisResultResponse.Validate if the designated constraints aren't met.

func (GetLatestAnalysisResultResponseValidationError) Cause

Cause function returns cause value.

func (GetLatestAnalysisResultResponseValidationError) Error

Error satisfies the builtin error interface

func (GetLatestAnalysisResultResponseValidationError) ErrorName

ErrorName returns error name.

func (GetLatestAnalysisResultResponseValidationError) Field

Field function returns field value.

func (GetLatestAnalysisResultResponseValidationError) Key

Key function returns key value.

func (GetLatestAnalysisResultResponseValidationError) Reason

Reason function returns reason value.

type ListStageCommandsRequest

type ListStageCommandsRequest struct {
	DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
	StageId      string `protobuf:"bytes,2,opt,name=stage_id,json=stageId,proto3" json:"stage_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListStageCommandsRequest) Descriptor deprecated

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

Deprecated: Use ListStageCommandsRequest.ProtoReflect.Descriptor instead.

func (*ListStageCommandsRequest) GetDeploymentId

func (x *ListStageCommandsRequest) GetDeploymentId() string

func (*ListStageCommandsRequest) GetStageId

func (x *ListStageCommandsRequest) GetStageId() string

func (*ListStageCommandsRequest) ProtoMessage

func (*ListStageCommandsRequest) ProtoMessage()

func (*ListStageCommandsRequest) ProtoReflect

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

func (*ListStageCommandsRequest) Reset

func (x *ListStageCommandsRequest) Reset()

func (*ListStageCommandsRequest) String

func (x *ListStageCommandsRequest) String() string

func (*ListStageCommandsRequest) Validate

func (m *ListStageCommandsRequest) Validate() error

Validate checks the field values on ListStageCommandsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListStageCommandsRequest) ValidateAll

func (m *ListStageCommandsRequest) ValidateAll() error

ValidateAll checks the field values on ListStageCommandsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListStageCommandsRequestMultiError, or nil if none found.

type ListStageCommandsRequestMultiError

type ListStageCommandsRequestMultiError []error

ListStageCommandsRequestMultiError is an error wrapping multiple validation errors returned by ListStageCommandsRequest.ValidateAll() if the designated constraints aren't met.

func (ListStageCommandsRequestMultiError) AllErrors

func (m ListStageCommandsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListStageCommandsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListStageCommandsRequestValidationError

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

ListStageCommandsRequestValidationError is the validation error returned by ListStageCommandsRequest.Validate if the designated constraints aren't met.

func (ListStageCommandsRequestValidationError) Cause

Cause function returns cause value.

func (ListStageCommandsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListStageCommandsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListStageCommandsRequestValidationError) Field

Field function returns field value.

func (ListStageCommandsRequestValidationError) Key

Key function returns key value.

func (ListStageCommandsRequestValidationError) Reason

Reason function returns reason value.

type ListStageCommandsResponse

type ListStageCommandsResponse struct {
	Commands []*model.Command `protobuf:"bytes,1,rep,name=commands,proto3" json:"commands,omitempty"`
	// contains filtered or unexported fields
}

func (*ListStageCommandsResponse) Descriptor deprecated

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

Deprecated: Use ListStageCommandsResponse.ProtoReflect.Descriptor instead.

func (*ListStageCommandsResponse) GetCommands

func (x *ListStageCommandsResponse) GetCommands() []*model.Command

func (*ListStageCommandsResponse) ProtoMessage

func (*ListStageCommandsResponse) ProtoMessage()

func (*ListStageCommandsResponse) ProtoReflect

func (*ListStageCommandsResponse) Reset

func (x *ListStageCommandsResponse) Reset()

func (*ListStageCommandsResponse) String

func (x *ListStageCommandsResponse) String() string

func (*ListStageCommandsResponse) Validate

func (m *ListStageCommandsResponse) Validate() error

Validate checks the field values on ListStageCommandsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListStageCommandsResponse) ValidateAll

func (m *ListStageCommandsResponse) ValidateAll() error

ValidateAll checks the field values on ListStageCommandsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListStageCommandsResponseMultiError, or nil if none found.

type ListStageCommandsResponseMultiError

type ListStageCommandsResponseMultiError []error

ListStageCommandsResponseMultiError is an error wrapping multiple validation errors returned by ListStageCommandsResponse.ValidateAll() if the designated constraints aren't met.

func (ListStageCommandsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListStageCommandsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListStageCommandsResponseValidationError

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

ListStageCommandsResponseValidationError is the validation error returned by ListStageCommandsResponse.Validate if the designated constraints aren't met.

func (ListStageCommandsResponseValidationError) Cause

Cause function returns cause value.

func (ListStageCommandsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListStageCommandsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListStageCommandsResponseValidationError) Field

Field function returns field value.

func (ListStageCommandsResponseValidationError) Key

Key function returns key value.

func (ListStageCommandsResponseValidationError) Reason

Reason function returns reason value.

type PluginServiceClient

type PluginServiceClient interface {
	// ListStageCommands returns the list requested commands to the given stage.
	ListStageCommands(ctx context.Context, in *ListStageCommandsRequest, opts ...grpc.CallOption) (*ListStageCommandsResponse, error)
	// Put and Get the latest analysis result of a given application.
	// Used by the analysis plugin to store and retrieve the latest analysis result.
	GetLatestAnalysisResult(ctx context.Context, in *GetLatestAnalysisResultRequest, opts ...grpc.CallOption) (*GetLatestAnalysisResultResponse, error)
	PutLatestAnalysisResult(ctx context.Context, in *PutLatestAnalysisResultRequest, opts ...grpc.CallOption) (*PutLatestAnalysisResultResponse, error)
}

PluginServiceClient is the client API for PluginService 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 PluginServiceServer

type PluginServiceServer interface {
	// ListStageCommands returns the list requested commands to the given stage.
	ListStageCommands(context.Context, *ListStageCommandsRequest) (*ListStageCommandsResponse, error)
	// Put and Get the latest analysis result of a given application.
	// Used by the analysis plugin to store and retrieve the latest analysis result.
	GetLatestAnalysisResult(context.Context, *GetLatestAnalysisResultRequest) (*GetLatestAnalysisResultResponse, error)
	PutLatestAnalysisResult(context.Context, *PutLatestAnalysisResultRequest) (*PutLatestAnalysisResultResponse, error)
	// contains filtered or unexported methods
}

PluginServiceServer is the server API for PluginService service. All implementations must embed UnimplementedPluginServiceServer for forward compatibility

type PutLatestAnalysisResultRequest

type PutLatestAnalysisResultRequest struct {
	ApplicationId  string                `protobuf:"bytes,1,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	AnalysisResult *model.AnalysisResult `protobuf:"bytes,2,opt,name=analysis_result,json=analysisResult,proto3" json:"analysis_result,omitempty"`
	// contains filtered or unexported fields
}

func (*PutLatestAnalysisResultRequest) Descriptor deprecated

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

Deprecated: Use PutLatestAnalysisResultRequest.ProtoReflect.Descriptor instead.

func (*PutLatestAnalysisResultRequest) GetAnalysisResult

func (x *PutLatestAnalysisResultRequest) GetAnalysisResult() *model.AnalysisResult

func (*PutLatestAnalysisResultRequest) GetApplicationId

func (x *PutLatestAnalysisResultRequest) GetApplicationId() string

func (*PutLatestAnalysisResultRequest) ProtoMessage

func (*PutLatestAnalysisResultRequest) ProtoMessage()

func (*PutLatestAnalysisResultRequest) ProtoReflect

func (*PutLatestAnalysisResultRequest) Reset

func (x *PutLatestAnalysisResultRequest) Reset()

func (*PutLatestAnalysisResultRequest) String

func (*PutLatestAnalysisResultRequest) Validate

func (m *PutLatestAnalysisResultRequest) Validate() error

Validate checks the field values on PutLatestAnalysisResultRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PutLatestAnalysisResultRequest) ValidateAll

func (m *PutLatestAnalysisResultRequest) ValidateAll() error

ValidateAll checks the field values on PutLatestAnalysisResultRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PutLatestAnalysisResultRequestMultiError, or nil if none found.

type PutLatestAnalysisResultRequestMultiError

type PutLatestAnalysisResultRequestMultiError []error

PutLatestAnalysisResultRequestMultiError is an error wrapping multiple validation errors returned by PutLatestAnalysisResultRequest.ValidateAll() if the designated constraints aren't met.

func (PutLatestAnalysisResultRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PutLatestAnalysisResultRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PutLatestAnalysisResultRequestValidationError

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

PutLatestAnalysisResultRequestValidationError is the validation error returned by PutLatestAnalysisResultRequest.Validate if the designated constraints aren't met.

func (PutLatestAnalysisResultRequestValidationError) Cause

Cause function returns cause value.

func (PutLatestAnalysisResultRequestValidationError) Error

Error satisfies the builtin error interface

func (PutLatestAnalysisResultRequestValidationError) ErrorName

ErrorName returns error name.

func (PutLatestAnalysisResultRequestValidationError) Field

Field function returns field value.

func (PutLatestAnalysisResultRequestValidationError) Key

Key function returns key value.

func (PutLatestAnalysisResultRequestValidationError) Reason

Reason function returns reason value.

type PutLatestAnalysisResultResponse

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

func (*PutLatestAnalysisResultResponse) Descriptor deprecated

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

Deprecated: Use PutLatestAnalysisResultResponse.ProtoReflect.Descriptor instead.

func (*PutLatestAnalysisResultResponse) ProtoMessage

func (*PutLatestAnalysisResultResponse) ProtoMessage()

func (*PutLatestAnalysisResultResponse) ProtoReflect

func (*PutLatestAnalysisResultResponse) Reset

func (*PutLatestAnalysisResultResponse) String

func (*PutLatestAnalysisResultResponse) Validate

func (m *PutLatestAnalysisResultResponse) Validate() error

Validate checks the field values on PutLatestAnalysisResultResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PutLatestAnalysisResultResponse) ValidateAll

func (m *PutLatestAnalysisResultResponse) ValidateAll() error

ValidateAll checks the field values on PutLatestAnalysisResultResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PutLatestAnalysisResultResponseMultiError, or nil if none found.

type PutLatestAnalysisResultResponseMultiError

type PutLatestAnalysisResultResponseMultiError []error

PutLatestAnalysisResultResponseMultiError is an error wrapping multiple validation errors returned by PutLatestAnalysisResultResponse.ValidateAll() if the designated constraints aren't met.

func (PutLatestAnalysisResultResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PutLatestAnalysisResultResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PutLatestAnalysisResultResponseValidationError

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

PutLatestAnalysisResultResponseValidationError is the validation error returned by PutLatestAnalysisResultResponse.Validate if the designated constraints aren't met.

func (PutLatestAnalysisResultResponseValidationError) Cause

Cause function returns cause value.

func (PutLatestAnalysisResultResponseValidationError) Error

Error satisfies the builtin error interface

func (PutLatestAnalysisResultResponseValidationError) ErrorName

ErrorName returns error name.

func (PutLatestAnalysisResultResponseValidationError) Field

Field function returns field value.

func (PutLatestAnalysisResultResponseValidationError) Key

Key function returns key value.

func (PutLatestAnalysisResultResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedPluginServiceServer

type UnimplementedPluginServiceServer struct {
}

UnimplementedPluginServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginServiceServer) ListStageCommands

type UnsafePluginServiceServer

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

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

Jump to

Keyboard shortcuts

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