rpc

package
v16.11.10 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gitops_GetObjectsToSynchronize_FullMethodName = "/gitlab.agent.gitops.rpc.Gitops/GetObjectsToSynchronize"
)

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 GitRefCF

type GitRefCF struct {

	// Types that are assignable to Ref:
	//
	//	*GitRefCF_Tag
	//	*GitRefCF_Branch
	//	*GitRefCF_Commit
	Ref isGitRefCF_Ref `protobuf_oneof:"ref"`
	// contains filtered or unexported fields
}

func NewRPCRef added in v16.9.0

func NewRPCRef(configRef *agentcfg.GitRefCF) *GitRefCF

func (*GitRefCF) Descriptor deprecated

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

Deprecated: Use GitRefCF.ProtoReflect.Descriptor instead.

func (*GitRefCF) GetBranch

func (x *GitRefCF) GetBranch() string

func (*GitRefCF) GetCommit

func (x *GitRefCF) GetCommit() string

func (*GitRefCF) GetRef

func (m *GitRefCF) GetRef() isGitRefCF_Ref

func (*GitRefCF) GetResolvedRef

func (x *GitRefCF) GetResolvedRef() string

GetResolvedRef resolved the `Ref` into a full unambiguous Git reference.

func (*GitRefCF) GetTag

func (x *GitRefCF) GetTag() string

func (*GitRefCF) ProtoMessage

func (*GitRefCF) ProtoMessage()

func (*GitRefCF) ProtoReflect

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

func (*GitRefCF) Reset

func (x *GitRefCF) Reset()

func (*GitRefCF) String

func (x *GitRefCF) String() string

func (*GitRefCF) Validate

func (m *GitRefCF) Validate() error

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

func (m *GitRefCF) ValidateAll() error

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

type GitRefCFMultiError

type GitRefCFMultiError []error

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

func (GitRefCFMultiError) AllErrors

func (m GitRefCFMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitRefCFMultiError) Error

func (m GitRefCFMultiError) Error() string

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

type GitRefCFValidationError

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

GitRefCFValidationError is the validation error returned by GitRefCF.Validate if the designated constraints aren't met.

func (GitRefCFValidationError) Cause

func (e GitRefCFValidationError) Cause() error

Cause function returns cause value.

func (GitRefCFValidationError) Error

func (e GitRefCFValidationError) Error() string

Error satisfies the builtin error interface

func (GitRefCFValidationError) ErrorName

func (e GitRefCFValidationError) ErrorName() string

ErrorName returns error name.

func (GitRefCFValidationError) Field

func (e GitRefCFValidationError) Field() string

Field function returns field value.

func (GitRefCFValidationError) Key

func (e GitRefCFValidationError) Key() bool

Key function returns key value.

func (GitRefCFValidationError) Reason

func (e GitRefCFValidationError) Reason() string

Reason function returns reason value.

type GitRefCF_Branch

type GitRefCF_Branch struct {
	Branch string `protobuf:"bytes,2,opt,name=branch,proto3,oneof"`
}

type GitRefCF_Commit

type GitRefCF_Commit struct {
	Commit string `protobuf:"bytes,3,opt,name=commit,proto3,oneof"`
}

type GitRefCF_Tag

type GitRefCF_Tag struct {
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3,oneof"`
}

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"`
	Ref       *GitRefCF `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
	CommitId  string    `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	Paths     []*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() []*PathCF

func (*ObjectsToSynchronizeRequest) GetProjectId

func (x *ObjectsToSynchronizeRequest) GetProjectId() string

func (*ObjectsToSynchronizeRequest) GetRef

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, the first error encountered is returned, or nil if there are no violations.

func (*ObjectsToSynchronizeRequest) ValidateAll

func (m *ObjectsToSynchronizeRequest) ValidateAll() error

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

type ObjectsToSynchronizeRequestMultiError

type ObjectsToSynchronizeRequestMultiError []error

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

func (ObjectsToSynchronizeRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ObjectsToSynchronizeRequestMultiError) Error

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

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, the first error encountered is returned, or nil if there are no violations.

