Documentation ¶
Index ¶
- Variables
- func RegisterProviderServiceServer(s grpc.ServiceRegistrar, srv ProviderServiceServer)
- type ProviderServiceClient
- type ProviderServiceServer
- type SetConfigRequest
- func (*SetConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetConfigRequest) GetConfigRaw() string
- func (*SetConfigRequest) ProtoMessage()
- func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
- func (x *SetConfigRequest) Reset()
- func (x *SetConfigRequest) String() string
- func (m *SetConfigRequest) Validate() error
- func (m *SetConfigRequest) ValidateAll() error
- type SetConfigRequestMultiError
- type SetConfigRequestValidationError
- func (e SetConfigRequestValidationError) Cause() error
- func (e SetConfigRequestValidationError) Error() string
- func (e SetConfigRequestValidationError) ErrorName() string
- func (e SetConfigRequestValidationError) Field() string
- func (e SetConfigRequestValidationError) Key() bool
- func (e SetConfigRequestValidationError) Reason() string
- type SetConfigResponse
- func (*SetConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (*SetConfigResponse) ProtoMessage()
- func (x *SetConfigResponse) ProtoReflect() protoreflect.Message
- func (x *SetConfigResponse) Reset()
- func (x *SetConfigResponse) String() string
- func (m *SetConfigResponse) Validate() error
- func (m *SetConfigResponse) ValidateAll() error
- type SetConfigResponseMultiError
- type SetConfigResponseValidationError
- func (e SetConfigResponseValidationError) Cause() error
- func (e SetConfigResponseValidationError) Error() string
- func (e SetConfigResponseValidationError) ErrorName() string
- func (e SetConfigResponseValidationError) Field() string
- func (e SetConfigResponseValidationError) Key() bool
- func (e SetConfigResponseValidationError) Reason() string
- type SyncRuntimeConfigRequest
- func (*SyncRuntimeConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncRuntimeConfigRequest) GetLabels() map[string]string
- func (x *SyncRuntimeConfigRequest) GetNamespaceId() string
- func (x *SyncRuntimeConfigRequest) GetNamespaceUrn() string
- func (x *SyncRuntimeConfigRequest) GetProvider() *v1beta1.Provider
- func (*SyncRuntimeConfigRequest) ProtoMessage()
- func (x *SyncRuntimeConfigRequest) ProtoReflect() protoreflect.Message
- func (x *SyncRuntimeConfigRequest) Reset()
- func (x *SyncRuntimeConfigRequest) String() string
- func (m *SyncRuntimeConfigRequest) Validate() error
- func (m *SyncRuntimeConfigRequest) ValidateAll() error
- type SyncRuntimeConfigRequestMultiError
- type SyncRuntimeConfigRequestValidationError
- func (e SyncRuntimeConfigRequestValidationError) Cause() error
- func (e SyncRuntimeConfigRequestValidationError) Error() string
- func (e SyncRuntimeConfigRequestValidationError) ErrorName() string
- func (e SyncRuntimeConfigRequestValidationError) Field() string
- func (e SyncRuntimeConfigRequestValidationError) Key() bool
- func (e SyncRuntimeConfigRequestValidationError) Reason() string
- type SyncRuntimeConfigResponse
- func (*SyncRuntimeConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyncRuntimeConfigResponse) GetLabels() map[string]string
- func (*SyncRuntimeConfigResponse) ProtoMessage()
- func (x *SyncRuntimeConfigResponse) ProtoReflect() protoreflect.Message
- func (x *SyncRuntimeConfigResponse) Reset()
- func (x *SyncRuntimeConfigResponse) String() string
- func (m *SyncRuntimeConfigResponse) Validate() error
- func (m *SyncRuntimeConfigResponse) ValidateAll() error
- type SyncRuntimeConfigResponseMultiError
- type SyncRuntimeConfigResponseValidationError
- func (e SyncRuntimeConfigResponseValidationError) Cause() error
- func (e SyncRuntimeConfigResponseValidationError) Error() string
- func (e SyncRuntimeConfigResponseValidationError) ErrorName() string
- func (e SyncRuntimeConfigResponseValidationError) Field() string
- func (e SyncRuntimeConfigResponseValidationError) Key() bool
- func (e SyncRuntimeConfigResponseValidationError) Reason() string
- type TransformToAlertsRequest
- func (*TransformToAlertsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransformToAlertsRequest) GetBody() *structpb.Struct
- func (x *TransformToAlertsRequest) GetNamespaceId() string
- func (x *TransformToAlertsRequest) GetProviderId() string
- func (*TransformToAlertsRequest) ProtoMessage()
- func (x *TransformToAlertsRequest) ProtoReflect() protoreflect.Message
- func (x *TransformToAlertsRequest) Reset()
- func (x *TransformToAlertsRequest) String() string
- func (m *TransformToAlertsRequest) Validate() error
- func (m *TransformToAlertsRequest) ValidateAll() error
- type TransformToAlertsRequestMultiError
- type TransformToAlertsRequestValidationError
- func (e TransformToAlertsRequestValidationError) Cause() error
- func (e TransformToAlertsRequestValidationError) Error() string
- func (e TransformToAlertsRequestValidationError) ErrorName() string
- func (e TransformToAlertsRequestValidationError) Field() string
- func (e TransformToAlertsRequestValidationError) Key() bool
- func (e TransformToAlertsRequestValidationError) Reason() string
- type TransformToAlertsResponse
- func (*TransformToAlertsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TransformToAlertsResponse) GetAlerts() []*v1beta1.Alert
- func (x *TransformToAlertsResponse) GetFiringNum() uint64
- func (*TransformToAlertsResponse) ProtoMessage()
- func (x *TransformToAlertsResponse) ProtoReflect() protoreflect.Message
- func (x *TransformToAlertsResponse) Reset()
- func (x *TransformToAlertsResponse) String() string
- func (m *TransformToAlertsResponse) Validate() error
- func (m *TransformToAlertsResponse) ValidateAll() error
- type TransformToAlertsResponseMultiError
- type TransformToAlertsResponseValidationError
- func (e TransformToAlertsResponseValidationError) Cause() error
- func (e TransformToAlertsResponseValidationError) Error() string
- func (e TransformToAlertsResponseValidationError) ErrorName() string
- func (e TransformToAlertsResponseValidationError) Field() string
- func (e TransformToAlertsResponseValidationError) Key() bool
- func (e TransformToAlertsResponseValidationError) Reason() string
- type UnimplementedProviderServiceServer
- func (UnimplementedProviderServiceServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
- func (UnimplementedProviderServiceServer) SyncRuntimeConfig(context.Context, *SyncRuntimeConfigRequest) (*SyncRuntimeConfigResponse, error)
- func (UnimplementedProviderServiceServer) TransformToAlerts(context.Context, *TransformToAlertsRequest) (*TransformToAlertsResponse, error)
- func (UnimplementedProviderServiceServer) UpsertRule(context.Context, *UpsertRuleRequest) (*UpsertRuleResponse, error)
- type UnsafeProviderServiceServer
- type UpsertRuleRequest
- func (*UpsertRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertRuleRequest) GetNamespace() *v1beta1.Namespace
- func (x *UpsertRuleRequest) GetProvider() *v1beta1.Provider
- func (x *UpsertRuleRequest) GetRule() *v1beta1.Rule
- func (x *UpsertRuleRequest) GetTemplate() *v1beta1.Template
- func (*UpsertRuleRequest) ProtoMessage()
- func (x *UpsertRuleRequest) ProtoReflect() protoreflect.Message
- func (x *UpsertRuleRequest) Reset()
- func (x *UpsertRuleRequest) String() string
- func (m *UpsertRuleRequest) Validate() error
- func (m *UpsertRuleRequest) ValidateAll() error
- type UpsertRuleRequestMultiError
- type UpsertRuleRequestValidationError
- func (e UpsertRuleRequestValidationError) Cause() error
- func (e UpsertRuleRequestValidationError) Error() string
- func (e UpsertRuleRequestValidationError) ErrorName() string
- func (e UpsertRuleRequestValidationError) Field() string
- func (e UpsertRuleRequestValidationError) Key() bool
- func (e UpsertRuleRequestValidationError) Reason() string
- type UpsertRuleResponse
- func (*UpsertRuleResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpsertRuleResponse) ProtoMessage()
- func (x *UpsertRuleResponse) ProtoReflect() protoreflect.Message
- func (x *UpsertRuleResponse) Reset()
- func (x *UpsertRuleResponse) String() string
- func (m *UpsertRuleResponse) Validate() error
- func (m *UpsertRuleResponse) ValidateAll() error
- type UpsertRuleResponseMultiError
- type UpsertRuleResponseValidationError
- func (e UpsertRuleResponseValidationError) Cause() error
- func (e UpsertRuleResponseValidationError) Error() string
- func (e UpsertRuleResponseValidationError) ErrorName() string
- func (e UpsertRuleResponseValidationError) Field() string
- func (e UpsertRuleResponseValidationError) Key() bool
- func (e UpsertRuleResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_gotocompany_siren_provider_v1beta1_provider_proto protoreflect.FileDescriptor
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.
func NewProviderServiceClient ¶
func NewProviderServiceClient(cc grpc.ClientConnInterface) ProviderServiceClient
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 ¶
func (m SetConfigRequestMultiError) Error() string
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 ¶
func (e SetConfigRequestValidationError) Cause() error
Cause function returns cause value.
func (SetConfigRequestValidationError) Error ¶
func (e SetConfigRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SetConfigRequestValidationError) ErrorName ¶
func (e SetConfigRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SetConfigRequestValidationError) Field ¶
func (e SetConfigRequestValidationError) Field() string
Field function returns field value.
func (SetConfigRequestValidationError) Key ¶
func (e SetConfigRequestValidationError) Key() bool
Key function returns key value.
func (SetConfigRequestValidationError) Reason ¶
func (e SetConfigRequestValidationError) Reason() string
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 ¶
func (m SetConfigResponseMultiError) Error() string
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 ¶
func (e SetConfigResponseValidationError) Cause() error
Cause function returns cause value.
func (SetConfigResponseValidationError) Error ¶
func (e SetConfigResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SetConfigResponseValidationError) ErrorName ¶
func (e SetConfigResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SetConfigResponseValidationError) Field ¶
func (e SetConfigResponseValidationError) Field() string
Field function returns field value.
func (SetConfigResponseValidationError) Key ¶
func (e SetConfigResponseValidationError) Key() bool
Key function returns key value.
func (SetConfigResponseValidationError) Reason ¶
func (e SetConfigResponseValidationError) Reason() string
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 ¶
func (m SyncRuntimeConfigRequestMultiError) Error() string
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 ¶
func (e SyncRuntimeConfigRequestValidationError) Cause() error
Cause function returns cause value.
func (SyncRuntimeConfigRequestValidationError) Error ¶
func (e SyncRuntimeConfigRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SyncRuntimeConfigRequestValidationError) ErrorName ¶
func (e SyncRuntimeConfigRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SyncRuntimeConfigRequestValidationError) Field ¶
func (e SyncRuntimeConfigRequestValidationError) Field() string
Field function returns field value.
func (SyncRuntimeConfigRequestValidationError) Key ¶
func (e SyncRuntimeConfigRequestValidationError) Key() bool
Key function returns key value.
func (SyncRuntimeConfigRequestValidationError) Reason ¶
func (e SyncRuntimeConfigRequestValidationError) Reason() string
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 (x *SyncRuntimeConfigResponse) ProtoReflect() protoreflect.Message
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 ¶
func (m SyncRuntimeConfigResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SyncRuntimeConfigResponseMultiError) Error ¶
func (m SyncRuntimeConfigResponseMultiError) Error() string
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 ¶
func (e SyncRuntimeConfigResponseValidationError) Cause() error
Cause function returns cause value.
func (SyncRuntimeConfigResponseValidationError) Error ¶
func (e SyncRuntimeConfigResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SyncRuntimeConfigResponseValidationError) ErrorName ¶
func (e SyncRuntimeConfigResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SyncRuntimeConfigResponseValidationError) Field ¶
func (e SyncRuntimeConfigResponseValidationError) Field() string
Field function returns field value.
func (SyncRuntimeConfigResponseValidationError) Key ¶
func (e SyncRuntimeConfigResponseValidationError) Key() bool
Key function returns key value.
func (SyncRuntimeConfigResponseValidationError) Reason ¶
func (e SyncRuntimeConfigResponseValidationError) Reason() string
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 (x *TransformToAlertsRequest) GetBody() *structpb.Struct
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 ¶
func (m TransformToAlertsRequestMultiError) Error() string
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 ¶
func (e TransformToAlertsRequestValidationError) Cause() error
Cause function returns cause value.
func (TransformToAlertsRequestValidationError) Error ¶
func (e TransformToAlertsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TransformToAlertsRequestValidationError) ErrorName ¶
func (e TransformToAlertsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TransformToAlertsRequestValidationError) Field ¶
func (e TransformToAlertsRequestValidationError) Field() string
Field function returns field value.
func (TransformToAlertsRequestValidationError) Key ¶
func (e TransformToAlertsRequestValidationError) Key() bool
Key function returns key value.
func (TransformToAlertsRequestValidationError) Reason ¶
func (e TransformToAlertsRequestValidationError) Reason() string
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 (x *TransformToAlertsResponse) ProtoReflect() protoreflect.Message
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 ¶
func (m TransformToAlertsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TransformToAlertsResponseMultiError) Error ¶
func (m TransformToAlertsResponseMultiError) Error() string
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 ¶
func (e TransformToAlertsResponseValidationError) Cause() error
Cause function returns cause value.
func (TransformToAlertsResponseValidationError) Error ¶
func (e TransformToAlertsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (TransformToAlertsResponseValidationError) ErrorName ¶
func (e TransformToAlertsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (TransformToAlertsResponseValidationError) Field ¶
func (e TransformToAlertsResponseValidationError) Field() string
Field function returns field value.
func (TransformToAlertsResponseValidationError) Key ¶
func (e TransformToAlertsResponseValidationError) Key() bool
Key function returns key value.
func (TransformToAlertsResponseValidationError) Reason ¶
func (e TransformToAlertsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedProviderServiceServer ¶
type UnimplementedProviderServiceServer struct { }
UnimplementedProviderServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProviderServiceServer) SetConfig ¶
func (UnimplementedProviderServiceServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
func (UnimplementedProviderServiceServer) SyncRuntimeConfig ¶
func (UnimplementedProviderServiceServer) SyncRuntimeConfig(context.Context, *SyncRuntimeConfigRequest) (*SyncRuntimeConfigResponse, error)
func (UnimplementedProviderServiceServer) TransformToAlerts ¶
func (UnimplementedProviderServiceServer) TransformToAlerts(context.Context, *TransformToAlertsRequest) (*TransformToAlertsResponse, error)
func (UnimplementedProviderServiceServer) UpsertRule ¶
func (UnimplementedProviderServiceServer) UpsertRule(context.Context, *UpsertRuleRequest) (*UpsertRuleResponse, error)
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 ¶
func (m UpsertRuleRequestMultiError) Error() string
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 ¶
func (e UpsertRuleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpsertRuleRequestValidationError) Error ¶
func (e UpsertRuleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpsertRuleRequestValidationError) ErrorName ¶
func (e UpsertRuleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpsertRuleRequestValidationError) Field ¶
func (e UpsertRuleRequestValidationError) Field() string
Field function returns field value.
func (UpsertRuleRequestValidationError) Key ¶
func (e UpsertRuleRequestValidationError) Key() bool
Key function returns key value.
func (UpsertRuleRequestValidationError) Reason ¶
func (e UpsertRuleRequestValidationError) Reason() string
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 ¶
func (m UpsertRuleResponseMultiError) Error() string
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 ¶
func (e UpsertRuleResponseValidationError) Cause() error
Cause function returns cause value.
func (UpsertRuleResponseValidationError) Error ¶
func (e UpsertRuleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpsertRuleResponseValidationError) ErrorName ¶
func (e UpsertRuleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpsertRuleResponseValidationError) Field ¶
func (e UpsertRuleResponseValidationError) Field() string
Field function returns field value.
func (UpsertRuleResponseValidationError) Key ¶
func (e UpsertRuleResponseValidationError) Key() bool
Key function returns key value.
func (UpsertRuleResponseValidationError) Reason ¶
func (e UpsertRuleResponseValidationError) Reason() string
Reason function returns reason value.