sirenproviderv1beta1

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gotocompany_siren_provider_v1beta1_provider_proto protoreflect.FileDescriptor
View Source
var ProviderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gotocompany.siren.provider.v1beta1.ProviderService",
	HandlerType: (*ProviderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SyncRuntimeConfig",
			Handler:    _ProviderService_SyncRuntimeConfig_Handler,
		},
		{
			MethodName: "UpsertRule",
			Handler:    _ProviderService_UpsertRule_Handler,
		},
		{
			MethodName: "SetConfig",
			Handler:    _ProviderService_SetConfig_Handler,
		},
		{
			MethodName: "TransformToAlerts",
			Handler:    _ProviderService_TransformToAlerts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gotocompany/siren/provider/v1beta1/provider.proto",
}

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

Functions

func RegisterProviderServiceServer

func RegisterProviderServiceServer(s grpc.ServiceRegistrar, srv ProviderServiceServer)

Types

type ProviderServiceClient

type ProviderServiceClient interface {
	SyncRuntimeConfig(ctx context.Context, in *SyncRuntimeConfigRequest, opts ...grpc.CallOption) (*SyncRuntimeConfigResponse, error)
	UpsertRule(ctx context.Context, in *UpsertRuleRequest, opts ...grpc.CallOption) (*UpsertRuleResponse, error)
	SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error)
	TransformToAlerts(ctx context.Context, in *TransformToAlertsRequest, opts ...grpc.CallOption) (*TransformToAlertsResponse, error)
}

ProviderServiceClient is the client API for ProviderService 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 ProviderServiceServer

type ProviderServiceServer interface {
	SyncRuntimeConfig(context.Context, *SyncRuntimeConfigRequest) (*SyncRuntimeConfigResponse, error)
	UpsertRule(context.Context, *UpsertRuleRequest) (*UpsertRuleResponse, error)
	SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
	TransformToAlerts(context.Context, *TransformToAlertsRequest) (*TransformToAlertsResponse, error)
	// contains filtered or unexported methods
}

ProviderServiceServer is the server API for ProviderService service. All implementations must embed UnimplementedProviderServiceServer for forward compatibility

type SetConfigRequest

type SetConfigRequest struct {
	ConfigRaw string `protobuf:"bytes,1,opt,name=config_raw,json=configRaw,proto3" json:"config_raw,omitempty"`
	// contains filtered or unexported fields
}

func (*SetConfigRequest) Descriptor deprecated

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

Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.

func (*SetConfigRequest) GetConfigRaw

func (x *SetConfigRequest) GetConfigRaw() string

func (*SetConfigRequest) ProtoMessage

func (*SetConfigRequest) ProtoMessage()

func (*SetConfigRequest) ProtoReflect

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

func (*SetConfigRequest) Reset

func (x *SetConfigRequest) Reset()

func (*SetConfigRequest) String

func (x *SetConfigRequest) String() string

func (*SetConfigRequest) Validate

func (m *SetConfigRequest) Validate() error

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

func (m *SetConfigRequest) ValidateAll() error

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

type SetConfigRequestMultiError

type SetConfigRequestMultiError []error

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

func (SetConfigRequestMultiError) AllErrors

func (m SetConfigRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetConfigRequestMultiError) Error

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

type SetConfigRequestValidationError

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

SetConfigRequestValidationError is the validation error returned by SetConfigRequest.Validate if the designated constraints aren't met.

func (SetConfigRequestValidationError) Cause

Cause function returns cause value.

