rpc

package
v17.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigurationProject_ListAgentConfigFiles_FullMethodName = "/gitlab.agent.configuration_project.rpc.ConfigurationProject/ListAgentConfigFiles"
)

Variables

View Source
var ConfigurationProject_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.configuration_project.rpc.ConfigurationProject",
	HandlerType: (*ConfigurationProjectServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAgentConfigFiles",
			Handler:    _ConfigurationProject_ListAgentConfigFiles_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/module/configuration_project/rpc/rpc.proto",
}

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

View Source
var File_internal_module_configuration_project_rpc_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterConfigurationProjectServer

func RegisterConfigurationProjectServer(s grpc.ServiceRegistrar, srv ConfigurationProjectServer)

Types

type AgentConfigFile

type AgentConfigFile struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AgentName string `protobuf:"bytes,2,opt,name=agent_name,proto3" json:"agent_name,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentConfigFile) Descriptor deprecated

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

Deprecated: Use AgentConfigFile.ProtoReflect.Descriptor instead.

func (*AgentConfigFile) GetAgentName

func (x *AgentConfigFile) GetAgentName() string

func (*AgentConfigFile) GetName

func (x *AgentConfigFile) GetName() string

func (*AgentConfigFile) ProtoMessage

func (*AgentConfigFile) ProtoMessage()

func (*AgentConfigFile) ProtoReflect

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

func (*AgentConfigFile) Reset

func (x *AgentConfigFile) Reset()

func (*AgentConfigFile) String

func (x *AgentConfigFile) String() string

func (*AgentConfigFile) Validate

func (m *AgentConfigFile) Validate() error

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

func (m *AgentConfigFile) ValidateAll() error

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

type AgentConfigFileMultiError

type AgentConfigFileMultiError []error

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

func (AgentConfigFileMultiError) AllErrors

func (m AgentConfigFileMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AgentConfigFileMultiError) Error

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

type AgentConfigFileValidationError

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

AgentConfigFileValidationError is the validation error returned by AgentConfigFile.Validate if the designated constraints aren't met.

func (AgentConfigFileValidationError) Cause

Cause function returns cause value.

func (AgentConfigFileValidationError) Error

Error satisfies the builtin error interface

func (AgentConfigFileValidationError) ErrorName

func (e AgentConfigFileValidationError) ErrorName() string

ErrorName returns error name.

func (AgentConfigFileValidationError) Field

Field function returns field value.

func (AgentConfigFileValidationError) Key

Key function returns key value.

func (AgentConfigFileValidationError) Reason

Reason function returns reason value.

type ConfigurationProjectClient

type ConfigurationProjectClient interface {
	ListAgentConfigFiles(ctx context.Context, in *ListAgentConfigFilesRequest, opts ...grpc.CallOption) (*ListAgentConfigFilesResponse, error)
}

ConfigurationProjectClient is the client API for ConfigurationProject 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 ConfigurationProjectServer

type ConfigurationProjectServer interface {
	ListAgentConfigFiles(context.Context, *ListAgentConfigFilesRequest) (*ListAgentConfigFilesResponse, error)
	// contains filtered or unexported methods
}

ConfigurationProjectServer is the server API for ConfigurationProject service. All implementations must embed UnimplementedConfigurationProjectServer for forward compatibility

type ListAgentConfigFilesRequest

type ListAgentConfigFilesRequest struct {
	Repository    *entity.GitalyRepository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	GitalyInfo    *entity.GitalyInfo       `protobuf:"bytes,2,opt,name=gitaly_info,json=gitalyInfo,proto3" json:"gitaly_info,omitempty"`
	DefaultBranch string                   `protobuf:"bytes,3,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentConfigFilesRequest) Descriptor deprecated

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

Deprecated: Use ListAgentConfigFilesRequest.ProtoReflect.Descriptor instead.

func (*ListAgentConfigFilesRequest) GetDefaultBranch

