rpc

package
v16.10.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitLabFlux_ReconcileProjects_FullMethodName = "/gitlab.agent.flux.rpc.GitLabFlux/ReconcileProjects"
)

Variables

View Source
var File_internal_module_flux_rpc_rpc_proto protoreflect.FileDescriptor
View Source
var GitLabFlux_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.flux.rpc.GitLabFlux",
	HandlerType: (*GitLabFluxServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ReconcileProjects",
			Handler:       _GitLabFlux_ReconcileProjects_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "internal/module/flux/rpc/rpc.proto",
}

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

Functions

func RegisterGitLabFluxServer

func RegisterGitLabFluxServer(s grpc.ServiceRegistrar, srv GitLabFluxServer)

Types

type GitLabFluxClient

type GitLabFluxClient interface {
	ReconcileProjects(ctx context.Context, in *ReconcileProjectsRequest, opts ...grpc.CallOption) (GitLabFlux_ReconcileProjectsClient, error)
}

GitLabFluxClient is the client API for GitLabFlux 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.

func NewGitLabFluxClient

func NewGitLabFluxClient(cc grpc.ClientConnInterface) GitLabFluxClient

type GitLabFluxServer

type GitLabFluxServer interface {
	ReconcileProjects(*ReconcileProjectsRequest, GitLabFlux_ReconcileProjectsServer) error
	// contains filtered or unexported methods
}

GitLabFluxServer is the server API for GitLabFlux service. All implementations must embed UnimplementedGitLabFluxServer for forward compatibility

type GitLabFlux_ReconcileProjectsClient

type GitLabFlux_ReconcileProjectsClient interface {
	Recv() (*ReconcileProjectsResponse, error)
	grpc.ClientStream
}

type GitLabFlux_ReconcileProjectsServer

type GitLabFlux_ReconcileProjectsServer interface {
	Send(*ReconcileProjectsResponse) error
	grpc.ServerStream
}

type Project

type Project struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func ReconcileProjectsFromSlice

func ReconcileProjectsFromSlice(projects []string) []*Project

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetId

func (x *Project) GetId() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

func (*Project) Validate

func (m *Project) Validate() error

Validate checks the field values on Project 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 (*Project) ValidateAll

func (m *Project) ValidateAll() error

ValidateAll checks the field values on Project 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 ProjectMultiError, or nil if none found.

type ProjectMultiError

type ProjectMultiError []error

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

func (ProjectMultiError) AllErrors

func (m ProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectMultiError) Error

func (m ProjectMultiError) Error() string

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

type ProjectValidationError

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

ProjectValidationError is the validation error returned by Project.Validate if the designated constraints aren't met.

func (ProjectValidationError) Cause

func (e ProjectValidationError) Cause() error

Cause function returns cause value.

func (ProjectValidationError) Error

func (e ProjectValidationError) Error() string

Error satisfies the builtin error interface

func (ProjectValidationError) ErrorName

func (e ProjectValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectValidationError) Field

func (e ProjectValidationError) Field() string

Field function returns field value.

func (ProjectValidationError) Key

func (e ProjectValidationError) Key() bool

Key function returns key value.

func (ProjectValidationError) Reason

func (e ProjectValidationError) Reason() string

Reason function returns reason value.

type ReconcileProjectsRequest

