service

package
v0.0.0-...-3aed05d Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var (
	URLValidationResponse_Code_name = map[int32]string{
		0:  "OK",
		1:  "ERROR",
		4:  "INVALID_URL",
		98: "NOTIFICATIONS_UNAVAIALBLE",
		99: "INTERNAL_ERROR",
	}
	URLValidationResponse_Code_value = map[string]int32{
		"OK":                        0,
		"ERROR":                     1,
		"INVALID_URL":               4,
		"NOTIFICATIONS_UNAVAIALBLE": 98,
		"INTERNAL_ERROR":            99,
	}
)

Enum value maps for URLValidationResponse_Code.

View Source
var (
	RuleUpdateResponse_Code_name = map[int32]string{
		0:  "OK",
		1:  "DUPLICATE_NAME",
		2:  "NOT_FOUND",
		4:  "VALIDATION_ERROR",
		99: "INTERNAL_ERROR",
	}
	RuleUpdateResponse_Code_value = map[string]int32{
		"OK":               0,
		"DUPLICATE_NAME":   1,
		"NOT_FOUND":        2,
		"VALIDATION_ERROR": 4,
		"INTERNAL_ERROR":   99,
	}
)

Enum value maps for RuleUpdateResponse_Code.

View Source
var (
	RuleDeleteResponse_Code_name = map[int32]string{
		0:  "DELETED",
		2:  "NOT_FOUND",
		99: "INTERNAL_ERROR",
	}
	RuleDeleteResponse_Code_value = map[string]int32{
		"DELETED":        0,
		"NOT_FOUND":      2,
		"INTERNAL_ERROR": 99,
	}
)

Enum value maps for RuleDeleteResponse_Code.

View Source
var (
	RuleAddResponse_Code_name = map[int32]string{
		0:  "ADDED",
		1:  "DUPLICATE_NAME",
		2:  "NOT_FOUND",
		3:  "INVALID_ACTION_CONFIG",
		4:  "VALIDATION_ERROR",
		99: "INTERNAL_ERROR",
	}
	RuleAddResponse_Code_value = map[string]int32{
		"ADDED":                 0,
		"DUPLICATE_NAME":        1,
		"NOT_FOUND":             2,
		"INVALID_ACTION_CONFIG": 3,
		"VALIDATION_ERROR":      4,
		"INTERNAL_ERROR":        99,
	}
)

Enum value maps for RuleAddResponse_Code.

View Source
var (
	RuleGetResponse_Code_name = map[int32]string{
		0:  "OK",
		2:  "NOT_FOUND",
		99: "INTERNAL_ERROR",
	}
	RuleGetResponse_Code_value = map[string]int32{
		"OK":             0,
		"NOT_FOUND":      2,
		"INTERNAL_ERROR": 99,
	}
)

Enum value maps for RuleGetResponse_Code.

View Source
var (
	RuleListResponse_Code_name = map[int32]string{
		0:  "OK",
		99: "INTERNAL_ERROR",
	}
	RuleListResponse_Code_value = map[string]int32{
		"OK":             0,
		"INTERNAL_ERROR": 99,
	}
)

Enum value maps for RuleListResponse_Code.

View Source
var File_interservice_notifications_service_events_proto protoreflect.FileDescriptor
View Source
var File_interservice_notifications_service_health_proto protoreflect.FileDescriptor
View Source
var File_interservice_notifications_service_rules_proto protoreflect.FileDescriptor
View Source
var File_interservice_notifications_service_server_proto protoreflect.FileDescriptor

Functions

func RegisterNotificationsServer

func RegisterNotificationsServer(s *grpc.Server, srv NotificationsServer)

Types

type CCRFailure

