Documentation ¶
Overview ¶
Package notifications is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterNotificationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNotificationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotificationsClient) error
- func RegisterNotificationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNotificationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotificationsServer) error
- func RegisterNotificationsServer(s *grpc.Server, srv NotificationsServer)
- type Empty
- type NotificationsClient
- type NotificationsServer
- type NotificationsServerMock
- func (m *NotificationsServerMock) AddRule(ctx context.Context, req *RuleAddRequest) (*RuleAddResponse, error)
- func (m *NotificationsServerMock) DeleteRule(ctx context.Context, req *RuleIdentifier) (*RuleDeleteResponse, error)
- func (m *NotificationsServerMock) GetRule(ctx context.Context, req *RuleIdentifier) (*RuleGetResponse, error)
- func (m *NotificationsServerMock) ListRules(ctx context.Context, req *RuleListRequest) (*RuleListResponse, error)
- func (m *NotificationsServerMock) Reset()
- func (m *NotificationsServerMock) UpdateRule(ctx context.Context, req *RuleUpdateRequest) (*RuleUpdateResponse, error)
- func (m *NotificationsServerMock) ValidateWebhook(ctx context.Context, req *URLValidationRequest) (*URLValidationResponse, error)
- func (m *NotificationsServerMock) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error)
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)deprecated
- func (m *Rule) GetAction() isRule_Action
- func (x *Rule) GetEvent() Rule_Event
- func (x *Rule) GetId() string
- func (x *Rule) GetName() string
- func (x *Rule) GetServiceNowAlert() *ServiceNowAlert
- func (x *Rule) GetSlackAlert() *SlackAlert
- func (x *Rule) GetWebhookAlert() *WebhookAlert
- func (*Rule) ProtoMessage()
- func (x *Rule) ProtoReflect() protoreflect.Message
- func (x *Rule) Reset()
- func (x *Rule) String() string
- type RuleAddRequest
- type RuleAddResponse
- func (*RuleAddResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RuleAddResponse) GetId() string
- func (x *RuleAddResponse) GetMessages() []string
- func (x *RuleAddResponse) GetName() string
- func (x *RuleAddResponse) GetRule() *Rule
- func (*RuleAddResponse) ProtoMessage()
- func (x *RuleAddResponse) ProtoReflect() protoreflect.Message
- func (x *RuleAddResponse) Reset()
- func (x *RuleAddResponse) String() string
- type RuleDeleteResponse
- func (*RuleDeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RuleDeleteResponse) GetMessages() []string
- func (*RuleDeleteResponse) ProtoMessage()
- func (x *RuleDeleteResponse) ProtoReflect() protoreflect.Message
- func (x *RuleDeleteResponse) Reset()
- func (x *RuleDeleteResponse) String() string
- type RuleGetResponse
- func (*RuleGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RuleGetResponse) GetMessages() []string
- func (x *RuleGetResponse) GetRule() *Rule
- func (*RuleGetResponse) ProtoMessage()
- func (x *RuleGetResponse) ProtoReflect() protoreflect.Message
- func (x *RuleGetResponse) Reset()
- func (x *RuleGetResponse) String() string
- type RuleIdentifier
- type RuleListRequest
- type RuleListResponse
- func (*RuleListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RuleListResponse) GetMessages() []string
- func (x *RuleListResponse) GetRules() []*Rule
- func (*RuleListResponse) ProtoMessage()
- func (x *RuleListResponse) ProtoReflect() protoreflect.Message
- func (x *RuleListResponse) Reset()
- func (x *RuleListResponse) String() string
- type RuleUpdateRequest
- func (*RuleUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RuleUpdateRequest) GetId() string
- func (x *RuleUpdateRequest) GetRule() *Rule
- func (*RuleUpdateRequest) ProtoMessage()
- func (x *RuleUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *RuleUpdateRequest) Reset()
- func (x *RuleUpdateRequest) String() string
- type RuleUpdateResponse
- func (*RuleUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RuleUpdateResponse) GetMessages() []string
- func (*RuleUpdateResponse) ProtoMessage()
- func (x *RuleUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *RuleUpdateResponse) Reset()
- func (x *RuleUpdateResponse) String() string
- type Rule_Event
- type Rule_ServiceNowAlert
- type Rule_SlackAlert
- type Rule_WebhookAlert
- type SecretId
- type ServiceNowAlert
- func (*ServiceNowAlert) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceNowAlert) GetCriticalControlsOnly() bool
- func (x *ServiceNowAlert) GetSecretId() string
- func (x *ServiceNowAlert) GetUrl() string
- func (*ServiceNowAlert) ProtoMessage()
- func (x *ServiceNowAlert) ProtoReflect() protoreflect.Message
- func (x *ServiceNowAlert) Reset()
- func (x *ServiceNowAlert) String() string
- type SlackAlert
- type URLValidationRequest
- func (*URLValidationRequest) Descriptor() ([]byte, []int)deprecated
- func (m *URLValidationRequest) GetCredentials() isURLValidationRequest_Credentials
- func (x *URLValidationRequest) GetNone() *Empty
- func (x *URLValidationRequest) GetSecretId() *SecretId
- func (x *URLValidationRequest) GetUrl() string
- func (x *URLValidationRequest) GetUsernamePassword() *UsernamePassword
- func (*URLValidationRequest) ProtoMessage()
- func (x *URLValidationRequest) ProtoReflect() protoreflect.Message
- func (x *URLValidationRequest) Reset()
- func (x *URLValidationRequest) String() string
- type URLValidationRequest_None
- type URLValidationRequest_SecretId
- type URLValidationRequest_UsernamePassword
- type URLValidationResponse
- type UnimplementedNotificationsServer
- func (*UnimplementedNotificationsServer) AddRule(context.Context, *RuleAddRequest) (*RuleAddResponse, error)
- func (*UnimplementedNotificationsServer) DeleteRule(context.Context, *RuleIdentifier) (*RuleDeleteResponse, error)
- func (*UnimplementedNotificationsServer) GetRule(context.Context, *RuleIdentifier) (*RuleGetResponse, error)
- func (*UnimplementedNotificationsServer) ListRules(context.Context, *RuleListRequest) (*RuleListResponse, error)
- func (*UnimplementedNotificationsServer) UpdateRule(context.Context, *RuleUpdateRequest) (*RuleUpdateResponse, error)
- func (*UnimplementedNotificationsServer) ValidateWebhook(context.Context, *URLValidationRequest) (*URLValidationResponse, error)
- func (*UnimplementedNotificationsServer) Version(context.Context, *VersionRequest) (*VersionResponse, error)
- type UsernamePassword
- func (*UsernamePassword) Descriptor() ([]byte, []int)deprecated
- func (x *UsernamePassword) GetPassword() string
- func (x *UsernamePassword) GetUsername() string
- func (*UsernamePassword) ProtoMessage()
- func (x *UsernamePassword) ProtoReflect() protoreflect.Message
- func (x *UsernamePassword) Reset()
- func (x *UsernamePassword) String() string
- type VersionRequest
- type VersionResponse
- type WebhookAlert
Constants ¶
This section is empty.
Variables ¶
var ( Rule_Event_name = map[int32]string{ 0: "CCRFailure", 1: "CCRSuccess", 2: "ComplianceFailure", 3: "ComplianceSuccess", } Rule_Event_value = map[string]int32{ "CCRFailure": 0, "CCRSuccess": 1, "ComplianceFailure": 2, "ComplianceSuccess": 3, } )
Enum value maps for Rule_Event.
var File_automate_gateway_api_notifications_notifications_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNotificationsHandler ¶
func RegisterNotificationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNotificationsHandler registers the http handlers for service Notifications to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNotificationsHandlerClient ¶
func RegisterNotificationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotificationsClient) error
RegisterNotificationsHandlerClient registers the http handlers for service Notifications to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NotificationsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NotificationsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NotificationsClient" to call the correct interceptors.
func RegisterNotificationsHandlerFromEndpoint ¶
func RegisterNotificationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNotificationsHandlerFromEndpoint is same as RegisterNotificationsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNotificationsHandlerServer ¶
func RegisterNotificationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotificationsServer) error
RegisterNotificationsHandlerServer registers the http handlers for service Notifications to "mux". UnaryRPC :call NotificationsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterNotificationsServer ¶
func RegisterNotificationsServer(s *grpc.Server, srv NotificationsServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type NotificationsClient ¶
type NotificationsClient interface { AddRule(ctx context.Context, in *RuleAddRequest, opts ...grpc.CallOption) (*RuleAddResponse, error) DeleteRule(ctx context.Context, in *RuleIdentifier, opts ...grpc.CallOption) (*RuleDeleteResponse, error) UpdateRule(ctx context.Context, in *RuleUpdateRequest, opts ...grpc.CallOption) (*RuleUpdateResponse, error) GetRule(ctx context.Context, in *RuleIdentifier, opts ...grpc.CallOption) (*RuleGetResponse, error) ListRules(ctx context.Context, in *RuleListRequest, opts ...grpc.CallOption) (*RuleListResponse, error) ValidateWebhook(ctx context.Context, in *URLValidationRequest, opts ...grpc.CallOption) (*URLValidationResponse, error) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) }
NotificationsClient is the client API for Notifications service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNotificationsClient ¶
func NewNotificationsClient(cc grpc.ClientConnInterface) NotificationsClient
type NotificationsServer ¶
type NotificationsServer interface { AddRule(context.Context, *RuleAddRequest) (*RuleAddResponse, error) DeleteRule(context.Context, *RuleIdentifier) (*RuleDeleteResponse, error) UpdateRule(context.Context, *RuleUpdateRequest) (*RuleUpdateResponse, error) GetRule(context.Context, *RuleIdentifier) (*RuleGetResponse, error) ListRules(context.Context, *RuleListRequest) (*RuleListResponse, error) ValidateWebhook(context.Context, *URLValidationRequest) (*URLValidationResponse, error) Version(context.Context, *VersionRequest) (*VersionResponse, error) }
NotificationsServer is the server API for Notifications service.
type NotificationsServerMock ¶
type NotificationsServerMock struct { AddRuleFunc func(context.Context, *RuleAddRequest) (*RuleAddResponse, error) DeleteRuleFunc func(context.Context, *RuleIdentifier) (*RuleDeleteResponse, error) UpdateRuleFunc func(context.Context, *RuleUpdateRequest) (*RuleUpdateResponse, error) GetRuleFunc func(context.Context, *RuleIdentifier) (*RuleGetResponse, error) ListRulesFunc func(context.Context, *RuleListRequest) (*RuleListResponse, error) ValidateWebhookFunc func(context.Context, *URLValidationRequest) (*URLValidationResponse, error) VersionFunc func(context.Context, *VersionRequest) (*VersionResponse, error) // contains filtered or unexported fields }
NotificationsServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewNotificationsServerMock ¶
func NewNotificationsServerMock() *NotificationsServerMock
NewNotificationsServerMock gives you a fresh instance of NotificationsServerMock.
func NewNotificationsServerMockWithoutValidation ¶
func NewNotificationsServerMockWithoutValidation() *NotificationsServerMock
NewNotificationsServerMockWithoutValidation gives you a fresh instance of NotificationsServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*NotificationsServerMock) AddRule ¶
func (m *NotificationsServerMock) AddRule(ctx context.Context, req *RuleAddRequest) (*RuleAddResponse, error)
func (*NotificationsServerMock) DeleteRule ¶
func (m *NotificationsServerMock) DeleteRule(ctx context.Context, req *RuleIdentifier) (*RuleDeleteResponse, error)
func (*NotificationsServerMock) GetRule ¶
func (m *NotificationsServerMock) GetRule(ctx context.Context, req *RuleIdentifier) (*RuleGetResponse, error)
func (*NotificationsServerMock) ListRules ¶
func (m *NotificationsServerMock) ListRules(ctx context.Context, req *RuleListRequest) (*RuleListResponse, error)
func (*NotificationsServerMock) Reset ¶
func (m *NotificationsServerMock) Reset()
Reset resets all overridden functions
func (*NotificationsServerMock) UpdateRule ¶
func (m *NotificationsServerMock) UpdateRule(ctx context.Context, req *RuleUpdateRequest) (*RuleUpdateResponse, error)
func (*NotificationsServerMock) ValidateWebhook ¶
func (m *NotificationsServerMock) ValidateWebhook(ctx context.Context, req *URLValidationRequest) (*URLValidationResponse, error)
func (*NotificationsServerMock) Version ¶
func (m *NotificationsServerMock) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error)
type Rule ¶
type Rule struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Event Rule_Event `protobuf:"varint,3,opt,name=event,proto3,enum=chef.automate.api.notifications.Rule_Event" json:"event,omitempty"` // Types that are assignable to Action: // // *Rule_SlackAlert // *Rule_WebhookAlert // *Rule_ServiceNowAlert Action isRule_Action `protobuf_oneof:"action"` // contains filtered or unexported fields }
func (*Rule) Descriptor
deprecated
func (*Rule) GetEvent ¶
func (x *Rule) GetEvent() Rule_Event
func (*Rule) GetServiceNowAlert ¶
func (x *Rule) GetServiceNowAlert() *ServiceNowAlert
func (*Rule) GetSlackAlert ¶
func (x *Rule) GetSlackAlert() *SlackAlert
func (*Rule) GetWebhookAlert ¶
func (x *Rule) GetWebhookAlert() *WebhookAlert
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) ProtoReflect ¶
func (x *Rule) ProtoReflect() protoreflect.Message
type RuleAddRequest ¶
type RuleAddRequest struct { Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` // contains filtered or unexported fields }
func (*RuleAddRequest) Descriptor
deprecated
func (*RuleAddRequest) Descriptor() ([]byte, []int)
Deprecated: Use RuleAddRequest.ProtoReflect.Descriptor instead.
func (*RuleAddRequest) GetRule ¶
func (x *RuleAddRequest) GetRule() *Rule
func (*RuleAddRequest) ProtoMessage ¶
func (*RuleAddRequest) ProtoMessage()
func (*RuleAddRequest) ProtoReflect ¶
func (x *RuleAddRequest) ProtoReflect() protoreflect.Message
func (*RuleAddRequest) Reset ¶
func (x *RuleAddRequest) Reset()
func (*RuleAddRequest) String ¶
func (x *RuleAddRequest) String() string
type RuleAddResponse ¶
type RuleAddResponse struct { Messages []string `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Rule *Rule `protobuf:"bytes,4,opt,name=rule,proto3" json:"rule,omitempty"` // contains filtered or unexported fields }
func (*RuleAddResponse) Descriptor
deprecated
func (*RuleAddResponse) Descriptor() ([]byte, []int)
Deprecated: Use RuleAddResponse.ProtoReflect.Descriptor instead.
func (*RuleAddResponse) GetId ¶
func (x *RuleAddResponse) GetId() string
func (*RuleAddResponse) GetMessages ¶
func (x *RuleAddResponse) GetMessages() []string
func (*RuleAddResponse) GetName ¶
func (x *RuleAddResponse) GetName() string
func (*RuleAddResponse) GetRule ¶
func (x *RuleAddResponse) GetRule() *Rule
func (*RuleAddResponse) ProtoMessage ¶
func (*RuleAddResponse) ProtoMessage()
func (*RuleAddResponse) ProtoReflect ¶
func (x *RuleAddResponse) ProtoReflect() protoreflect.Message
func (*RuleAddResponse) Reset ¶
func (x *RuleAddResponse) Reset()
func (*RuleAddResponse) String ¶
func (x *RuleAddResponse) String() string
type RuleDeleteResponse ¶
type RuleDeleteResponse struct { Messages []string `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*RuleDeleteResponse) Descriptor
deprecated
func (*RuleDeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use RuleDeleteResponse.ProtoReflect.Descriptor instead.
func (*RuleDeleteResponse) GetMessages ¶
func (x *RuleDeleteResponse) GetMessages() []string
func (*RuleDeleteResponse) ProtoMessage ¶
func (*RuleDeleteResponse) ProtoMessage()
func (*RuleDeleteResponse) ProtoReflect ¶
func (x *RuleDeleteResponse) ProtoReflect() protoreflect.Message
func (*RuleDeleteResponse) Reset ¶
func (x *RuleDeleteResponse) Reset()
func (*RuleDeleteResponse) String ¶
func (x *RuleDeleteResponse) String() string
type RuleGetResponse ¶
type RuleGetResponse struct { Messages []string `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` Rule *Rule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` // contains filtered or unexported fields }
func (*RuleGetResponse) Descriptor
deprecated
func (*RuleGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use RuleGetResponse.ProtoReflect.Descriptor instead.
func (*RuleGetResponse) GetMessages ¶
func (x *RuleGetResponse) GetMessages() []string
func (*RuleGetResponse) GetRule ¶
func (x *RuleGetResponse) GetRule() *Rule
func (*RuleGetResponse) ProtoMessage ¶
func (*RuleGetResponse) ProtoMessage()
func (*RuleGetResponse) ProtoReflect ¶
func (x *RuleGetResponse) ProtoReflect() protoreflect.Message
func (*RuleGetResponse) Reset ¶
func (x *RuleGetResponse) Reset()
func (*RuleGetResponse) String ¶
func (x *RuleGetResponse) String() string
type RuleIdentifier ¶
type RuleIdentifier struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RuleIdentifier) Descriptor
deprecated
func (*RuleIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use RuleIdentifier.ProtoReflect.Descriptor instead.
func (*RuleIdentifier) GetId ¶
func (x *RuleIdentifier) GetId() string
func (*RuleIdentifier) ProtoMessage ¶
func (*RuleIdentifier) ProtoMessage()
func (*RuleIdentifier) ProtoReflect ¶
func (x *RuleIdentifier) ProtoReflect() protoreflect.Message
func (*RuleIdentifier) Reset ¶
func (x *RuleIdentifier) Reset()
func (*RuleIdentifier) String ¶
func (x *RuleIdentifier) String() string
type RuleListRequest ¶
type RuleListRequest struct {
// contains filtered or unexported fields
}
func (*RuleListRequest) Descriptor
deprecated
func (*RuleListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RuleListRequest.ProtoReflect.Descriptor instead.
func (*RuleListRequest) ProtoMessage ¶
func (*RuleListRequest) ProtoMessage()
func (*RuleListRequest) ProtoReflect ¶
func (x *RuleListRequest) ProtoReflect() protoreflect.Message
func (*RuleListRequest) Reset ¶
func (x *RuleListRequest) Reset()
func (*RuleListRequest) String ¶
func (x *RuleListRequest) String() string
type RuleListResponse ¶
type RuleListResponse struct { Messages []string `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` Rules []*Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
func (*RuleListResponse) Descriptor
deprecated
func (*RuleListResponse) Descriptor() ([]byte, []int)
Deprecated: Use RuleListResponse.ProtoReflect.Descriptor instead.
func (*RuleListResponse) GetMessages ¶
func (x *RuleListResponse) GetMessages() []string
func (*RuleListResponse) GetRules ¶
func (x *RuleListResponse) GetRules() []*Rule
func (*RuleListResponse) ProtoMessage ¶
func (*RuleListResponse) ProtoMessage()
func (*RuleListResponse) ProtoReflect ¶
func (x *RuleListResponse) ProtoReflect() protoreflect.Message
func (*RuleListResponse) Reset ¶
func (x *RuleListResponse) Reset()
func (*RuleListResponse) String ¶
func (x *RuleListResponse) String() string
type RuleUpdateRequest ¶
type RuleUpdateRequest struct { Rule *Rule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RuleUpdateRequest) Descriptor
deprecated
func (*RuleUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use RuleUpdateRequest.ProtoReflect.Descriptor instead.
func (*RuleUpdateRequest) GetId ¶
func (x *RuleUpdateRequest) GetId() string
func (*RuleUpdateRequest) GetRule ¶
func (x *RuleUpdateRequest) GetRule() *Rule
func (*RuleUpdateRequest) ProtoMessage ¶
func (*RuleUpdateRequest) ProtoMessage()
func (*RuleUpdateRequest) ProtoReflect ¶
func (x *RuleUpdateRequest) ProtoReflect() protoreflect.Message
func (*RuleUpdateRequest) Reset ¶
func (x *RuleUpdateRequest) Reset()
func (*RuleUpdateRequest) String ¶
func (x *RuleUpdateRequest) String() string
type RuleUpdateResponse ¶
type RuleUpdateResponse struct { Messages []string `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*RuleUpdateResponse) Descriptor
deprecated
func (*RuleUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use RuleUpdateResponse.ProtoReflect.Descriptor instead.
func (*RuleUpdateResponse) GetMessages ¶
func (x *RuleUpdateResponse) GetMessages() []string
func (*RuleUpdateResponse) ProtoMessage ¶
func (*RuleUpdateResponse) ProtoMessage()
func (*RuleUpdateResponse) ProtoReflect ¶
func (x *RuleUpdateResponse) ProtoReflect() protoreflect.Message
func (*RuleUpdateResponse) Reset ¶
func (x *RuleUpdateResponse) Reset()
func (*RuleUpdateResponse) String ¶
func (x *RuleUpdateResponse) String() string
type Rule_Event ¶
type Rule_Event int32
const ( Rule_CCRFailure Rule_Event = 0 Rule_CCRSuccess Rule_Event = 1 Rule_ComplianceFailure Rule_Event = 2 Rule_ComplianceSuccess Rule_Event = 3 )
func (Rule_Event) Descriptor ¶
func (Rule_Event) Descriptor() protoreflect.EnumDescriptor
func (Rule_Event) Enum ¶
func (x Rule_Event) Enum() *Rule_Event
func (Rule_Event) EnumDescriptor
deprecated
func (Rule_Event) EnumDescriptor() ([]byte, []int)
Deprecated: Use Rule_Event.Descriptor instead.
func (Rule_Event) Number ¶
func (x Rule_Event) Number() protoreflect.EnumNumber
func (Rule_Event) String ¶
func (x Rule_Event) String() string
func (Rule_Event) Type ¶
func (Rule_Event) Type() protoreflect.EnumType
type Rule_ServiceNowAlert ¶
type Rule_ServiceNowAlert struct {
ServiceNowAlert *ServiceNowAlert `protobuf:"bytes,6,opt,name=ServiceNowAlert,proto3,oneof"`
}
type Rule_SlackAlert ¶
type Rule_SlackAlert struct {
SlackAlert *SlackAlert `protobuf:"bytes,4,opt,name=SlackAlert,proto3,oneof"`
}
type Rule_WebhookAlert ¶
type Rule_WebhookAlert struct {
WebhookAlert *WebhookAlert `protobuf:"bytes,5,opt,name=WebhookAlert,proto3,oneof"`
}
type SecretId ¶
type SecretId struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SecretId) Descriptor
deprecated
func (*SecretId) ProtoMessage ¶
func (*SecretId) ProtoMessage()
func (*SecretId) ProtoReflect ¶
func (x *SecretId) ProtoReflect() protoreflect.Message
type ServiceNowAlert ¶
type ServiceNowAlert struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` SecretId string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"` CriticalControlsOnly bool `protobuf:"varint,3,opt,name=critical_controls_only,json=criticalControlsOnly,proto3" json:"critical_controls_only,omitempty"` // contains filtered or unexported fields }
func (*ServiceNowAlert) Descriptor
deprecated
func (*ServiceNowAlert) Descriptor() ([]byte, []int)
Deprecated: Use ServiceNowAlert.ProtoReflect.Descriptor instead.
func (*ServiceNowAlert) GetCriticalControlsOnly ¶
func (x *ServiceNowAlert) GetCriticalControlsOnly() bool
func (*ServiceNowAlert) GetSecretId ¶
func (x *ServiceNowAlert) GetSecretId() string
func (*ServiceNowAlert) GetUrl ¶
func (x *ServiceNowAlert) GetUrl() string
func (*ServiceNowAlert) ProtoMessage ¶
func (*ServiceNowAlert) ProtoMessage()
func (*ServiceNowAlert) ProtoReflect ¶
func (x *ServiceNowAlert) ProtoReflect() protoreflect.Message
func (*ServiceNowAlert) Reset ¶
func (x *ServiceNowAlert) Reset()
func (*ServiceNowAlert) String ¶
func (x *ServiceNowAlert) String() string
type SlackAlert ¶
type SlackAlert struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*SlackAlert) Descriptor
deprecated
func (*SlackAlert) Descriptor() ([]byte, []int)
Deprecated: Use SlackAlert.ProtoReflect.Descriptor instead.
func (*SlackAlert) GetUrl ¶
func (x *SlackAlert) GetUrl() string
func (*SlackAlert) ProtoMessage ¶
func (*SlackAlert) ProtoMessage()
func (*SlackAlert) ProtoReflect ¶
func (x *SlackAlert) ProtoReflect() protoreflect.Message
func (*SlackAlert) Reset ¶
func (x *SlackAlert) Reset()
func (*SlackAlert) String ¶
func (x *SlackAlert) String() string
type URLValidationRequest ¶
type URLValidationRequest struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // Types that are assignable to Credentials: // // *URLValidationRequest_UsernamePassword // *URLValidationRequest_SecretId // *URLValidationRequest_None Credentials isURLValidationRequest_Credentials `protobuf_oneof:"credentials"` // contains filtered or unexported fields }
func (*URLValidationRequest) Descriptor
deprecated
func (*URLValidationRequest) Descriptor() ([]byte, []int)
Deprecated: Use URLValidationRequest.ProtoReflect.Descriptor instead.
func (*URLValidationRequest) GetCredentials ¶
func (m *URLValidationRequest) GetCredentials() isURLValidationRequest_Credentials
func (*URLValidationRequest) GetNone ¶
func (x *URLValidationRequest) GetNone() *Empty
func (*URLValidationRequest) GetSecretId ¶
func (x *URLValidationRequest) GetSecretId() *SecretId
func (*URLValidationRequest) GetUrl ¶
func (x *URLValidationRequest) GetUrl() string
func (*URLValidationRequest) GetUsernamePassword ¶
func (x *URLValidationRequest) GetUsernamePassword() *UsernamePassword
func (*URLValidationRequest) ProtoMessage ¶
func (*URLValidationRequest) ProtoMessage()
func (*URLValidationRequest) ProtoReflect ¶
func (x *URLValidationRequest) ProtoReflect() protoreflect.Message
func (*URLValidationRequest) Reset ¶
func (x *URLValidationRequest) Reset()
func (*URLValidationRequest) String ¶
func (x *URLValidationRequest) String() string
type URLValidationRequest_None ¶
type URLValidationRequest_None struct {
None *Empty `protobuf:"bytes,4,opt,name=none,proto3,oneof"`
}
type URLValidationRequest_SecretId ¶
type URLValidationRequest_SecretId struct {
SecretId *SecretId `protobuf:"bytes,3,opt,name=secret_id,json=secretId,proto3,oneof"`
}
type URLValidationRequest_UsernamePassword ¶
type URLValidationRequest_UsernamePassword struct {
UsernamePassword *UsernamePassword `protobuf:"bytes,2,opt,name=username_password,json=usernamePassword,proto3,oneof"`
}
type URLValidationResponse ¶
type URLValidationResponse struct {
// contains filtered or unexported fields
}
func (*URLValidationResponse) Descriptor
deprecated
func (*URLValidationResponse) Descriptor() ([]byte, []int)
Deprecated: Use URLValidationResponse.ProtoReflect.Descriptor instead.
func (*URLValidationResponse) ProtoMessage ¶
func (*URLValidationResponse) ProtoMessage()
func (*URLValidationResponse) ProtoReflect ¶
func (x *URLValidationResponse) ProtoReflect() protoreflect.Message
func (*URLValidationResponse) Reset ¶
func (x *URLValidationResponse) Reset()
func (*URLValidationResponse) String ¶
func (x *URLValidationResponse) String() string
type UnimplementedNotificationsServer ¶
type UnimplementedNotificationsServer struct { }
UnimplementedNotificationsServer can be embedded to have forward compatible implementations.
func (*UnimplementedNotificationsServer) AddRule ¶
func (*UnimplementedNotificationsServer) AddRule(context.Context, *RuleAddRequest) (*RuleAddResponse, error)
func (*UnimplementedNotificationsServer) DeleteRule ¶
func (*UnimplementedNotificationsServer) DeleteRule(context.Context, *RuleIdentifier) (*RuleDeleteResponse, error)
func (*UnimplementedNotificationsServer) GetRule ¶
func (*UnimplementedNotificationsServer) GetRule(context.Context, *RuleIdentifier) (*RuleGetResponse, error)
func (*UnimplementedNotificationsServer) ListRules ¶
func (*UnimplementedNotificationsServer) ListRules(context.Context, *RuleListRequest) (*RuleListResponse, error)
func (*UnimplementedNotificationsServer) UpdateRule ¶
func (*UnimplementedNotificationsServer) UpdateRule(context.Context, *RuleUpdateRequest) (*RuleUpdateResponse, error)
func (*UnimplementedNotificationsServer) ValidateWebhook ¶
func (*UnimplementedNotificationsServer) ValidateWebhook(context.Context, *URLValidationRequest) (*URLValidationResponse, error)
func (*UnimplementedNotificationsServer) Version ¶
func (*UnimplementedNotificationsServer) Version(context.Context, *VersionRequest) (*VersionResponse, error)
type UsernamePassword ¶
type UsernamePassword struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*UsernamePassword) Descriptor
deprecated
func (*UsernamePassword) Descriptor() ([]byte, []int)
Deprecated: Use UsernamePassword.ProtoReflect.Descriptor instead.
func (*UsernamePassword) GetPassword ¶
func (x *UsernamePassword) GetPassword() string
func (*UsernamePassword) GetUsername ¶
func (x *UsernamePassword) GetUsername() string
func (*UsernamePassword) ProtoMessage ¶
func (*UsernamePassword) ProtoMessage()
func (*UsernamePassword) ProtoReflect ¶
func (x *UsernamePassword) ProtoReflect() protoreflect.Message
func (*UsernamePassword) Reset ¶
func (x *UsernamePassword) Reset()
func (*UsernamePassword) String ¶
func (x *UsernamePassword) String() string
type VersionRequest ¶
type VersionRequest struct {
// contains filtered or unexported fields
}
func (*VersionRequest) Descriptor
deprecated
func (*VersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
func (*VersionRequest) ProtoMessage ¶
func (*VersionRequest) ProtoMessage()
func (*VersionRequest) ProtoReflect ¶
func (x *VersionRequest) ProtoReflect() protoreflect.Message
func (*VersionRequest) Reset ¶
func (x *VersionRequest) Reset()
func (*VersionRequest) String ¶
func (x *VersionRequest) String() string
type VersionResponse ¶
type VersionResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*VersionResponse) Descriptor
deprecated
func (*VersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.
func (*VersionResponse) GetVersion ¶
func (x *VersionResponse) GetVersion() string
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) ProtoReflect ¶
func (x *VersionResponse) ProtoReflect() protoreflect.Message
func (*VersionResponse) Reset ¶
func (x *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (x *VersionResponse) String() string
type WebhookAlert ¶
type WebhookAlert struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*WebhookAlert) Descriptor
deprecated
func (*WebhookAlert) Descriptor() ([]byte, []int)
Deprecated: Use WebhookAlert.ProtoReflect.Descriptor instead.
func (*WebhookAlert) GetUrl ¶
func (x *WebhookAlert) GetUrl() string
func (*WebhookAlert) ProtoMessage ¶
func (*WebhookAlert) ProtoMessage()
func (*WebhookAlert) ProtoReflect ¶
func (x *WebhookAlert) ProtoReflect() protoreflect.Message
func (*WebhookAlert) Reset ¶
func (x *WebhookAlert) Reset()
func (*WebhookAlert) String ¶
func (x *WebhookAlert) String() string