func (x *ListAgentConfigFilesRequest) GetDefaultBranch() string

func (*ListAgentConfigFilesRequest) GetGitalyInfo

func (x *ListAgentConfigFilesRequest) GetGitalyInfo() *entity.GitalyInfo

func (*ListAgentConfigFilesRequest) GetRepository

func (*ListAgentConfigFilesRequest) ProtoMessage

func (*ListAgentConfigFilesRequest) ProtoMessage()

func (*ListAgentConfigFilesRequest) ProtoReflect

func (*ListAgentConfigFilesRequest) Reset

func (x *ListAgentConfigFilesRequest) Reset()

func (*ListAgentConfigFilesRequest) String

func (x *ListAgentConfigFilesRequest) String() string

func (*ListAgentConfigFilesRequest) Validate

func (m *ListAgentConfigFilesRequest) Validate() error

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

func (m *ListAgentConfigFilesRequest) ValidateAll() error

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

type ListAgentConfigFilesRequestMultiError

type ListAgentConfigFilesRequestMultiError []error

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

func (ListAgentConfigFilesRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListAgentConfigFilesRequestMultiError) Error

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

type ListAgentConfigFilesRequestValidationError

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

ListAgentConfigFilesRequestValidationError is the validation error returned by ListAgentConfigFilesRequest.Validate if the designated constraints aren't met.

func (ListAgentConfigFilesRequestValidationError) Cause

Cause function returns cause value.

func (ListAgentConfigFilesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAgentConfigFilesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListAgentConfigFilesRequestValidationError) Field

Field function returns field value.

func (ListAgentConfigFilesRequestValidationError) Key

Key function returns key value.

func (ListAgentConfigFilesRequestValidationError) Reason

Reason function returns reason value.

type ListAgentConfigFilesResponse

type ListAgentConfigFilesResponse struct {
	ConfigFiles []*AgentConfigFile `protobuf:"bytes,1,rep,name=config_files,proto3" json:"config_files,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentConfigFilesResponse) Descriptor deprecated

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

Deprecated: Use ListAgentConfigFilesResponse.ProtoReflect.Descriptor instead.

func (*ListAgentConfigFilesResponse) GetConfigFiles

func (x *ListAgentConfigFilesResponse) GetConfigFiles() []*AgentConfigFile

func (*ListAgentConfigFilesResponse) ProtoMessage

func (*ListAgentConfigFilesResponse) ProtoMessage()

func (*ListAgentConfigFilesResponse) ProtoReflect

func (*ListAgentConfigFilesResponse) Reset

func (x *ListAgentConfigFilesResponse) Reset()

func (*ListAgentConfigFilesResponse) String

func (*ListAgentConfigFilesResponse) Validate

func (m *ListAgentConfigFilesResponse) Validate() error

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

func (m *ListAgentConfigFilesResponse) ValidateAll() error

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

type ListAgentConfigFilesResponseMultiError

type ListAgentConfigFilesResponseMultiError []error

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

func (ListAgentConfigFilesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListAgentConfigFilesResponseMultiError) Error

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

type ListAgentConfigFilesResponseValidationError

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

ListAgentConfigFilesResponseValidationError is the validation error returned by ListAgentConfigFilesResponse.Validate if the designated constraints aren't met.

func (ListAgentConfigFilesResponseValidationError) Cause

Cause function returns cause value.

func (ListAgentConfigFilesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListAgentConfigFilesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListAgentConfigFilesResponseValidationError) Field

Field function returns field value.

func (ListAgentConfigFilesResponseValidationError) Key

Key function returns key value.

func (ListAgentConfigFilesResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedConfigurationProjectServer

type UnimplementedConfigurationProjectServer struct {
}

UnimplementedConfigurationProjectServer must be embedded to have forward compatible implementations.

func (UnimplementedConfigurationProjectServer) ListAgentConfigFiles

type UnsafeConfigurationProjectServer

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

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

Jump to

Keyboard shortcuts

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