type ReconcileProjectsRequest struct {
	Project []*Project `protobuf:"bytes,1,rep,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ReconcileProjectsRequest) Descriptor deprecated

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

Deprecated: Use ReconcileProjectsRequest.ProtoReflect.Descriptor instead.

func (*ReconcileProjectsRequest) GetProject

func (x *ReconcileProjectsRequest) GetProject() []*Project

func (*ReconcileProjectsRequest) ProtoMessage

func (*ReconcileProjectsRequest) ProtoMessage()

func (*ReconcileProjectsRequest) ProtoReflect

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

func (*ReconcileProjectsRequest) Reset

func (x *ReconcileProjectsRequest) Reset()

func (*ReconcileProjectsRequest) String

func (x *ReconcileProjectsRequest) String() string

func (*ReconcileProjectsRequest) ToProjectSet

func (x *ReconcileProjectsRequest) ToProjectSet() map[string]struct{}

func (*ReconcileProjectsRequest) Validate

func (m *ReconcileProjectsRequest) Validate() error

Validate checks the field values on ReconcileProjectsRequest 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 (*ReconcileProjectsRequest) ValidateAll

func (m *ReconcileProjectsRequest) ValidateAll() error

ValidateAll checks the field values on ReconcileProjectsRequest 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 ReconcileProjectsRequestMultiError, or nil if none found.

type ReconcileProjectsRequestMultiError

type ReconcileProjectsRequestMultiError []error

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

func (ReconcileProjectsRequestMultiError) AllErrors

func (m ReconcileProjectsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReconcileProjectsRequestMultiError) Error

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

type ReconcileProjectsRequestValidationError

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

ReconcileProjectsRequestValidationError is the validation error returned by ReconcileProjectsRequest.Validate if the designated constraints aren't met.

func (ReconcileProjectsRequestValidationError) Cause

Cause function returns cause value.

func (ReconcileProjectsRequestValidationError) Error

Error satisfies the builtin error interface

func (ReconcileProjectsRequestValidationError) ErrorName

ErrorName returns error name.

func (ReconcileProjectsRequestValidationError) Field

Field function returns field value.

func (ReconcileProjectsRequestValidationError) Key

Key function returns key value.

func (ReconcileProjectsRequestValidationError) Reason

Reason function returns reason value.

type ReconcileProjectsResponse

type ReconcileProjectsResponse struct {
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ReconcileProjectsResponse) Descriptor deprecated

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

Deprecated: Use ReconcileProjectsResponse.ProtoReflect.Descriptor instead.

func (*ReconcileProjectsResponse) GetProject

func (x *ReconcileProjectsResponse) GetProject() *Project

func (*ReconcileProjectsResponse) ProtoMessage

func (*ReconcileProjectsResponse) ProtoMessage()

func (*ReconcileProjectsResponse) ProtoReflect

func (*ReconcileProjectsResponse) Reset

func (x *ReconcileProjectsResponse) Reset()

func (*ReconcileProjectsResponse) String

func (x *ReconcileProjectsResponse) String() string

func (*ReconcileProjectsResponse) Validate

func (m *ReconcileProjectsResponse) Validate() error

Validate checks the field values on ReconcileProjectsResponse 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 (*ReconcileProjectsResponse) ValidateAll

func (m *ReconcileProjectsResponse) ValidateAll() error

ValidateAll checks the field values on ReconcileProjectsResponse 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 ReconcileProjectsResponseMultiError, or nil if none found.

type ReconcileProjectsResponseMultiError

type ReconcileProjectsResponseMultiError []error

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

func (ReconcileProjectsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ReconcileProjectsResponseMultiError) Error

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

type ReconcileProjectsResponseValidationError

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

ReconcileProjectsResponseValidationError is the validation error returned by ReconcileProjectsResponse.Validate if the designated constraints aren't met.

func (ReconcileProjectsResponseValidationError) Cause

Cause function returns cause value.

func (ReconcileProjectsResponseValidationError) Error

Error satisfies the builtin error interface

func (ReconcileProjectsResponseValidationError) ErrorName

ErrorName returns error name.

func (ReconcileProjectsResponseValidationError) Field

Field function returns field value.

func (ReconcileProjectsResponseValidationError) Key

Key function returns key value.

func (ReconcileProjectsResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedGitLabFluxServer

type UnimplementedGitLabFluxServer struct {
}

UnimplementedGitLabFluxServer must be embedded to have forward compatible implementations.

type UnsafeGitLabFluxServer

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

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

Jump to

Keyboard shortcuts

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