rpc

package
v14.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_module_gitops_rpc_rpc_proto protoreflect.FileDescriptor
View Source
var Gitops_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.gitops.rpc.Gitops",
	HandlerType: (*GitopsServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetObjectsToSynchronize",
			Handler:       _Gitops_GetObjectsToSynchronize_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "internal/module/gitops/rpc/rpc.proto",
}

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

Functions

func RegisterGitopsServer

func RegisterGitopsServer(s grpc.ServiceRegistrar, srv GitopsServer)

Types

type GitopsClient

type GitopsClient interface {
	GetObjectsToSynchronize(ctx context.Context, in *ObjectsToSynchronizeRequest, opts ...grpc.CallOption) (Gitops_GetObjectsToSynchronizeClient, error)
}

GitopsClient is the client API for Gitops 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 NewGitopsClient

func NewGitopsClient(cc grpc.ClientConnInterface) GitopsClient

type GitopsServer

type GitopsServer interface {
	GetObjectsToSynchronize(*ObjectsToSynchronizeRequest, Gitops_GetObjectsToSynchronizeServer) error
	// contains filtered or unexported methods
}

GitopsServer is the server API for Gitops service. All implementations must embed UnimplementedGitopsServer for forward compatibility

type Gitops_GetObjectsToSynchronizeClient

type Gitops_GetObjectsToSynchronizeClient interface {
	Recv() (*ObjectsToSynchronizeResponse, error)
	grpc.ClientStream
}

type Gitops_GetObjectsToSynchronizeServer

type Gitops_GetObjectsToSynchronizeServer interface {
	Send(*ObjectsToSynchronizeResponse) error
	grpc.ServerStream
}

type ObjectSource

type ObjectSource struct {
	Name string
	Data []byte
}

type ObjectsToSynchronizeCallback

type ObjectsToSynchronizeCallback func(context.Context, ObjectsToSynchronizeData)

type ObjectsToSynchronizeData

type ObjectsToSynchronizeData struct {
	CommitId  string
	ProjectId int64
	Sources   []ObjectSource
}

type ObjectsToSynchronizeRequest

type ObjectsToSynchronizeRequest struct {
	ProjectId string             `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CommitId  string             `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	Paths     []*agentcfg.PathCF `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectsToSynchronizeRequest) Descriptor deprecated

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

Deprecated: Use ObjectsToSynchronizeRequest.ProtoReflect.Descriptor instead.

func (*ObjectsToSynchronizeRequest) GetCommitId

func (x *ObjectsToSynchronizeRequest) GetCommitId() string

func (*ObjectsToSynchronizeRequest) GetPaths

func (x *ObjectsToSynchronizeRequest) GetPaths() []*agentcfg.PathCF

func (*ObjectsToSynchronizeRequest) GetProjectId

func (x *ObjectsToSynchronizeRequest) GetProjectId() string

func (*ObjectsToSynchronizeRequest) ProtoMessage

func (*ObjectsToSynchronizeRequest) ProtoMessage()

func (*ObjectsToSynchronizeRequest) ProtoReflect

func (*ObjectsToSynchronizeRequest) Reset

func (x *ObjectsToSynchronizeRequest) Reset()

func (*ObjectsToSynchronizeRequest) String

func (x *ObjectsToSynchronizeRequest) String() string

func (*ObjectsToSynchronizeRequest) Validate

func (m *ObjectsToSynchronizeRequest) Validate() error

Validate checks the field values on ObjectsToSynchronizeRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ObjectsToSynchronizeRequestValidationError

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

ObjectsToSynchronizeRequestValidationError is the validation error returned by ObjectsToSynchronizeRequest.Validate if the designated constraints aren't met.

func (ObjectsToSynchronizeRequestValidationError) Cause

Cause function returns cause value.

func (ObjectsToSynchronizeRequestValidationError) Error

Error satisfies the builtin error interface

func (ObjectsToSynchronizeRequestValidationError) ErrorName

ErrorName returns error name.

func (ObjectsToSynchronizeRequestValidationError) Field

Field function returns field value.

func (ObjectsToSynchronizeRequestValidationError) Key

Key function returns key value.

func (ObjectsToSynchronizeRequestValidationError) Reason

Reason function returns reason value.

type ObjectsToSynchronizeResponse

type ObjectsToSynchronizeResponse struct {

	// Types that are assignable to Message:
	//	*ObjectsToSynchronizeResponse_Header_
	//	*ObjectsToSynchronizeResponse_Object_
	//	*ObjectsToSynchronizeResponse_Trailer_
	Message isObjectsToSynchronizeResponse_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*ObjectsToSynchronizeResponse) Descriptor deprecated

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

Deprecated: Use ObjectsToSynchronizeResponse.ProtoReflect.Descriptor instead.

func (*ObjectsToSynchronizeResponse) GetHeader

func (*ObjectsToSynchronizeResponse) GetMessage

func (m *ObjectsToSynchronizeResponse) GetMessage() isObjectsToSynchronizeResponse_Message

func (*ObjectsToSynchronizeResponse) GetObject

func (*ObjectsToSynchronizeResponse) GetTrailer

func (*ObjectsToSynchronizeResponse) ProtoMessage

func (*ObjectsToSynchronizeResponse) ProtoMessage()

func (*ObjectsToSynchronizeResponse) ProtoReflect

func (*ObjectsToSynchronizeResponse) Reset

func (x *ObjectsToSynchronizeResponse) Reset()

func (*ObjectsToSynchronizeResponse) String

func (*ObjectsToSynchronizeResponse) Validate

func (m *ObjectsToSynchronizeResponse) Validate() error

Validate checks the field values on ObjectsToSynchronizeResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ObjectsToSynchronizeResponseValidationError

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

ObjectsToSynchronizeResponseValidationError is the validation error returned by ObjectsToSynchronizeResponse.Validate if the designated constraints aren't met.

func (ObjectsToSynchronizeResponseValidationError) Cause

Cause function returns cause value.

func (ObjectsToSynchronizeResponseValidationError) Error

Error satisfies the builtin error interface

func (ObjectsToSynchronizeResponseValidationError) ErrorName

ErrorName returns error name.

func (ObjectsToSynchronizeResponseValidationError) Field

Field function returns field value.

func (ObjectsToSynchronizeResponseValidationError) Key

Key function returns key value.

func (ObjectsToSynchronizeResponseValidationError) Reason

Reason function returns reason value.

type ObjectsToSynchronizeResponse_Header

type ObjectsToSynchronizeResponse_Header struct {
	CommitId  string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	ProjectId int64  `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectsToSynchronizeResponse_Header) Descriptor deprecated

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