func (*ObjectsToSynchronizeResponse) ValidateAll

func (m *ObjectsToSynchronizeResponse) ValidateAll() error

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

type ObjectsToSynchronizeResponseMultiError

type ObjectsToSynchronizeResponseMultiError []error

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

func (ObjectsToSynchronizeResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ObjectsToSynchronizeResponseMultiError) Error

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

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, the first error encountered is returned, or nil if there are no violations.

func (*ObjectsToSynchronizeResponse_Header) ValidateAll

func (m *ObjectsToSynchronizeResponse_Header) ValidateAll() error

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

type ObjectsToSynchronizeResponse_HeaderMultiError

type ObjectsToSynchronizeResponse_HeaderMultiError []error

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

func (ObjectsToSynchronizeResponse_HeaderMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ObjectsToSynchronizeResponse_HeaderMultiError) Error

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

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, the first error encountered is returned, or nil if there are no violations.

func (*ObjectsToSynchronizeResponse_Object) ValidateAll

func (m *ObjectsToSynchronizeResponse_Object) ValidateAll() error

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

type ObjectsToSynchronizeResponse_ObjectMultiError

type ObjectsToSynchronizeResponse_ObjectMultiError []error

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

func (ObjectsToSynchronizeResponse_ObjectMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ObjectsToSynchronizeResponse_ObjectMultiError) Error

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

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, the first error encountered is returned, or nil if there are no violations.

func (*ObjectsToSynchronizeResponse_Trailer) ValidateAll

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

type ObjectsToSynchronizeResponse_TrailerMultiError

type ObjectsToSynchronizeResponse_TrailerMultiError []error

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

func (ObjectsToSynchronizeResponse_TrailerMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ObjectsToSynchronizeResponse_TrailerMultiError) Error

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

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 PathCF

type PathCF struct {

	// Types that are assignable to Path:
	//
	//	*PathCF_Glob
	//	*PathCF_File
	Path isPathCF_Path `protobuf_oneof:"path"`
	// contains filtered or unexported fields
}

func (*PathCF) Descriptor deprecated

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

Deprecated: Use PathCF.ProtoReflect.Descriptor instead.

func (*PathCF) GetFile

func (x *PathCF) GetFile() string

func (*PathCF) GetGlob

func (x *PathCF) GetGlob() string

func (*PathCF) GetPath

func (m *PathCF) GetPath() isPathCF_Path

func (*PathCF) ProtoMessage

func (*PathCF) ProtoMessage()

func (*PathCF) ProtoReflect

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

func (*PathCF) Reset

func (x *PathCF) Reset()

func (*PathCF) String

func (x *PathCF) String() string

func (*PathCF) Validate

func (m *PathCF) Validate() error

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

func (m *PathCF) ValidateAll() error

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

type PathCFMultiError

type PathCFMultiError []error

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

func (PathCFMultiError) AllErrors

func (m PathCFMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PathCFMultiError) Error

func (m PathCFMultiError) Error() string

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

type PathCFValidationError

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

PathCFValidationError is the validation error returned by PathCF.Validate if the designated constraints aren't met.

func (PathCFValidationError) Cause

func (e PathCFValidationError) Cause() error

Cause function returns cause value.

func (PathCFValidationError) Error

func (e PathCFValidationError) Error() string

Error satisfies the builtin error interface

func (PathCFValidationError) ErrorName

func (e PathCFValidationError) ErrorName() string

ErrorName returns error name.

func (PathCFValidationError) Field

func (e PathCFValidationError) Field() string

Field function returns field value.

func (PathCFValidationError) Key

func (e PathCFValidationError) Key() bool

Key function returns key value.

func (PathCFValidationError) Reason

func (e PathCFValidationError) Reason() string

Reason function returns reason value.

type PathCF_File

type PathCF_File struct {
	File string `protobuf:"bytes,2,opt,name=file,proto3,oneof"`
}

type PathCF_Glob

type PathCF_Glob struct {
	Glob string `protobuf:"bytes,1,opt,name=glob,proto3,oneof"`
}

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