Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterGitLabFluxServer(s grpc.ServiceRegistrar, srv GitLabFluxServer)
- type GitLabFluxClient
- type GitLabFluxServer
- type GitLabFlux_ReconcileProjectsClient
- type GitLabFlux_ReconcileProjectsServer
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetId() string
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- func (m *Project) Validate() error
- func (m *Project) ValidateAll() error
- type ProjectMultiError
- type ProjectValidationError
- type ReconcileProjectsRequest
- func (*ReconcileProjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReconcileProjectsRequest) GetProject() []*Project
- func (*ReconcileProjectsRequest) ProtoMessage()
- func (x *ReconcileProjectsRequest) ProtoReflect() protoreflect.Message
- func (x *ReconcileProjectsRequest) Reset()
- func (x *ReconcileProjectsRequest) String() string
- func (x *ReconcileProjectsRequest) ToProjectSet() map[string]struct{}
- func (m *ReconcileProjectsRequest) Validate() error
- func (m *ReconcileProjectsRequest) ValidateAll() error
- type ReconcileProjectsRequestMultiError
- type ReconcileProjectsRequestValidationError
- func (e ReconcileProjectsRequestValidationError) Cause() error
- func (e ReconcileProjectsRequestValidationError) Error() string
- func (e ReconcileProjectsRequestValidationError) ErrorName() string
- func (e ReconcileProjectsRequestValidationError) Field() string
- func (e ReconcileProjectsRequestValidationError) Key() bool
- func (e ReconcileProjectsRequestValidationError) Reason() string
- type ReconcileProjectsResponse
- func (*ReconcileProjectsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReconcileProjectsResponse) GetProject() *Project
- func (*ReconcileProjectsResponse) ProtoMessage()
- func (x *ReconcileProjectsResponse) ProtoReflect() protoreflect.Message
- func (x *ReconcileProjectsResponse) Reset()
- func (x *ReconcileProjectsResponse) String() string
- func (m *ReconcileProjectsResponse) Validate() error
- func (m *ReconcileProjectsResponse) ValidateAll() error
- type ReconcileProjectsResponseMultiError
- type ReconcileProjectsResponseValidationError
- func (e ReconcileProjectsResponseValidationError) Cause() error
- func (e ReconcileProjectsResponseValidationError) Error() string
- func (e ReconcileProjectsResponseValidationError) ErrorName() string
- func (e ReconcileProjectsResponseValidationError) Field() string
- func (e ReconcileProjectsResponseValidationError) Key() bool
- func (e ReconcileProjectsResponseValidationError) Reason() string
- type UnimplementedGitLabFluxServer
- type UnsafeGitLabFluxServer
Constants ¶
const (
GitLabFlux_ReconcileProjects_FullMethodName = "/gitlab.agent.flux.rpc.GitLabFlux/ReconcileProjects"
)
Variables ¶
var File_internal_module_flux_rpc_rpc_proto protoreflect.FileDescriptor
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 (*Project) Descriptor
deprecated
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
func (*Project) Validate ¶
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 ¶
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 ¶
func (m ReconcileProjectsRequestMultiError) Error() string
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 ¶
func (e ReconcileProjectsRequestValidationError) Cause() error
Cause function returns cause value.
func (ReconcileProjectsRequestValidationError) Error ¶
func (e ReconcileProjectsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReconcileProjectsRequestValidationError) ErrorName ¶
func (e ReconcileProjectsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReconcileProjectsRequestValidationError) Field ¶
func (e ReconcileProjectsRequestValidationError) Field() string
Field function returns field value.
func (ReconcileProjectsRequestValidationError) Key ¶
func (e ReconcileProjectsRequestValidationError) Key() bool
Key function returns key value.
func (ReconcileProjectsRequestValidationError) Reason ¶
func (e ReconcileProjectsRequestValidationError) Reason() string
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 (x *ReconcileProjectsResponse) ProtoReflect() protoreflect.Message
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 ¶
func (m ReconcileProjectsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReconcileProjectsResponseMultiError) Error ¶
func (m ReconcileProjectsResponseMultiError) Error() string
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 ¶
func (e ReconcileProjectsResponseValidationError) Cause() error
Cause function returns cause value.
func (ReconcileProjectsResponseValidationError) Error ¶
func (e ReconcileProjectsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReconcileProjectsResponseValidationError) ErrorName ¶
func (e ReconcileProjectsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReconcileProjectsResponseValidationError) Field ¶
func (e ReconcileProjectsResponseValidationError) Field() string
Field function returns field value.
func (ReconcileProjectsResponseValidationError) Key ¶
func (e ReconcileProjectsResponseValidationError) Key() bool
Key function returns key value.
func (ReconcileProjectsResponseValidationError) Reason ¶
func (e ReconcileProjectsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedGitLabFluxServer ¶
type UnimplementedGitLabFluxServer struct { }
UnimplementedGitLabFluxServer must be embedded to have forward compatible implementations.
func (UnimplementedGitLabFluxServer) ReconcileProjects ¶
func (UnimplementedGitLabFluxServer) ReconcileProjects(*ReconcileProjectsRequest, GitLabFlux_ReconcileProjectsServer) error
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.