Deprecated: Use ObjectsToSynchronizeResponse_Header.ProtoReflect.Descriptor instead.

func (*ObjectsToSynchronizeResponse_Header) GetCommitId

func (*ObjectsToSynchronizeResponse_Header) GetProjectId

func (x *ObjectsToSynchronizeResponse_Header) GetProjectId() int64

func (*ObjectsToSynchronizeResponse_Header) ProtoMessage

func (*ObjectsToSynchronizeResponse_Header) ProtoMessage()

func (*ObjectsToSynchronizeResponse_Header) ProtoReflect

func (*ObjectsToSynchronizeResponse_Header) Reset

func (*ObjectsToSynchronizeResponse_Header) String

func (*ObjectsToSynchronizeResponse_Header) Validate

Validate checks the field values on ObjectsToSynchronizeResponse_Header with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ObjectsToSynchronizeResponse_HeaderValidationError

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

ObjectsToSynchronizeResponse_HeaderValidationError is the validation error returned by ObjectsToSynchronizeResponse_Header.Validate if the designated constraints aren't met.

func (ObjectsToSynchronizeResponse_HeaderValidationError) Cause

Cause function returns cause value.

func (ObjectsToSynchronizeResponse_HeaderValidationError) Error

Error satisfies the builtin error interface

func (ObjectsToSynchronizeResponse_HeaderValidationError) ErrorName

ErrorName returns error name.

func (ObjectsToSynchronizeResponse_HeaderValidationError) Field

Field function returns field value.

func (ObjectsToSynchronizeResponse_HeaderValidationError) Key

Key function returns key value.

func (ObjectsToSynchronizeResponse_HeaderValidationError) Reason

Reason function returns reason value.

type ObjectsToSynchronizeResponse_Header_