type CCRFailure struct {
	RunId     string         `` /* 132-byte string literal not displayed */
	NodeName  string         `` /* 147-byte string literal not displayed */
	NodeUrl   string         `` /* 142-byte string literal not displayed */
	RunUrl    string         `` /* 137-byte string literal not displayed */
	Cookbook  string         `` /* 129-byte string literal not displayed */
	Recipe    string         `protobuf:"bytes,6,opt,name=recipe,proto3" json:"recipe,omitempty" toml:"recipe,omitempty" mapstructure:"recipe,omitempty"`
	Time      *TimeInfo      `protobuf:"bytes,7,opt,name=time,proto3" json:"time,omitempty" toml:"time,omitempty" mapstructure:"time,omitempty"`
	Exception *ExceptionInfo `` /* 133-byte string literal not displayed */
	Timestamp string         `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CCRFailure) Descriptor deprecated

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

Deprecated: Use CCRFailure.ProtoReflect.Descriptor instead.

func (*CCRFailure) GetCookbook

func (x *CCRFailure) GetCookbook() string

func (*CCRFailure) GetException

func (x *CCRFailure) GetException() *ExceptionInfo

func (*CCRFailure) GetNodeName

func (x *CCRFailure) GetNodeName() string

func (*CCRFailure) GetNodeUrl

func (x *CCRFailure) GetNodeUrl() string

func (*CCRFailure) GetRecipe

func (x *CCRFailure) GetRecipe() string

func (*CCRFailure) GetRunId

func (x *CCRFailure) GetRunId() string

func (*CCRFailure) GetRunUrl

func (x *CCRFailure) GetRunUrl() string

func (*CCRFailure) GetTime

func (x *CCRFailure) GetTime() *TimeInfo

func (*CCRFailure) GetTimestamp

func (x *CCRFailure) GetTimestamp() string

func (*CCRFailure) ProtoMessage

func (*CCRFailure) ProtoMessage()

func (*CCRFailure) ProtoReflect

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

func (*CCRFailure) Reset

func (x *CCRFailure) Reset()

func (*CCRFailure) String

func (x *CCRFailure) String() string

type CCRSuccess

type CCRSuccess struct {
	RunId                string    `` /* 132-byte string literal not displayed */
	NodeName             string    `` /* 147-byte string literal not displayed */
	RunUrl               string    `` /* 137-byte string literal not displayed */
	Time                 *TimeInfo `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty" toml:"time,omitempty" mapstructure:"time,omitempty"`
	UpdatedResourceCount int32     `` /* 212-byte string literal not displayed */
	Timestamp            string    `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CCRSuccess) Descriptor deprecated

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

Deprecated: Use CCRSuccess.ProtoReflect.Descriptor instead.

func (*CCRSuccess) GetNodeName

func (x *CCRSuccess) GetNodeName() string

func (*CCRSuccess) GetRunId

func (x *CCRSuccess) GetRunId() string

func (*CCRSuccess) GetRunUrl

func (x *CCRSuccess) GetRunUrl() string

func (*CCRSuccess) GetTime

func (x *CCRSuccess) GetTime() *TimeInfo

func (*CCRSuccess) GetTimestamp

func (x *CCRSuccess) GetTimestamp() string

func (*CCRSuccess) GetUpdatedResourceCount

func (x *CCRSuccess) GetUpdatedResourceCount() int32

func (*CCRSuccess) ProtoMessage

func (*CCRSuccess) ProtoMessage()

func (*CCRSuccess) ProtoReflect

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

func (*CCRSuccess) Reset

func (x *CCRSuccess) Reset()

func (*CCRSuccess) String

func (x *CCRSuccess) String() string

type ComplianceFailure

type ComplianceFailure struct {
	Id             string                           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"`
	ComplianceUrl  string                           `` /* 172-byte string literal not displayed */
	NodeName       string                           `` /* 147-byte string literal not displayed */
	NodeId         string                           `` /* 137-byte string literal not displayed */
	InspecVersion  string                           `` /* 172-byte string literal not displayed */
	TestTotals     *ComplianceFailure_ControlTotals `` /* 157-byte string literal not displayed */
	FailedProfiles []*Profile                       `` /* 177-byte string literal not displayed */
	EndTime        string                           `` /* 142-byte string literal not displayed */
	Timestamp      string                           `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ComplianceFailure) Descriptor deprecated

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

Deprecated: Use ComplianceFailure.ProtoReflect.Descriptor instead.

func (*ComplianceFailure) GetComplianceUrl

func (x *ComplianceFailure) GetComplianceUrl() string

func (*ComplianceFailure) GetEndTime

func (x *ComplianceFailure) GetEndTime() string

func (*ComplianceFailure) GetFailedProfiles

func (x *ComplianceFailure) GetFailedProfiles() []*Profile

func (*ComplianceFailure) GetId

func (x *ComplianceFailure) GetId() string

func (*ComplianceFailure) GetInspecVersion

func (x *ComplianceFailure) GetInspecVersion() string

func (*ComplianceFailure) GetNodeId

func (x *ComplianceFailure) GetNodeId() string

func (*ComplianceFailure) GetNodeName

func (x *ComplianceFailure) GetNodeName() string

func (*ComplianceFailure) GetTestTotals

func (*ComplianceFailure) GetTimestamp

func (x *ComplianceFailure) GetTimestamp() string

func (*ComplianceFailure) ProtoMessage

func (*ComplianceFailure) ProtoMessage()

func (*ComplianceFailure) ProtoReflect

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

func (*ComplianceFailure) Reset

func (x *ComplianceFailure) Reset()

func (*ComplianceFailure) String

func (x *ComplianceFailure) String() string

type ComplianceFailure_ControlTotals

type ComplianceFailure_ControlTotals struct {
	Skipped        int32 `` /* 126-byte string literal not displayed */
	Passed         int32 `protobuf:"varint,2,opt,name=passed,proto3" json:"passed,omitempty" toml:"passed,omitempty" mapstructure:"passed,omitempty"`
	Failed         int32 `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty" toml:"failed,omitempty" mapstructure:"failed,omitempty"`
	Critical       int32 `` /* 130-byte string literal not displayed */
	CriticalFailed int32 `` /* 178-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ComplianceFailure_ControlTotals) Descriptor deprecated

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

Deprecated: Use ComplianceFailure_ControlTotals.ProtoReflect.Descriptor instead.

func (*ComplianceFailure_ControlTotals) GetCritical

func (x *ComplianceFailure_ControlTotals) GetCritical() int32

func (*ComplianceFailure_ControlTotals) GetCriticalFailed

func (x *ComplianceFailure_ControlTotals) GetCriticalFailed() int32

func (*ComplianceFailure_ControlTotals) GetFailed

func (x *ComplianceFailure_ControlTotals) GetFailed() int32

func (*ComplianceFailure_ControlTotals) GetPassed

func (x *ComplianceFailure_ControlTotals) GetPassed() int32

func (*ComplianceFailure_ControlTotals) GetSkipped

func (x *ComplianceFailure_ControlTotals) GetSkipped() int32

func (*ComplianceFailure_ControlTotals) ProtoMessage

func (*ComplianceFailure_ControlTotals) ProtoMessage()

func (*ComplianceFailure_ControlTotals) ProtoReflect

func (*ComplianceFailure_ControlTotals) Reset

func (*ComplianceFailure_ControlTotals) String

type ComplianceSuccess

type ComplianceSuccess struct {
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"`
	ComplianceUrl string `` /* 172-byte string literal not displayed */
	NodeName      string `` /* 147-byte string literal not displayed */
	NodeId        string `` /* 137-byte string literal not displayed */
	EndTime       string `` /* 142-byte string literal not displayed */
	Timestamp     string `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ComplianceSuccess) Descriptor deprecated

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

Deprecated: Use ComplianceSuccess.ProtoReflect.Descriptor instead.

func (*ComplianceSuccess) GetComplianceUrl

func (x *ComplianceSuccess) GetComplianceUrl() string

func (*ComplianceSuccess) GetEndTime

func (x *ComplianceSuccess) GetEndTime() string

func (*ComplianceSuccess) GetId

func (x *ComplianceSuccess) GetId() string

func (*ComplianceSuccess) GetNodeId

func (x *ComplianceSuccess) GetNodeId() string

func (*ComplianceSuccess) GetNodeName

func (x *ComplianceSuccess) GetNodeName() string

func (*ComplianceSuccess) GetTimestamp

func (x *ComplianceSuccess) GetTimestamp() string

func (*ComplianceSuccess) ProtoMessage

func (*ComplianceSuccess) ProtoMessage()

func (*ComplianceSuccess) ProtoReflect

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

func (*ComplianceSuccess) Reset

func (x *ComplianceSuccess) Reset()

func (*ComplianceSuccess) String

func (x *ComplianceSuccess) String() string

type Empty

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

// Rules management messages and responses //

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Event

type Event struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"`
	// Types that are assignable to Event:
	//
	//	*Event_CCRSuccess
	//	*Event_CCRFailure
	//	*Event_ComplianceSuccess
	//	*Event_ComplianceFailure
	Event isEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetCCRFailure

func (x *Event) GetCCRFailure() *CCRFailure

func (*Event) GetCCRSuccess

func (x *Event) GetCCRSuccess() *CCRSuccess

func (*Event) GetComplianceFailure

func (x *Event) GetComplianceFailure() *ComplianceFailure

func (*Event) GetComplianceSuccess

func (x *Event) GetComplianceSuccess() *ComplianceSuccess

func (*Event) GetEvent

func (m *Event) GetEvent() isEvent_Event

func (*Event) GetId

func (x *Event) GetId() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Event_CCRFailure

type Event_CCRFailure struct {
	CCRFailure *CCRFailure `protobuf:"bytes,3,opt,name=CCRFailure,proto3,oneof"`
}

type Event_CCRSuccess

type Event_CCRSuccess struct {
	CCRSuccess *CCRSuccess `protobuf:"bytes,2,opt,name=CCRSuccess,proto3,oneof"`
}

type Event_ComplianceFailure

type Event_ComplianceFailure struct {
	ComplianceFailure *ComplianceFailure `protobuf:"bytes,5,opt,name=ComplianceFailure,proto3,oneof"`
}

type Event_ComplianceSuccess

type Event_ComplianceSuccess struct {
	ComplianceSuccess *ComplianceSuccess `protobuf:"bytes,4,opt,name=ComplianceSuccess,proto3,oneof"`
}

type ExceptionInfo

type ExceptionInfo struct {
	Class     string   `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty" toml:"class,omitempty" mapstructure:"class,omitempty"`
	Title     string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" toml:"title,omitempty" mapstructure:"title,omitempty"`
	Msg       string   `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty" toml:"msg,omitempty" mapstructure:"msg,omitempty"`
	Backtrace []string `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExceptionInfo) Descriptor deprecated

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

Deprecated: Use ExceptionInfo.ProtoReflect.Descriptor instead.

func (*ExceptionInfo) GetBacktrace

func (x *ExceptionInfo) GetBacktrace() []string

func (*ExceptionInfo) GetClass

func (x *ExceptionInfo) GetClass() string

func (*ExceptionInfo) GetMsg

func (x *ExceptionInfo) GetMsg() string

func (*ExceptionInfo) GetTitle

func (x *ExceptionInfo) GetTitle() string

func (*ExceptionInfo) ProtoMessage

func (*ExceptionInfo) ProtoMessage()

func (*ExceptionInfo) ProtoReflect

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

func (*ExceptionInfo) Reset

func (x *ExceptionInfo) Reset()

func (*ExceptionInfo) String

func (x *ExceptionInfo) String() string

type NotificationsClient

type NotificationsClient interface {
	// Publish a notification
	Notify(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Response, error)
	// Manage notification alerting rules
	AddRule(ctx context.Context, in *Rule, opts ...grpc.CallOption) (*RuleAddResponse, error)
	DeleteRule(ctx context.Context, in *RuleIdentifier, opts ...grpc.CallOption) (*RuleDeleteResponse, error)
	UpdateRule(ctx context.Context, in *Rule, opts ...grpc.CallOption) (*RuleUpdateResponse, error)
	GetRule(ctx context.Context, in *RuleIdentifier, opts ...grpc.CallOption) (*RuleGetResponse, error)
	ListRules(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*RuleListResponse, error)
	ValidateWebhook(ctx context.Context, in *URLValidationRequest, opts ...grpc.CallOption) (*URLValidationResponse, error)
	// Health checks and metadata
	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.

type NotificationsServer

type NotificationsServer interface {
	// Publish a notification
	Notify(context.Context, *Event) (*Response, error)
	// Manage notification alerting rules
	AddRule(context.Context, *Rule) (*RuleAddResponse, error)
	DeleteRule(context.Context, *RuleIdentifier) (*RuleDeleteResponse, error)
	UpdateRule(context.Context, *Rule) (*RuleUpdateResponse, error)
	GetRule(context.Context, *RuleIdentifier) (*RuleGetResponse, error)
	ListRules(context.Context, *Empty) (*RuleListResponse, error)
	ValidateWebhook(context.Context, *URLValidationRequest) (*URLValidationResponse, error)
	// Health checks and metadata
	Version(context.Context, *VersionRequest) (*VersionResponse, error)
}

NotificationsServer is the server API for Notifications service.

type PlatformSupport

type PlatformSupport struct {
	Inspec string `protobuf:"bytes,1,opt,name=inspec,proto3" json:"inspec,omitempty" toml:"inspec,omitempty" mapstructure:"inspec,omitempty"`
	// TODO: this needs to be os-name in json
	OsName string `` /* 137-byte string literal not displayed */
	// TODO: this needs to be os-family in json
	OsFamily string `` /* 147-byte string literal not displayed */
	Release  string `protobuf:"bytes,4,opt,name=release,proto3" json:"release,omitempty" toml:"release,omitempty" mapstructure:"release,omitempty"`
	// contains filtered or unexported fields
}

func (*PlatformSupport) Descriptor deprecated

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

Deprecated: Use PlatformSupport.ProtoReflect.Descriptor instead.

func (*PlatformSupport) GetInspec

func (x *PlatformSupport) GetInspec() string

func (*PlatformSupport) GetOsFamily

func (x *PlatformSupport) GetOsFamily() string

func (*PlatformSupport) GetOsName

func (x *PlatformSupport) GetOsName() string

func (*PlatformSupport) GetRelease

func (x *PlatformSupport) GetRelease() string

func (*PlatformSupport) ProtoMessage

func (*PlatformSupport) ProtoMessage()

func (*PlatformSupport) ProtoReflect

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

func (*PlatformSupport) Reset

func (x *PlatformSupport) Reset()

func (*PlatformSupport) String

func (x *PlatformSupport) String() string

type Profile

type Profile struct {
	Name           string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`
	Title          string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" toml:"title,omitempty" mapstructure:"title,omitempty"`
	Version        string                 `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty" toml:"version,omitempty" mapstructure:"version,omitempty"`
	Summary        string                 `protobuf:"bytes,4,opt,name=summary,proto3" json:"summary,omitempty" toml:"summary,omitempty" mapstructure:"summary,omitempty"`
	Maintainer     string                 `` /* 137-byte string literal not displayed */
	License        string                 `protobuf:"bytes,6,opt,name=license,proto3" json:"license,omitempty" toml:"license,omitempty" mapstructure:"license,omitempty"`
	Copyright      string                 `` /* 133-byte string literal not displayed */
	CopyrightEmail string                 `` /* 177-byte string literal not displayed */
	Sha256         string                 `protobuf:"bytes,9,opt,name=sha256,proto3" json:"sha256,omitempty" toml:"sha256,omitempty" mapstructure:"sha256,omitempty"`
	Supports       []*PlatformSupport     `` /* 130-byte string literal not displayed */
	Attributes     []*Profile_Attribute   `` /* 138-byte string literal not displayed */
	FailedControls []*Profile_Control     `` /* 178-byte string literal not displayed */
	Stats          *Profile_ControlTotals `protobuf:"bytes,13,opt,name=stats,proto3" json:"stats,omitempty" toml:"stats,omitempty" mapstructure:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAttributes

func (x *Profile) GetAttributes() []*Profile_Attribute

func (*Profile) GetCopyright

func (x *Profile) GetCopyright() string

func (*Profile) GetCopyrightEmail

func (x *Profile) GetCopyrightEmail() string

func (*Profile) GetFailedControls

func (x *Profile) GetFailedControls() []*Profile_Control

func (*Profile) GetLicense

func (x *Profile) GetLicense() string

func (*Profile) GetMaintainer

func (x *Profile) GetMaintainer() string

func (*Profile) GetName

func (x *Profile) GetName() string

func (*Profile) GetSha256

func (x *Profile) GetSha256() string

func (*Profile) GetStats

func (x *Profile) GetStats() *Profile_ControlTotals

func (*Profile) GetSummary

func (x *Profile) GetSummary() string

func (*Profile) GetSupports

func (x *Profile) GetSupports() []*PlatformSupport

func (*Profile) GetTitle

func (x *Profile) GetTitle() string

func (*Profile) GetVersion

func (x *Profile) GetVersion() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type Profile_Attribute

type Profile_Attribute struct {
	Name    string                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`
	Options *Profile_Attribute_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty" toml:"options,omitempty" mapstructure:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile_Attribute) Descriptor deprecated

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

Deprecated: Use Profile_Attribute.ProtoReflect.Descriptor instead.

func (*Profile_Attribute) GetName

func (x *Profile_Attribute) GetName() string

func (*Profile_Attribute) GetOptions

func (*Profile_Attribute) ProtoMessage

func (*Profile_Attribute) ProtoMessage()

func (*Profile_Attribute) ProtoReflect

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

func (*Profile_Attribute) Reset

func (x *Profile_Attribute) Reset()

func (*Profile_Attribute) String

func (x *Profile_Attribute) String() string

type Profile_Attribute_Options

type Profile_Attribute_Options struct {
	Description string `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Profile_Attribute_Options) Descriptor deprecated

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

Deprecated: Use Profile_Attribute_Options.ProtoReflect.Descriptor instead.

func (*Profile_Attribute_Options) GetDescription

func (x *Profile_Attribute_Options) GetDescription() string

func (*Profile_Attribute_Options) ProtoMessage

func (*Profile_Attribute_Options) ProtoMessage()

func (*Profile_Attribute_Options) ProtoReflect

func (*Profile_Attribute_Options) Reset

func (x *Profile_Attribute_Options) Reset()

func (*Profile_Attribute_Options) String

func (x *Profile_Attribute_Options) String() string

type Profile_Control

type Profile_Control struct {
	Id             string                        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"`
	Impact         float32                       `protobuf:"fixed32,2,opt,name=impact,proto3" json:"impact,omitempty" toml:"impact,omitempty" mapstructure:"impact,omitempty"`
	Title          string                        `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" toml:"title,omitempty" mapstructure:"title,omitempty"`
	Code           string                        `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty" toml:"code,omitempty" mapstructure:"code,omitempty"`
	Desc           string                        `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty" toml:"desc,omitempty" mapstructure:"desc,omitempty"`
	SourceLocation *SourceLocation               `` /* 177-byte string literal not displayed */
	Refs           []*Refs                       `protobuf:"bytes,7,rep,name=refs,proto3" json:"refs,omitempty" toml:"refs,omitempty" mapstructure:"refs,omitempty"`
	FailedResults  []*Profile_Control_Result     `` /* 172-byte string literal not displayed */
	Stats          *Profile_Control_ResultTotals `protobuf:"bytes,10,opt,name=stats,proto3" json:"stats,omitempty" toml:"stats,omitempty" mapstructure:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile_Control) Descriptor deprecated

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

Deprecated: Use Profile_Control.ProtoReflect.Descriptor instead.

func (*Profile_Control) GetCode

func (x *Profile_Control) GetCode() string

func (*Profile_Control) GetDesc

func (x *Profile_Control) GetDesc() string

func (*Profile_Control) GetFailedResults

func (x *Profile_Control) GetFailedResults() []*Profile_Control_Result

func (*Profile_Control) GetId

func (x *Profile_Control) GetId() string

func (*Profile_Control) GetImpact

func (x *Profile_Control) GetImpact() float32

func (*Profile_Control) GetRefs

func (x *Profile_Control) GetRefs() []*Refs

func (*Profile_Control) GetSourceLocation

func (x *Profile_Control) GetSourceLocation() *SourceLocation

func (*Profile_Control) GetStats

func (*Profile_Control) GetTitle

func (x *Profile_Control) GetTitle() string

func (*Profile_Control) ProtoMessage

func (*Profile_Control) ProtoMessage()

func (*Profile_Control) ProtoReflect

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

func (*Profile_Control) Reset

func (x *Profile_Control) Reset()

func (*Profile_Control) String

func (x *Profile_Control) String() string

type Profile_ControlTotals

type Profile_ControlTotals struct {

	// The number of controls in the profile
	NumTests int32 `` /* 148-byte string literal not displayed */
	// The number of controls that failed
	NumFailedTests int32 `` /* 182-byte string literal not displayed */
	// The number of controls that were skipped (0 fails, 0 pass)
	NumSkippedTests int32 `` /* 187-byte string literal not displayed */
	// The number of controls that passed
	NumPassedTests int32 `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Profile_ControlTotals) Descriptor deprecated

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

Deprecated: Use Profile_ControlTotals.ProtoReflect.Descriptor instead.

func (*Profile_ControlTotals) GetNumFailedTests

func (x *Profile_ControlTotals) GetNumFailedTests() int32

func (*Profile_ControlTotals) GetNumPassedTests

func (x *Profile_ControlTotals) GetNumPassedTests() int32

func (*Profile_ControlTotals) GetNumSkippedTests

func (x *Profile_ControlTotals) GetNumSkippedTests() int32

func (*Profile_ControlTotals) GetNumTests

func (x *Profile_ControlTotals) GetNumTests() int32

func (*Profile_ControlTotals) ProtoMessage

func (*Profile_ControlTotals) ProtoMessage()

func (*Profile_ControlTotals) ProtoReflect

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

func (*Profile_ControlTotals) Reset

func (x *Profile_ControlTotals) Reset()

func (*Profile_ControlTotals) String

func (x *Profile_ControlTotals) String() string

type Profile_Control_Result

type Profile_Control_Result struct {
	Status      string  `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty" toml:"status,omitempty" mapstructure:"status,omitempty"`
	CodeDesc    string  `` /* 147-byte string literal not displayed */
	RunTime     float32 `` /* 144-byte string literal not displayed */
	StartTime   string  `` /* 152-byte string literal not displayed */
	Message     string  `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty" toml:"message,omitempty" mapstructure:"message,omitempty"`
	SkipMessage string  `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Profile_Control_Result) Descriptor deprecated

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

Deprecated: Use Profile_Control_Result.ProtoReflect.Descriptor instead.

func (*Profile_Control_Result) GetCodeDesc

func (x *Profile_Control_Result) GetCodeDesc() string

func (*Profile_Control_Result) GetMessage

func (x *Profile_Control_Result) GetMessage() string

func (*Profile_Control_Result) GetRunTime

func (x *Profile_Control_Result) GetRunTime() float32

func (*Profile_Control_Result) GetSkipMessage

func (x *Profile_Control_Result) GetSkipMessage() string

func (*Profile_Control_Result) GetStartTime

func (x *Profile_Control_Result) GetStartTime() string

func (*Profile_Control_Result) GetStatus

func (x *Profile_Control_Result) GetStatus() string

func (*Profile_Control_Result) ProtoMessage

func (*Profile_Control_Result) ProtoMessage()

func (*Profile_Control_Result) ProtoReflect

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

func (*Profile_Control_Result) Reset

func (x *Profile_Control_Result) Reset()

func (*Profile_Control_Result) String

func (x *Profile_Control_Result) String() string

type Profile_Control_ResultTotals

type Profile_Control_ResultTotals struct {
	NumTests        int32 `` /* 148-byte string literal not displayed */
	NumFailedTests  int32 `` /* 182-byte string literal not displayed */
	NumSkippedTests int32 `` /* 187-byte string literal not displayed */
	NumPassedTests  int32 `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Profile_Control_ResultTotals) Descriptor deprecated

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

Deprecated: Use Profile_Control_ResultTotals.ProtoReflect.Descriptor instead.

func (*Profile_Control_ResultTotals) GetNumFailedTests

func (x *Profile_Control_ResultTotals) GetNumFailedTests() int32

func (*Profile_Control_ResultTotals) GetNumPassedTests

func (x *Profile_Control_ResultTotals) GetNumPassedTests() int32

func (*Profile_Control_ResultTotals) GetNumSkippedTests

func (x *Profile_Control_ResultTotals) GetNumSkippedTests() int32

func (*Profile_Control_ResultTotals) GetNumTests

func (x *Profile_Control_ResultTotals) GetNumTests() int32

func (*Profile_Control_ResultTotals) ProtoMessage

func (*Profile_Control_ResultTotals) ProtoMessage()

func (*Profile_Control_ResultTotals) ProtoReflect

func (*Profile_Control_ResultTotals) Reset

func (x *Profile_Control_ResultTotals) Reset()

func (*Profile_Control_ResultTotals) String

type Refs

type Refs struct {
	Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty" toml:"uri,omitempty" mapstructure:"uri,omitempty"`
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty" toml:"url,omitempty" mapstructure:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Refs) Descriptor deprecated

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

Deprecated: Use Refs.ProtoReflect.Descriptor instead.

func (*Refs) GetUri

func (x *Refs) GetUri() string

func (*Refs) GetUrl

func (x *Refs) GetUrl() string

func (*Refs) ProtoMessage

func (*Refs) ProtoMessage()

func (*Refs) ProtoReflect

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

func (*Refs) Reset

func (x *Refs) Reset()

func (*Refs) String

func (x *Refs) String() string

type Response

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

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Rule

type Rule struct {
	Id    string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"`
	Name  string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`
	Event Rule_Event `` /* 177-byte string literal not displayed */
	// 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) Descriptor() ([]byte, []int)

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetAction

func (m *Rule) GetAction() isRule_Action

func (*Rule) GetEvent

func (x *Rule) GetEvent() Rule_Event

func (*Rule) GetId

func (x *Rule) GetId() string

func (*Rule) GetName

func (x *Rule) GetName() string

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

type RuleAddResponse

type RuleAddResponse struct {
	Code     RuleAddResponse_Code `` /* 183-byte string literal not displayed */
	Messages []string             `` /* 129-byte string literal not displayed */
	Id       string               `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"`
	Rule     *Rule                `protobuf:"bytes,4,opt,name=rule,proto3" json:"rule,omitempty" toml:"rule,omitempty" mapstructure:"rule,omitempty"`
	// contains filtered or unexported fields
}

func (*RuleAddResponse) Descriptor deprecated

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

Deprecated: Use RuleAddResponse.ProtoReflect.Descriptor instead.

func (*RuleAddResponse) GetCode

func (*RuleAddResponse) GetId

func (x *RuleAddResponse) GetId() string

func (*RuleAddResponse) GetMessages

func (x *RuleAddResponse) GetMessages() []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 RuleAddResponse_Code

type RuleAddResponse_Code int32
const (
	RuleAddResponse_ADDED                 RuleAddResponse_Code = 0
	RuleAddResponse_DUPLICATE_NAME        RuleAddResponse_Code = 1
	RuleAddResponse_NOT_FOUND             RuleAddResponse_Code = 2
	RuleAddResponse_INVALID_ACTION_CONFIG RuleAddResponse_Code = 3
	RuleAddResponse_VALIDATION_ERROR      RuleAddResponse_Code = 4
	RuleAddResponse_INTERNAL_ERROR        RuleAddResponse_Code = 99
)

func (RuleAddResponse_Code) Descriptor

func (RuleAddResponse_Code) Enum

func (RuleAddResponse_Code) EnumDescriptor deprecated

func (RuleAddResponse_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use RuleAddResponse_Code.Descriptor instead.

func (RuleAddResponse_Code) Number

func (RuleAddResponse_Code) String

func (x RuleAddResponse_Code) String() string

func (RuleAddResponse_Code) Type

type RuleDeleteResponse

type RuleDeleteResponse struct {
	Code     RuleDeleteResponse_Code `` /* 186-byte string literal not displayed */
	Messages []string                `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RuleDeleteResponse) Descriptor deprecated

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

Deprecated: Use RuleDeleteResponse.ProtoReflect.Descriptor instead.

func (*RuleDeleteResponse) GetCode

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 RuleDeleteResponse_Code

type RuleDeleteResponse_Code int32
const (
	RuleDeleteResponse_DELETED        RuleDeleteResponse_Code = 0
	RuleDeleteResponse_NOT_FOUND      RuleDeleteResponse_Code = 2
	RuleDeleteResponse_INTERNAL_ERROR RuleDeleteResponse_Code = 99
)

func (RuleDeleteResponse_Code) Descriptor

func (RuleDeleteResponse_Code) Enum

func (RuleDeleteResponse_Code) EnumDescriptor deprecated

func (RuleDeleteResponse_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use RuleDeleteResponse_Code.Descriptor instead.

func (RuleDeleteResponse_Code) Number

func (RuleDeleteResponse_Code) String

func (x RuleDeleteResponse_Code) String() string

func (RuleDeleteResponse_Code) Type

type RuleGetResponse

type RuleGetResponse struct {
	Code     RuleGetResponse_Code `` /* 183-byte string literal not displayed */
	Messages []string             `` /* 129-byte string literal not displayed */
	Rule     *Rule                `protobuf:"bytes,3,opt,name=rule,proto3" json:"rule,omitempty" toml:"rule,omitempty" mapstructure:"rule,omitempty"`
	// contains filtered or unexported fields
}

func (*RuleGetResponse) Descriptor deprecated

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

Deprecated: Use RuleGetResponse.ProtoReflect.Descriptor instead.

func (*RuleGetResponse) GetCode

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 RuleGetResponse_Code

type RuleGetResponse_Code int32
const (
	RuleGetResponse_OK             RuleGetResponse_Code = 0
	RuleGetResponse_NOT_FOUND      RuleGetResponse_Code = 2
	RuleGetResponse_INTERNAL_ERROR RuleGetResponse_Code = 99
)

func (RuleGetResponse_Code) Descriptor

func (RuleGetResponse_Code) Enum

func (RuleGetResponse_Code) EnumDescriptor deprecated

func (RuleGetResponse_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use RuleGetResponse_Code.Descriptor instead.

func (RuleGetResponse_Code) Number

func (RuleGetResponse_Code) String

func (x RuleGetResponse_Code) String() string

func (RuleGetResponse_Code) Type

type RuleIdentifier

type RuleIdentifier struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"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 RuleListResponse

type RuleListResponse struct {
	Code     RuleListResponse_Code `` /* 184-byte string literal not displayed */
	Messages []string              `` /* 129-byte string literal not displayed */
	Rules    []*Rule               `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty" toml:"rules,omitempty" mapstructure:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*RuleListResponse) Descriptor deprecated

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

Deprecated: Use RuleListResponse.ProtoReflect.Descriptor instead.

func (*RuleListResponse) GetCode

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 RuleListResponse_Code

type RuleListResponse_Code int32
const (
	RuleListResponse_OK             RuleListResponse_Code = 0
	RuleListResponse_INTERNAL_ERROR RuleListResponse_Code = 99
)

func (RuleListResponse_Code) Descriptor

func (RuleListResponse_Code) Enum

func (RuleListResponse_Code) EnumDescriptor deprecated

func (RuleListResponse_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use RuleListResponse_Code.Descriptor instead.

func (RuleListResponse_Code) Number

func (RuleListResponse_Code) String

func (x RuleListResponse_Code) String() string

func (RuleListResponse_Code) Type

type RuleUpdateResponse

type RuleUpdateResponse struct {
	Code     RuleUpdateResponse_Code `` /* 186-byte string literal not displayed */
	Messages []string                `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RuleUpdateResponse) Descriptor deprecated

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

Deprecated: Use RuleUpdateResponse.ProtoReflect.Descriptor instead.

func (*RuleUpdateResponse) GetCode

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 RuleUpdateResponse_Code

type RuleUpdateResponse_Code int32
const (
	RuleUpdateResponse_OK               RuleUpdateResponse_Code = 0
	RuleUpdateResponse_DUPLICATE_NAME   RuleUpdateResponse_Code = 1
	RuleUpdateResponse_NOT_FOUND        RuleUpdateResponse_Code = 2
	RuleUpdateResponse_VALIDATION_ERROR RuleUpdateResponse_Code = 4
	RuleUpdateResponse_INTERNAL_ERROR   RuleUpdateResponse_Code = 99
)

func (RuleUpdateResponse_Code) Descriptor

func (RuleUpdateResponse_Code) Enum

func (RuleUpdateResponse_Code) EnumDescriptor deprecated

func (RuleUpdateResponse_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use RuleUpdateResponse_Code.Descriptor instead.

func (RuleUpdateResponse_Code) Number

func (RuleUpdateResponse_Code) String

func (x RuleUpdateResponse_Code) String() string

func (RuleUpdateResponse_Code) Type

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

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" toml:"id,omitempty" mapstructure:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretId) Descriptor deprecated

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

Deprecated: Use SecretId.ProtoReflect.Descriptor instead.

func (*SecretId) GetId

func (x *SecretId) GetId() string

func (*SecretId) ProtoMessage

func (*SecretId) ProtoMessage()

func (*SecretId) ProtoReflect

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

func (*SecretId) Reset

func (x *SecretId) Reset()

func (*SecretId) String

func (x *SecretId) String() string

type ServiceNowAlert

type ServiceNowAlert struct {
	Url                  string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty" toml:"url,omitempty" mapstructure:"url,omitempty"`
	SecretId             string `` /* 147-byte string literal not displayed */
	CriticalControlsOnly bool   `` /* 212-byte string literal not displayed */
	// 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" toml:"url,omitempty" mapstructure:"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 SourceLocation

type SourceLocation struct {
	Ref  string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty" toml:"ref,omitempty" mapstructure:"ref,omitempty"`
	Line int32  `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty" toml:"line,omitempty" mapstructure:"line,omitempty"`
	// contains filtered or unexported fields
}

func (*SourceLocation) Descriptor deprecated

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

Deprecated: Use SourceLocation.ProtoReflect.Descriptor instead.

func (*SourceLocation) GetLine

func (x *SourceLocation) GetLine() int32

func (*SourceLocation) GetRef

func (x *SourceLocation) GetRef() string

func (*SourceLocation) ProtoMessage

func (*SourceLocation) ProtoMessage()

func (*SourceLocation) ProtoReflect

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

func (*SourceLocation) Reset

func (x *SourceLocation) Reset()

func (*SourceLocation) String

func (x *SourceLocation) String() string

type TimeInfo

type TimeInfo struct {
	StartTime string `` /* 152-byte string literal not displayed */
	EndTime   string `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TimeInfo) Descriptor deprecated

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

Deprecated: Use TimeInfo.ProtoReflect.Descriptor instead.

func (*TimeInfo) GetEndTime

func (x *TimeInfo) GetEndTime() string

func (*TimeInfo) GetStartTime

func (x *TimeInfo) GetStartTime() string

func (*TimeInfo) ProtoMessage

func (*TimeInfo) ProtoMessage()

func (*TimeInfo) ProtoReflect

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

func (*TimeInfo) Reset

func (x *TimeInfo) Reset()

func (*TimeInfo) String

func (x *TimeInfo) String() string

type URLValidationRequest

type URLValidationRequest struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty" toml:"url,omitempty" mapstructure:"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 {
	Code     URLValidationResponse_Code `` /* 189-byte string literal not displayed */
	Messages []string                   `` // unused but kept for consistency with other Rule api responses.
	/* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*URLValidationResponse) Descriptor deprecated

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

Deprecated: Use URLValidationResponse.ProtoReflect.Descriptor instead.

func (*URLValidationResponse) GetCode

func (*URLValidationResponse) GetMessages

func (x *URLValidationResponse) GetMessages() []string

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 URLValidationResponse_Code

type URLValidationResponse_Code int32
const (
	URLValidationResponse_OK                        URLValidationResponse_Code = 0  // we made the request and it succeeded with a 20x response
	URLValidationResponse_ERROR                     URLValidationResponse_Code = 1  // We made the request and it failed for any reason.
	URLValidationResponse_INVALID_URL               URLValidationResponse_Code = 4  // the url was not valid.
	URLValidationResponse_NOTIFICATIONS_UNAVAIALBLE URLValidationResponse_Code = 98 // we could not make the request due to capacity
	URLValidationResponse_INTERNAL_ERROR            URLValidationResponse_Code = 99
)

func (URLValidationResponse_Code) Descriptor

func (URLValidationResponse_Code) Enum

func (URLValidationResponse_Code) EnumDescriptor deprecated

func (URLValidationResponse_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use URLValidationResponse_Code.Descriptor instead.

func (URLValidationResponse_Code) Number

func (URLValidationResponse_Code) String

func (URLValidationResponse_Code) Type

type UnimplementedNotificationsServer

type UnimplementedNotificationsServer struct {
}

UnimplementedNotificationsServer can be embedded to have forward compatible implementations.

func (*UnimplementedNotificationsServer) AddRule

func (*UnimplementedNotificationsServer) DeleteRule

func (*UnimplementedNotificationsServer) GetRule

func (*UnimplementedNotificationsServer) ListRules

func (*UnimplementedNotificationsServer) Notify

func (*UnimplementedNotificationsServer) UpdateRule

func (*UnimplementedNotificationsServer) ValidateWebhook

func (*UnimplementedNotificationsServer) Version

type UsernamePassword

type UsernamePassword struct {
	Username string `` /* 129-byte string literal not displayed */
	Password string `` /* 129-byte string literal not displayed */
	// 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" toml:"version,omitempty" mapstructure:"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" toml:"url,omitempty" mapstructure:"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

Jump to

Keyboard shortcuts

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