func (SetConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (SetConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (SetConfigRequestValidationError) Field

Field function returns field value.

func (SetConfigRequestValidationError) Key

Key function returns key value.

func (SetConfigRequestValidationError) Reason

Reason function returns reason value.

type SetConfigResponse

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

func (*SetConfigResponse) Descriptor deprecated

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

Deprecated: Use SetConfigResponse.ProtoReflect.Descriptor instead.

func (*SetConfigResponse) ProtoMessage

func (*SetConfigResponse) ProtoMessage()

func (*SetConfigResponse) ProtoReflect

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

func (*SetConfigResponse) Reset

func (x *SetConfigResponse) Reset()

func (*SetConfigResponse) String

func (x *SetConfigResponse) String() string

func (*SetConfigResponse) Validate

func (m *SetConfigResponse) Validate() error

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

func (m *SetConfigResponse) ValidateAll() error

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

type SetConfigResponseMultiError

type SetConfigResponseMultiError []error

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

func (SetConfigResponseMultiError) AllErrors

func (m SetConfigResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetConfigResponseMultiError) Error

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

type SetConfigResponseValidationError

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

SetConfigResponseValidationError is the validation error returned by SetConfigResponse.Validate if the designated constraints aren't met.

func (SetConfigResponseValidationError) Cause

Cause function returns cause value.

func (SetConfigResponseValidationError) Error

Error satisfies the builtin error interface

func (SetConfigResponseValidationError) ErrorName

ErrorName returns error name.

func (SetConfigResponseValidationError) Field

Field function returns field value.

func (SetConfigResponseValidationError) Key

Key function returns key value.

func (SetConfigResponseValidationError) Reason

Reason function returns reason value.

type SyncRuntimeConfigRequest

type SyncRuntimeConfigRequest struct {
	NamespaceId  string            `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	NamespaceUrn string            `protobuf:"bytes,2,opt,name=namespace_urn,json=namespaceUrn,proto3" json:"namespace_urn,omitempty"`
	Provider     *v1beta1.Provider `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	Labels       map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SyncRuntimeConfigRequest) Descriptor deprecated

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

Deprecated: Use SyncRuntimeConfigRequest.ProtoReflect.Descriptor instead.

func (*SyncRuntimeConfigRequest) GetLabels added in v0.6.9

func (x *SyncRuntimeConfigRequest) GetLabels() map[string]string

func (*SyncRuntimeConfigRequest) GetNamespaceId added in v0.6.9

func (x *SyncRuntimeConfigRequest) GetNamespaceId() string

func (*SyncRuntimeConfigRequest) GetNamespaceUrn added in v0.6.9

func (x *SyncRuntimeConfigRequest) GetNamespaceUrn() string

func (*SyncRuntimeConfigRequest) GetProvider

func (x *SyncRuntimeConfigRequest) GetProvider() *v1beta1.Provider

func (*SyncRuntimeConfigRequest) ProtoMessage

func (*SyncRuntimeConfigRequest) ProtoMessage()

func (*SyncRuntimeConfigRequest) ProtoReflect

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

func (*SyncRuntimeConfigRequest) Reset

func (x *SyncRuntimeConfigRequest) Reset()

func (*SyncRuntimeConfigRequest) String

func (x *SyncRuntimeConfigRequest) String() string

func (*SyncRuntimeConfigRequest) Validate

func (m *SyncRuntimeConfigRequest) Validate() error

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

func (m *SyncRuntimeConfigRequest) ValidateAll() error

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

type SyncRuntimeConfigRequestMultiError

type SyncRuntimeConfigRequestMultiError []error

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

func (SyncRuntimeConfigRequestMultiError) AllErrors

func (m SyncRuntimeConfigRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SyncRuntimeConfigRequestMultiError) Error

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

type SyncRuntimeConfigRequestValidationError

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

SyncRuntimeConfigRequestValidationError is the validation error returned by SyncRuntimeConfigRequest.Validate if the designated constraints aren't met.

func (SyncRuntimeConfigRequestValidationError) Cause

Cause function returns cause value.

func (SyncRuntimeConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (SyncRuntimeConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (SyncRuntimeConfigRequestValidationError) Field

Field function returns field value.

func (SyncRuntimeConfigRequestValidationError) Key

Key function returns key value.

func (SyncRuntimeConfigRequestValidationError) Reason

Reason function returns reason value.

type SyncRuntimeConfigResponse

type SyncRuntimeConfigResponse struct {
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SyncRuntimeConfigResponse) Descriptor deprecated

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

Deprecated: Use SyncRuntimeConfigResponse.ProtoReflect.Descriptor instead.

func (*SyncRuntimeConfigResponse) GetLabels added in v0.6.9

func (x *SyncRuntimeConfigResponse) GetLabels() map[string]string

func (*SyncRuntimeConfigResponse) ProtoMessage

func (*SyncRuntimeConfigResponse) ProtoMessage()

func (*SyncRuntimeConfigResponse) ProtoReflect

func (*SyncRuntimeConfigResponse) Reset

func (x *SyncRuntimeConfigResponse) Reset()

func (*SyncRuntimeConfigResponse) String

func (x *SyncRuntimeConfigResponse) String() string

func (*SyncRuntimeConfigResponse) Validate

func (m *SyncRuntimeConfigResponse) Validate() error

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

func (m *SyncRuntimeConfigResponse) ValidateAll() error

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

type SyncRuntimeConfigResponseMultiError

type SyncRuntimeConfigResponseMultiError []error

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

func (SyncRuntimeConfigResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SyncRuntimeConfigResponseMultiError) Error

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

type SyncRuntimeConfigResponseValidationError

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

SyncRuntimeConfigResponseValidationError is the validation error returned by SyncRuntimeConfigResponse.Validate if the designated constraints aren't met.

func (SyncRuntimeConfigResponseValidationError) Cause

Cause function returns cause value.

func (SyncRuntimeConfigResponseValidationError) Error

Error satisfies the builtin error interface

func (SyncRuntimeConfigResponseValidationError) ErrorName

ErrorName returns error name.

func (SyncRuntimeConfigResponseValidationError) Field

Field function returns field value.

func (SyncRuntimeConfigResponseValidationError) Key

Key function returns key value.

func (SyncRuntimeConfigResponseValidationError) Reason

Reason function returns reason value.

type TransformToAlertsRequest

type TransformToAlertsRequest struct {
	ProviderId  string           `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
	NamespaceId string           `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	Body        *structpb.Struct `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*TransformToAlertsRequest) Descriptor deprecated

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

Deprecated: Use TransformToAlertsRequest.ProtoReflect.Descriptor instead.

func (*TransformToAlertsRequest) GetBody

func (*TransformToAlertsRequest) GetNamespaceId added in v0.6.9

func (x *TransformToAlertsRequest) GetNamespaceId() string

func (*TransformToAlertsRequest) GetProviderId added in v0.6.9

func (x *TransformToAlertsRequest) GetProviderId() string

func (*TransformToAlertsRequest) ProtoMessage

func (*TransformToAlertsRequest) ProtoMessage()

func (*TransformToAlertsRequest) ProtoReflect

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

func (*TransformToAlertsRequest) Reset

func (x *TransformToAlertsRequest) Reset()

func (*TransformToAlertsRequest) String

func (x *TransformToAlertsRequest) String() string

func (*TransformToAlertsRequest) Validate

func (m *TransformToAlertsRequest) Validate() error

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

func (m *TransformToAlertsRequest) ValidateAll() error

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

type TransformToAlertsRequestMultiError

type TransformToAlertsRequestMultiError []error

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

func (TransformToAlertsRequestMultiError) AllErrors

func (m TransformToAlertsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TransformToAlertsRequestMultiError) Error

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

type TransformToAlertsRequestValidationError

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

TransformToAlertsRequestValidationError is the validation error returned by TransformToAlertsRequest.Validate if the designated constraints aren't met.

func (TransformToAlertsRequestValidationError) Cause

Cause function returns cause value.

func (TransformToAlertsRequestValidationError) Error

Error satisfies the builtin error interface

func (TransformToAlertsRequestValidationError) ErrorName

ErrorName returns error name.

func (TransformToAlertsRequestValidationError) Field

Field function returns field value.

func (TransformToAlertsRequestValidationError) Key

Key function returns key value.

func (TransformToAlertsRequestValidationError) Reason

Reason function returns reason value.

type TransformToAlertsResponse

type TransformToAlertsResponse struct {
	Alerts    []*v1beta1.Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"`
	FiringNum uint64           `protobuf:"varint,2,opt,name=firing_num,json=firingNum,proto3" json:"firing_num,omitempty"`
	// contains filtered or unexported fields
}

func (*TransformToAlertsResponse) Descriptor deprecated

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

Deprecated: Use TransformToAlertsResponse.ProtoReflect.Descriptor instead.

func (*TransformToAlertsResponse) GetAlerts

func (x *TransformToAlertsResponse) GetAlerts() []*v1beta1.Alert

func (*TransformToAlertsResponse) GetFiringNum

func (x *TransformToAlertsResponse) GetFiringNum() uint64

func (*TransformToAlertsResponse) ProtoMessage

func (*TransformToAlertsResponse) ProtoMessage()

func (*TransformToAlertsResponse) ProtoReflect

func (*TransformToAlertsResponse) Reset

func (x *TransformToAlertsResponse) Reset()

func (*TransformToAlertsResponse) String

func (x *TransformToAlertsResponse) String() string

func (*TransformToAlertsResponse) Validate

func (m *TransformToAlertsResponse) Validate() error

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

func (m *TransformToAlertsResponse) ValidateAll() error

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

type TransformToAlertsResponseMultiError

type TransformToAlertsResponseMultiError []error

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

func (TransformToAlertsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TransformToAlertsResponseMultiError) Error

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

type TransformToAlertsResponseValidationError

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

TransformToAlertsResponseValidationError is the validation error returned by TransformToAlertsResponse.Validate if the designated constraints aren't met.

func (TransformToAlertsResponseValidationError) Cause

Cause function returns cause value.

func (TransformToAlertsResponseValidationError) Error

Error satisfies the builtin error interface

func (TransformToAlertsResponseValidationError) ErrorName

ErrorName returns error name.

func (TransformToAlertsResponseValidationError) Field

Field function returns field value.

func (TransformToAlertsResponseValidationError) Key

Key function returns key value.

func (TransformToAlertsResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedProviderServiceServer

type UnimplementedProviderServiceServer struct {
}

UnimplementedProviderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedProviderServiceServer) SetConfig

func (UnimplementedProviderServiceServer) SyncRuntimeConfig

func (UnimplementedProviderServiceServer) TransformToAlerts

func (UnimplementedProviderServiceServer) UpsertRule

type UnsafeProviderServiceServer

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

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

type UpsertRuleRequest

type UpsertRuleRequest struct {
	Namespace *v1beta1.Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Provider  *v1beta1.Provider  `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	Rule      *v1beta1.Rule      `protobuf:"bytes,3,opt,name=rule,proto3" json:"rule,omitempty"`
	Template  *v1beta1.Template  `protobuf:"bytes,4,opt,name=template,proto3" json:"template,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertRuleRequest) Descriptor deprecated

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

Deprecated: Use UpsertRuleRequest.ProtoReflect.Descriptor instead.

func (*UpsertRuleRequest) GetNamespace added in v0.6.9

func (x *UpsertRuleRequest) GetNamespace() *v1beta1.Namespace

func (*UpsertRuleRequest) GetProvider

func (x *UpsertRuleRequest) GetProvider() *v1beta1.Provider

func (*UpsertRuleRequest) GetRule

func (x *UpsertRuleRequest) GetRule() *v1beta1.Rule

func (*UpsertRuleRequest) GetTemplate

func (x *UpsertRuleRequest) GetTemplate() *v1beta1.Template

func (*UpsertRuleRequest) ProtoMessage

func (*UpsertRuleRequest) ProtoMessage()

func (*UpsertRuleRequest) ProtoReflect

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

func (*UpsertRuleRequest) Reset

func (x *UpsertRuleRequest) Reset()

func (*UpsertRuleRequest) String

func (x *UpsertRuleRequest) String() string

func (*UpsertRuleRequest) Validate

func (m *UpsertRuleRequest) Validate() error

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

func (m *UpsertRuleRequest) ValidateAll() error

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

type UpsertRuleRequestMultiError

type UpsertRuleRequestMultiError []error

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

func (UpsertRuleRequestMultiError) AllErrors

func (m UpsertRuleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpsertRuleRequestMultiError) Error

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

type UpsertRuleRequestValidationError

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

UpsertRuleRequestValidationError is the validation error returned by UpsertRuleRequest.Validate if the designated constraints aren't met.

func (UpsertRuleRequestValidationError) Cause

Cause function returns cause value.

func (UpsertRuleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpsertRuleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpsertRuleRequestValidationError) Field

Field function returns field value.

func (UpsertRuleRequestValidationError) Key

Key function returns key value.

func (UpsertRuleRequestValidationError) Reason

Reason function returns reason value.

type UpsertRuleResponse

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

func (*UpsertRuleResponse) Descriptor deprecated

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

Deprecated: Use UpsertRuleResponse.ProtoReflect.Descriptor instead.

func (*UpsertRuleResponse) ProtoMessage

func (*UpsertRuleResponse) ProtoMessage()

func (*UpsertRuleResponse) ProtoReflect

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

func (*UpsertRuleResponse) Reset

func (x *UpsertRuleResponse) Reset()

func (*UpsertRuleResponse) String

func (x *UpsertRuleResponse) String() string

func (*UpsertRuleResponse) Validate

func (m *UpsertRuleResponse) Validate() error

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

func (m *UpsertRuleResponse) ValidateAll() error

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

type UpsertRuleResponseMultiError

type UpsertRuleResponseMultiError []error

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

func (UpsertRuleResponseMultiError) AllErrors

func (m UpsertRuleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpsertRuleResponseMultiError) Error

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

type UpsertRuleResponseValidationError

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

UpsertRuleResponseValidationError is the validation error returned by UpsertRuleResponse.Validate if the designated constraints aren't met.

func (UpsertRuleResponseValidationError) Cause

Cause function returns cause value.

func (UpsertRuleResponseValidationError) Error

Error satisfies the builtin error interface

func (UpsertRuleResponseValidationError) ErrorName

ErrorName returns error name.

func (UpsertRuleResponseValidationError) Field

Field function returns field value.

func (UpsertRuleResponseValidationError) Key

Key function returns key value.

func (UpsertRuleResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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