type ObjectsToSynchronizeResponse_Header_ struct {
	Header *ObjectsToSynchronizeResponse_Header `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}

type ObjectsToSynchronizeResponse_Object

type ObjectsToSynchronizeResponse_Object struct {
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Data   []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectsToSynchronizeResponse_Object) Descriptor deprecated

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

Deprecated: Use ObjectsToSynchronizeResponse_Object.ProtoReflect.Descriptor instead.

func (*ObjectsToSynchronizeResponse_Object) GetData

func (*ObjectsToSynchronizeResponse_Object) GetSource

func (*ObjectsToSynchronizeResponse_Object) ProtoMessage

func (*ObjectsToSynchronizeResponse_Object) ProtoMessage()

func (*ObjectsToSynchronizeResponse_Object) ProtoReflect

func (*ObjectsToSynchronizeResponse_Object) Reset

func (*ObjectsToSynchronizeResponse_Object) String

func (*ObjectsToSynchronizeResponse_Object) Validate

Validate checks the field values on ObjectsToSynchronizeResponse_Object with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ObjectsToSynchronizeResponse_ObjectValidationError

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

ObjectsToSynchronizeResponse_ObjectValidationError is the validation error returned by ObjectsToSynchronizeResponse_Object.Validate if the designated constraints aren't met.

func (ObjectsToSynchronizeResponse_ObjectValidationError) Cause

Cause function returns cause value.

func (ObjectsToSynchronizeResponse_ObjectValidationError) Error

Error satisfies the builtin error interface

func (ObjectsToSynchronizeResponse_ObjectValidationError) ErrorName

ErrorName returns error name.

func (ObjectsToSynchronizeResponse_ObjectValidationError) Field

Field function returns field value.

func (ObjectsToSynchronizeResponse_ObjectValidationError) Key

Key function returns key value.

func (ObjectsToSynchronizeResponse_ObjectValidationError) Reason

Reason function returns reason value.

type ObjectsToSynchronizeResponse_Object_

type ObjectsToSynchronizeResponse_Object_ struct {
	Object *ObjectsToSynchronizeResponse_Object `protobuf:"bytes,2,opt,name=object,proto3,oneof"`
}

type ObjectsToSynchronizeResponse_Trailer

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

func (*ObjectsToSynchronizeResponse_Trailer) Descriptor deprecated

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

Deprecated: Use ObjectsToSynchronizeResponse_Trailer.ProtoReflect.Descriptor instead.

func (*ObjectsToSynchronizeResponse_Trailer) ProtoMessage

func (*ObjectsToSynchronizeResponse_Trailer) ProtoMessage()

func (*ObjectsToSynchronizeResponse_Trailer) ProtoReflect

func (*ObjectsToSynchronizeResponse_Trailer) Reset

func (*ObjectsToSynchronizeResponse_Trailer) String

func (*ObjectsToSynchronizeResponse_Trailer) Validate

Validate checks the field values on ObjectsToSynchronizeResponse_Trailer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ObjectsToSynchronizeResponse_TrailerValidationError

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

ObjectsToSynchronizeResponse_TrailerValidationError is the validation error returned by ObjectsToSynchronizeResponse_Trailer.Validate if the designated constraints aren't met.

func (ObjectsToSynchronizeResponse_TrailerValidationError) Cause

Cause function returns cause value.

func (ObjectsToSynchronizeResponse_TrailerValidationError) Error

Error satisfies the builtin error interface

func (ObjectsToSynchronizeResponse_TrailerValidationError) ErrorName

ErrorName returns error name.

func (ObjectsToSynchronizeResponse_TrailerValidationError) Field

Field function returns field value.

func (ObjectsToSynchronizeResponse_TrailerValidationError) Key

Key function returns key value.

func (ObjectsToSynchronizeResponse_TrailerValidationError) Reason

Reason function returns reason value.

type ObjectsToSynchronizeResponse_Trailer_

type ObjectsToSynchronizeResponse_Trailer_ struct {
	Trailer *ObjectsToSynchronizeResponse_Trailer `protobuf:"bytes,3,opt,name=trailer,proto3,oneof"`
}

type ObjectsToSynchronizeWatcher

type ObjectsToSynchronizeWatcher struct {
	Log          *zap.Logger
	GitopsClient GitopsClient
	PollConfig   retry.PollConfigFactory
}

func (*ObjectsToSynchronizeWatcher) Watch

type ObjectsToSynchronizeWatcherInterface

type ObjectsToSynchronizeWatcherInterface interface {
	Watch(context.Context, *ObjectsToSynchronizeRequest, ObjectsToSynchronizeCallback)
}

ObjectsToSynchronizeWatcherInterface abstracts ObjectsToSynchronizeWatcher.

type UnimplementedGitopsServer

type UnimplementedGitopsServer struct {
}

UnimplementedGitopsServer must be embedded to have forward compatible implementations.

type UnsafeGitopsServer

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

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

Jump to

Keyboard shortcuts

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