proto

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: AGPL-3.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ApiHelper_CreateEvidence_FullMethodName         = "/proto.ApiHelper/CreateEvidence"
	ApiHelper_UpsertRiskTemplates_FullMethodName    = "/proto.ApiHelper/UpsertRiskTemplates"
	ApiHelper_UpsertSubjectTemplates_FullMethodName = "/proto.ApiHelper/UpsertSubjectTemplates"
)
View Source
const (
	Runner_Configure_FullMethodName = "/proto.Runner/Configure"
	Runner_Eval_FullMethodName      = "/proto.Runner/Eval"
	Runner_Init_FullMethodName      = "/proto.Runner/Init"
)

Variables

View Source
var (
	ExecutionStatus_name = map[int32]string{
		0: "SUCCESS",
		1: "FAILURE",
	}
	ExecutionStatus_value = map[string]int32{
		"SUCCESS": 0,
		"FAILURE": 1,
	}
)

Enum value maps for ExecutionStatus.

View Source
var (
	EvidenceStatusState_name = map[int32]string{
		0: "EVIDENCE_STATUS_STATE_SATISFIED",
		1: "EVIDENCE_STATUS_STATE_NOT_SATISFIED",
	}
	EvidenceStatusState_value = map[string]int32{
		"EVIDENCE_STATUS_STATE_SATISFIED":     0,
		"EVIDENCE_STATUS_STATE_NOT_SATISFIED": 1,
	}
)

Enum value maps for EvidenceStatusState.

View Source
var (
	SubjectType_name = map[int32]string{
		0: "SUBJECT_TYPE_INVENTORY_ITEM",
		1: "SUBJECT_TYPE_COMPONENT",
		2: "SUBJECT_TYPE_USER",
		3: "SUBJECT_TYPE_LOCATION",
		4: "SUBJECT_TYPE_PARTY",
		5: "SUBJECT_TYPE_RESOURCE",
	}
	SubjectType_value = map[string]int32{
		"SUBJECT_TYPE_INVENTORY_ITEM": 0,
		"SUBJECT_TYPE_COMPONENT":      1,
		"SUBJECT_TYPE_USER":           2,
		"SUBJECT_TYPE_LOCATION":       3,
		"SUBJECT_TYPE_PARTY":          4,
		"SUBJECT_TYPE_RESOURCE":       5,
	}
)

Enum value maps for SubjectType.

View Source
var ApiHelper_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.ApiHelper",
	HandlerType: (*ApiHelperServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateEvidence",
			Handler:    _ApiHelper_CreateEvidence_Handler,
		},
		{
			MethodName: "UpsertRiskTemplates",
			Handler:    _ApiHelper_UpsertRiskTemplates_Handler,
		},
		{
			MethodName: "UpsertSubjectTemplates",
			Handler:    _ApiHelper_UpsertSubjectTemplates_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "runner/proto/results.proto",
}

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

View Source
var File_runner_proto_results_proto protoreflect.FileDescriptor
View Source
var File_runner_proto_runner_proto protoreflect.FileDescriptor
View Source
var File_runner_proto_types_proto protoreflect.FileDescriptor
View Source
var Runner_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Runner",
	HandlerType: (*RunnerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Configure",
			Handler:    _Runner_Configure_Handler,
		},
		{
			MethodName: "Eval",
			Handler:    _Runner_Eval_Handler,
		},
		{
			MethodName: "Init",
			Handler:    _Runner_Init_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "runner/proto/runner.proto",
}

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

Functions

func RegisterApiHelperServer added in v0.0.13

func RegisterApiHelperServer(s grpc.ServiceRegistrar, srv ApiHelperServer)

func RegisterRunnerServer

func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer)

Types

type Activity

type Activity struct {
	UUID        *string     `protobuf:"bytes,1,opt,name=UUID,proto3,oneof" json:"UUID,omitempty"`
	Title       string      `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Description string      `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
	Remarks     *string     `protobuf:"bytes,4,opt,name=Remarks,proto3,oneof" json:"Remarks,omitempty"`
	Steps       []*Step     `protobuf:"bytes,5,rep,name=Steps,proto3" json:"Steps,omitempty"`
	Links       []*Link     `protobuf:"bytes,6,rep,name=Links,proto3" json:"Links,omitempty"`
	Props       []*Property `protobuf:"bytes,7,rep,name=Props,proto3" json:"Props,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity) Descriptor deprecated

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

Deprecated: Use Activity.ProtoReflect.Descriptor instead.

func (*Activity) GetDescription

func (x *Activity) GetDescription() string
func (x *Activity) GetLinks() []*Link

func (*Activity) GetProps added in v0.1.0

func (x *Activity) GetProps() []*Property

func (*Activity) GetRemarks added in v0.1.0

func (x *Activity) GetRemarks() string

func (*Activity) GetSteps

func (x *Activity) GetSteps() []*Step

func (*Activity) GetTitle

func (x *Activity) GetTitle() string

func (*Activity) GetUUID added in v0.1.0

func (x *Activity) GetUUID() string

func (*Activity) ProtoMessage

func (*Activity) ProtoMessage()

func (*Activity) ProtoReflect

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

func (*Activity) Reset

func (x *Activity) Reset()

func (*Activity) String

func (x *Activity) String() string

type ApiHelperClient added in v0.0.13

type ApiHelperClient interface {
	CreateEvidence(ctx context.Context, in *CreateEvidenceRequest, opts ...grpc.CallOption) (*CreateEvidenceResponse, error)
	UpsertRiskTemplates(ctx context.Context, in *UpsertRiskTemplatesRequest, opts ...grpc.CallOption) (*UpsertRiskTemplatesResponse, error)
	UpsertSubjectTemplates(ctx context.Context, in *UpsertSubjectTemplatesRequest, opts ...grpc.CallOption) (*UpsertSubjectTemplatesResponse, error)
}

ApiHelperClient is the client API for ApiHelper 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 NewApiHelperClient added in v0.0.13

func NewApiHelperClient(cc grpc.ClientConnInterface) ApiHelperClient

type ApiHelperServer added in v0.0.13

ApiHelperServer is the server API for ApiHelper service. All implementations should embed UnimplementedApiHelperServer for forward compatibility

type Component added in v0.2.0

type Component struct {
	Identifier  string      `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
	Type        string      `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	Title       string      `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`
	Description string      `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
	Remarks     string      `protobuf:"bytes,5,opt,name=Remarks,proto3" json:"Remarks,omitempty"`
	Purpose     string      `protobuf:"bytes,6,opt,name=Purpose,proto3" json:"Purpose,omitempty"`
	Protocols   []*Protocol `protobuf:"bytes,7,rep,name=Protocols,proto3" json:"Protocols,omitempty"`
	Links       []*Link     `protobuf:"bytes,8,rep,name=Links,proto3" json:"Links,omitempty"`
	Props       []*Property `protobuf:"bytes,9,rep,name=Props,proto3" json:"Props,omitempty"`
	// contains filtered or unexported fields
}

func (*Component) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Component.ProtoReflect.Descriptor instead.

func (*Component) GetDescription added in v0.2.0

func (x *Component) GetDescription() string

func (*Component) GetIdentifier added in v0.2.0

func (x *Component) GetIdentifier() string
func (x *Component) GetLinks() []*Link

func (*Component) GetProps added in v0.2.0

func (x *Component) GetProps() []*Property

func (*Component) GetProtocols added in v0.2.0

func (x *Component) GetProtocols() []*Protocol

func (*Component) GetPurpose added in v0.2.0

func (x *Component) GetPurpose() string

func (*Component) GetRemarks added in v0.2.0

func (x *Component) GetRemarks() string

func (*Component) GetTitle added in v0.2.0

func (x *Component) GetTitle() string

func (*Component) GetType added in v0.2.0

func (x *Component) GetType() string

func (*Component) ProtoMessage added in v0.2.0

func (*Component) ProtoMessage()

func (*Component) ProtoReflect added in v0.2.0

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

func (*Component) Reset added in v0.2.0

func (x *Component) Reset()

func (*Component) String added in v0.2.0

func (x *Component) String() string

type ConfigureRequest

type ConfigureRequest struct {
	Config map[string]string `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigureRequest) Descriptor deprecated

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

Deprecated: Use ConfigureRequest.ProtoReflect.Descriptor instead.

func (*ConfigureRequest) GetConfig

func (x *ConfigureRequest) GetConfig() map[string]string

func (*ConfigureRequest) ProtoMessage

func (*ConfigureRequest) ProtoMessage()

func (*ConfigureRequest) ProtoReflect

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

func (*ConfigureRequest) Reset

func (x *ConfigureRequest) Reset()

func (*ConfigureRequest) String

func (x *ConfigureRequest) String() string

type ConfigureResponse

type ConfigureResponse struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigureResponse) Descriptor deprecated

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

Deprecated: Use ConfigureResponse.ProtoReflect.Descriptor instead.

func (*ConfigureResponse) GetValue

func (x *ConfigureResponse) GetValue() []byte

func (*ConfigureResponse) ProtoMessage

func (*ConfigureResponse) ProtoMessage()

func (*ConfigureResponse) ProtoReflect

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

func (*ConfigureResponse) Reset

func (x *ConfigureResponse) Reset()

func (*ConfigureResponse) String

func (x *ConfigureResponse) String() string

type CreateEvidenceRequest added in v0.2.0

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

func (*CreateEvidenceRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use CreateEvidenceRequest.ProtoReflect.Descriptor instead.

func (*CreateEvidenceRequest) GetEvidence added in v0.2.0

func (x *CreateEvidenceRequest) GetEvidence() []*Evidence

func (*CreateEvidenceRequest) ProtoMessage added in v0.2.0

func (*CreateEvidenceRequest) ProtoMessage()

func (*CreateEvidenceRequest) ProtoReflect added in v0.2.0

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

func (*CreateEvidenceRequest) Reset added in v0.2.0

func (x *CreateEvidenceRequest) Reset()

func (*CreateEvidenceRequest) String added in v0.2.0

func (x *CreateEvidenceRequest) String() string

type CreateEvidenceResponse added in v0.2.0

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

func (*CreateEvidenceResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use CreateEvidenceResponse.ProtoReflect.Descriptor instead.

func (*CreateEvidenceResponse) ProtoMessage added in v0.2.0

func (*CreateEvidenceResponse) ProtoMessage()

func (*CreateEvidenceResponse) ProtoReflect added in v0.2.0

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

func (*CreateEvidenceResponse) Reset added in v0.2.0

func (x *CreateEvidenceResponse) Reset()

func (*CreateEvidenceResponse) String added in v0.2.0

func (x *CreateEvidenceResponse) String() string

type EvalRequest

type EvalRequest struct {
	PolicyPaths []string `protobuf:"bytes,1,rep,name=policyPaths,proto3" json:"policyPaths,omitempty"`
	ApiServer   uint32   `protobuf:"varint,2,opt,name=apiServer,proto3" json:"apiServer,omitempty"`
	// contains filtered or unexported fields
}

func (*EvalRequest) Descriptor deprecated

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

Deprecated: Use EvalRequest.ProtoReflect.Descriptor instead.

func (*EvalRequest) GetApiServer added in v0.0.13

func (x *EvalRequest) GetApiServer() uint32

func (*EvalRequest) GetPolicyPaths added in v0.0.15

func (x *EvalRequest) GetPolicyPaths() []string

func (*EvalRequest) ProtoMessage

func (*EvalRequest) ProtoMessage()

func (*EvalRequest) ProtoReflect

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

func (*EvalRequest) Reset

func (x *EvalRequest) Reset()

func (*EvalRequest) String

func (x *EvalRequest) String() string

type EvalResponse

type EvalResponse struct {
	Status ExecutionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.ExecutionStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

* EvalResponse is the result of an assessment check Results are sent back by the plugins using the Result service defined separately.

func (*EvalResponse) Descriptor deprecated

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

Deprecated: Use EvalResponse.ProtoReflect.Descriptor instead.

func (*EvalResponse) GetStatus

func (x *EvalResponse) GetStatus() ExecutionStatus

func (*EvalResponse) ProtoMessage

func (*EvalResponse) ProtoMessage()

func (*EvalResponse) ProtoReflect

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

func (*EvalResponse) Reset

func (x *EvalResponse) Reset()

func (*EvalResponse) String

func (x *EvalResponse) String() string

type Evidence

type Evidence struct {
	UUID        string  `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
	Title       string  `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Description *string `protobuf:"bytes,3,opt,name=Description,proto3,oneof" json:"Description,omitempty"`
	Remarks     *string `protobuf:"bytes,4,opt,name=Remarks,proto3,oneof" json:"Remarks,omitempty"`
	// Assigning labels to Evidence makes it searchable and easily usable in the UI
	Labels map[string]string `` /* 139-byte string literal not displayed */
	// When did we start collecting the evidence, and when did the process end, and how long is it valid for ?
	Start   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=Start,proto3" json:"Start,omitempty"`
	End     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=End,proto3" json:"End,omitempty"`
	Expires *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=Expires,proto3,oneof" json:"Expires,omitempty"`
	Links   []*Link                `protobuf:"bytes,9,rep,name=Links,proto3" json:"Links,omitempty"`
	Props   []*Property            `protobuf:"bytes,10,rep,name=Props,proto3" json:"Props,omitempty"`
	// Who or What is generating this evidence
	Origins []*Origin `protobuf:"bytes,11,rep,name=Origins,proto3" json:"Origins,omitempty"`
	// What steps did we take to create this evidence
	Activities []*Activity `protobuf:"bytes,12,rep,name=Activities,proto3" json:"Activities,omitempty"`
	// Which inventory items were discovered in the evaluation process ?
	InventoryItems []*InventoryItem `protobuf:"bytes,13,rep,name=InventoryItems,proto3" json:"InventoryItems,omitempty"`
	// Which components of the subject are being observed. A tool, user, policy etc.
	Components []*Component `protobuf:"bytes,14,rep,name=Components,proto3" json:"Components,omitempty"`
	// Who or What are we providing evidence for. What's under test.
	Subjects []*Subject `protobuf:"bytes,15,rep,name=Subjects,proto3" json:"Subjects,omitempty"`
	// Did we satisfy what was being tested for, or did we fail ?
	Status *EvidenceStatus `protobuf:"bytes,16,opt,name=Status,proto3" json:"Status,omitempty"`
	// contains filtered or unexported fields
}

func (*Evidence) Descriptor deprecated

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

Deprecated: Use Evidence.ProtoReflect.Descriptor instead.

func (*Evidence) GetActivities added in v0.2.0

func (x *Evidence) GetActivities() []*Activity

func (*Evidence) GetComponents added in v0.2.0

func (x *Evidence) GetComponents() []*Component

func (*Evidence) GetDescription

func (x *Evidence) GetDescription() string

func (*Evidence) GetEnd added in v0.2.0

func (x *Evidence) GetEnd() *timestamppb.Timestamp

func (*Evidence) GetExpires added in v0.2.0

func (x *Evidence) GetExpires() *timestamppb.Timestamp

func (*Evidence) GetInventoryItems added in v0.2.0

func (x *Evidence) GetInventoryItems() []*InventoryItem

func (*Evidence) GetLabels added in v0.2.0

func (x *Evidence) GetLabels() map[string]string
func (x *Evidence) GetLinks() []*Link

func (*Evidence) GetOrigins added in v0.2.0

func (x *Evidence) GetOrigins() []*Origin

func (*Evidence) GetProps

func (x *Evidence) GetProps() []*Property

func (*Evidence) GetRemarks

func (x *Evidence) GetRemarks() string

func (*Evidence) GetStart added in v0.2.0

func (x *Evidence) GetStart() *timestamppb.Timestamp

func (*Evidence) GetStatus added in v0.2.0

func (x *Evidence) GetStatus() *EvidenceStatus

func (*Evidence) GetSubjects added in v0.2.0

func (x *Evidence) GetSubjects() []*Subject

func (*Evidence) GetTitle

func (x *Evidence) GetTitle() string

func (*Evidence) GetUUID added in v0.2.0

func (x *Evidence) GetUUID() string

func (*Evidence) ProtoMessage

func (*Evidence) ProtoMessage()

func (*Evidence) ProtoReflect

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

func (*Evidence) Reset

func (x *Evidence) Reset()

func (*Evidence) String

func (x *Evidence) String() string

type EvidenceStatus added in v0.2.0

type EvidenceStatus struct {
	Reason  string              `protobuf:"bytes,1,opt,name=Reason,proto3" json:"Reason,omitempty"`
	Remarks string              `protobuf:"bytes,2,opt,name=Remarks,proto3" json:"Remarks,omitempty"`
	State   EvidenceStatusState `protobuf:"varint,3,opt,name=State,proto3,enum=proto.EvidenceStatusState" json:"State,omitempty"`
	// contains filtered or unexported fields
}

func (*EvidenceStatus) Descriptor deprecated added in v0.2.0

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

Deprecated: Use EvidenceStatus.ProtoReflect.Descriptor instead.

func (*EvidenceStatus) GetReason added in v0.2.0

func (x *EvidenceStatus) GetReason() string

func (*EvidenceStatus) GetRemarks added in v0.2.0

func (x *EvidenceStatus) GetRemarks() string

func (*EvidenceStatus) GetState added in v0.2.0

func (x *EvidenceStatus) GetState() EvidenceStatusState

func (*EvidenceStatus) ProtoMessage added in v0.2.0

func (*EvidenceStatus) ProtoMessage()

func (*EvidenceStatus) ProtoReflect added in v0.2.0

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

func (*EvidenceStatus) Reset added in v0.2.0

func (x *EvidenceStatus) Reset()

func (*EvidenceStatus) String added in v0.2.0

func (x *EvidenceStatus) String() string

type EvidenceStatusState added in v0.2.0

type EvidenceStatusState int32
const (
	EvidenceStatusState_EVIDENCE_STATUS_STATE_SATISFIED     EvidenceStatusState = 0
	EvidenceStatusState_EVIDENCE_STATUS_STATE_NOT_SATISFIED EvidenceStatusState = 1
)

func (EvidenceStatusState) Descriptor added in v0.2.0

func (EvidenceStatusState) Enum added in v0.2.0

func (EvidenceStatusState) EnumDescriptor deprecated added in v0.2.0

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

Deprecated: Use EvidenceStatusState.Descriptor instead.

func (EvidenceStatusState) Number added in v0.2.0

func (EvidenceStatusState) String added in v0.2.0

func (x EvidenceStatusState) String() string

func (EvidenceStatusState) Type added in v0.2.0

type ExecutionStatus

type ExecutionStatus int32
const (
	ExecutionStatus_SUCCESS ExecutionStatus = 0
	ExecutionStatus_FAILURE ExecutionStatus = 1
)

func (ExecutionStatus) Descriptor

func (ExecutionStatus) Enum

func (x ExecutionStatus) Enum() *ExecutionStatus

func (ExecutionStatus) EnumDescriptor deprecated

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

Deprecated: Use ExecutionStatus.Descriptor instead.

func (ExecutionStatus) Number

func (ExecutionStatus) String

func (x ExecutionStatus) String() string

func (ExecutionStatus) Type

type InitRequest added in v0.3.0

type InitRequest struct {
	PolicyPaths []string `protobuf:"bytes,1,rep,name=policyPaths,proto3" json:"policyPaths,omitempty"`
	ApiServer   uint32   `protobuf:"varint,2,opt,name=apiServer,proto3" json:"apiServer,omitempty"`
	// contains filtered or unexported fields
}

func (*InitRequest) Descriptor deprecated added in v0.3.0

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

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) GetApiServer added in v0.3.0

func (x *InitRequest) GetApiServer() uint32

func (*InitRequest) GetPolicyPaths added in v0.3.0

func (x *InitRequest) GetPolicyPaths() []string

func (*InitRequest) ProtoMessage added in v0.3.0

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect added in v0.3.0

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

func (*InitRequest) Reset added in v0.3.0

func (x *InitRequest) Reset()

func (*InitRequest) String added in v0.3.0

func (x *InitRequest) String() string

type InitResponse added in v0.3.0

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

func (*InitResponse) Descriptor deprecated added in v0.3.0

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

Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.

func (*InitResponse) ProtoMessage added in v0.3.0

func (*InitResponse) ProtoMessage()

func (*InitResponse) ProtoReflect added in v0.3.0

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

func (*InitResponse) Reset added in v0.3.0

func (x *InitResponse) Reset()

func (*InitResponse) String added in v0.3.0

func (x *InitResponse) String() string

type InventoryItem

type InventoryItem struct {
	Identifier            string                               `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
	Type                  string                               `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	Title                 string                               `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`
	Description           string                               `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
	Remarks               string                               `protobuf:"bytes,5,opt,name=Remarks,proto3" json:"Remarks,omitempty"`
	Links                 []*Link                              `protobuf:"bytes,6,rep,name=Links,proto3" json:"Links,omitempty"`
	Props                 []*Property                          `protobuf:"bytes,7,rep,name=Props,proto3" json:"Props,omitempty"`
	ImplementedComponents []*InventoryItemImplementedComponent `protobuf:"bytes,8,rep,name=ImplementedComponents,proto3" json:"ImplementedComponents,omitempty"`
	// contains filtered or unexported fields
}

func (*InventoryItem) Descriptor deprecated

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

Deprecated: Use InventoryItem.ProtoReflect.Descriptor instead.

func (*InventoryItem) GetDescription

func (x *InventoryItem) GetDescription() string

func (*InventoryItem) GetIdentifier added in v0.2.0

func (x *InventoryItem) GetIdentifier() string

func (*InventoryItem) GetImplementedComponents

func (x *InventoryItem) GetImplementedComponents() []*InventoryItemImplementedComponent
func (x *InventoryItem) GetLinks() []*Link

func (*InventoryItem) GetProps

func (x *InventoryItem) GetProps() []*Property

func (*InventoryItem) GetRemarks

func (x *InventoryItem) GetRemarks() string

func (*InventoryItem) GetTitle added in v0.2.0

func (x *InventoryItem) GetTitle() string

func (*InventoryItem) GetType added in v0.2.0

func (x *InventoryItem) GetType() string

func (*InventoryItem) ProtoMessage

func (*InventoryItem) ProtoMessage()

func (*InventoryItem) ProtoReflect

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

func (*InventoryItem) Reset

func (x *InventoryItem) Reset()

func (*InventoryItem) String

func (x *InventoryItem) String() string

type InventoryItemImplementedComponent added in v0.2.0

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

func (*InventoryItemImplementedComponent) Descriptor deprecated added in v0.2.0

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

Deprecated: Use InventoryItemImplementedComponent.ProtoReflect.Descriptor instead.

func (*InventoryItemImplementedComponent) GetIdentifier added in v0.2.0

func (x *InventoryItemImplementedComponent) GetIdentifier() string

func (*InventoryItemImplementedComponent) ProtoMessage added in v0.2.0

func (*InventoryItemImplementedComponent) ProtoMessage()

func (*InventoryItemImplementedComponent) ProtoReflect added in v0.2.0

func (*InventoryItemImplementedComponent) Reset added in v0.2.0

func (*InventoryItemImplementedComponent) String added in v0.2.0

type Link struct {

	// Hypertext Reference
	// A resolvable URL reference to a resource.
	Href string `protobuf:"bytes,1,opt,name=Href,proto3" json:"Href,omitempty"`
	// Link Relation Type
	// Describes the type of relationship provided by the link's hypertext
	// reference. This can be an indicator of the link's purpose.
	Rel *string `protobuf:"bytes,2,opt,name=Rel,proto3,oneof" json:"Rel,omitempty"`
	// Media Type
	// A label that indicates the nature of a resource, as a data serialization or
	// format.
	MediaType *string `protobuf:"bytes,3,opt,name=MediaType,proto3,oneof" json:"MediaType,omitempty"`
	// Resource Fragment
	// In case where the href points to a back-matter/resource, this value will
	// indicate the URI fragment to append to any rlink associated with the
	// resource. This value MUST be URI encoded.
	ResourceFragment *string `protobuf:"bytes,4,opt,name=ResourceFragment,proto3,oneof" json:"ResourceFragment,omitempty"`
	// Link Text
	// A textual label to associate with the link, which may be used for
	// presentation in a tool.
	Text *string `protobuf:"bytes,5,opt,name=Text,proto3,oneof" json:"Text,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

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

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetHref

func (x *Link) GetHref() string

func (*Link) GetMediaType

func (x *Link) GetMediaType() string

func (*Link) GetRel

func (x *Link) GetRel() string

func (*Link) GetResourceFragment

func (x *Link) GetResourceFragment() string

func (*Link) GetText

func (x *Link) GetText() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

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

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type Origin

type Origin struct {
	Actors []*OriginActor `protobuf:"bytes,1,rep,name=Actors,proto3" json:"Actors,omitempty"`
	// contains filtered or unexported fields
}

func (*Origin) Descriptor deprecated

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

Deprecated: Use Origin.ProtoReflect.Descriptor instead.

func (*Origin) GetActors

func (x *Origin) GetActors() []*OriginActor

func (*Origin) ProtoMessage

func (*Origin) ProtoMessage()

func (*Origin) ProtoReflect

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

func (*Origin) Reset

func (x *Origin) Reset()

func (*Origin) String

func (x *Origin) String() string

type OriginActor

type OriginActor struct {
	UUID   string      `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
	Title  string      `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	RoleId string      `protobuf:"bytes,3,opt,name=RoleId,proto3" json:"RoleId,omitempty"`
	Type   string      `protobuf:"bytes,4,opt,name=Type,proto3" json:"Type,omitempty"`
	Links  []*Link     `protobuf:"bytes,5,rep,name=Links,proto3" json:"Links,omitempty"`
	Props  []*Property `protobuf:"bytes,6,rep,name=Props,proto3" json:"Props,omitempty"`
	// contains filtered or unexported fields
}

func (*OriginActor) Descriptor deprecated

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

Deprecated: Use OriginActor.ProtoReflect.Descriptor instead.

func (x *OriginActor) GetLinks() []*Link

func (*OriginActor) GetProps

func (x *OriginActor) GetProps() []*Property

func (*OriginActor) GetRoleId

func (x *OriginActor) GetRoleId() string

func (*OriginActor) GetTitle added in v0.1.0

func (x *OriginActor) GetTitle() string

func (*OriginActor) GetType

func (x *OriginActor) GetType() string

func (*OriginActor) GetUUID added in v0.1.0

func (x *OriginActor) GetUUID() string

func (*OriginActor) ProtoMessage

func (*OriginActor) ProtoMessage()

func (*OriginActor) ProtoReflect

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

func (*OriginActor) Reset

func (x *OriginActor) Reset()

func (*OriginActor) String

func (x *OriginActor) String() string

type PortRange

type PortRange struct {
	End       int32  `protobuf:"varint,1,opt,name=End,proto3" json:"End,omitempty"`
	Start     int32  `protobuf:"varint,2,opt,name=Start,proto3" json:"Start,omitempty"`
	Transport string `protobuf:"bytes,3,opt,name=Transport,proto3" json:"Transport,omitempty"`
	// contains filtered or unexported fields
}

func (*PortRange) Descriptor deprecated

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

Deprecated: Use PortRange.ProtoReflect.Descriptor instead.

func (*PortRange) GetEnd

func (x *PortRange) GetEnd() int32

func (*PortRange) GetStart

func (x *PortRange) GetStart() int32

func (*PortRange) GetTransport

func (x *PortRange) GetTransport() string

func (*PortRange) ProtoMessage

func (*PortRange) ProtoMessage()

func (*PortRange) ProtoReflect

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

func (*PortRange) Reset

func (x *PortRange) Reset()

func (*PortRange) String

func (x *PortRange) String() string

type Property

type Property struct {

	// Property Name
	// A textual label, within a namespace, that identifies a specific attribute,
	// characteristic, or quality of the property's containing object.
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	// Property Value
	// Indicates the value of the attribute, characteristic, or quality.
	Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	// Property Universally Unique Identifier
	// A unique identifier for a property.
	Uuid *string `protobuf:"bytes,3,opt,name=Uuid,proto3,oneof" json:"Uuid,omitempty"`
	// Property Namespace
	// A namespace qualifying the property's name. This allows different
	// organizations to associate distinct semantics with the same name.
	Ns *string `protobuf:"bytes,4,opt,name=Ns,proto3,oneof" json:"Ns,omitempty"`
	// Property Class
	// A textual label that provides a sub-type or characterization of the
	// property's name.
	Class *string `protobuf:"bytes,5,opt,name=Class,proto3,oneof" json:"Class,omitempty"`
	// Property Group
	// An identifier for relating distinct sets of properties.
	Group *string `protobuf:"bytes,6,opt,name=Group,proto3,oneof" json:"Group,omitempty"`
	// Remarks
	// Additional explanatory notes for the property.
	Remarks *string `protobuf:"bytes,7,opt,name=Remarks,proto3,oneof" json:"Remarks,omitempty"`
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated

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

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetClass

func (x *Property) GetClass() string

func (*Property) GetGroup

func (x *Property) GetGroup() string

func (*Property) GetName

func (x *Property) GetName() string

func (*Property) GetNs

func (x *Property) GetNs() string

func (*Property) GetRemarks

func (x *Property) GetRemarks() string

func (*Property) GetUuid

func (x *Property) GetUuid() string

func (*Property) GetValue

func (x *Property) GetValue() string

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

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

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

type Protocol

type Protocol struct {
	UUID       string       `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
	Name       string       `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Title      string       `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`
	PortRanges []*PortRange `protobuf:"bytes,4,rep,name=PortRanges,proto3" json:"PortRanges,omitempty"`
	// contains filtered or unexported fields
}

func (*Protocol) Descriptor deprecated

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

Deprecated: Use Protocol.ProtoReflect.Descriptor instead.

func (*Protocol) GetName

func (x *Protocol) GetName() string

func (*Protocol) GetPortRanges

func (x *Protocol) GetPortRanges() []*PortRange

func (*Protocol) GetTitle

func (x *Protocol) GetTitle() string

func (*Protocol) GetUUID added in v0.2.0

func (x *Protocol) GetUUID() string

func (*Protocol) ProtoMessage

func (*Protocol) ProtoMessage()

func (*Protocol) ProtoReflect

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

func (*Protocol) Reset

func (x *Protocol) Reset()

func (*Protocol) String

func (x *Protocol) String() string

type Remediation added in v0.3.0

type Remediation struct {
	Title       string             `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"`
	Description string             `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
	Tasks       []*RemediationTask `protobuf:"bytes,3,rep,name=Tasks,proto3" json:"Tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*Remediation) Descriptor deprecated added in v0.3.0

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

Deprecated: Use Remediation.ProtoReflect.Descriptor instead.

func (*Remediation) GetDescription added in v0.3.0

func (x *Remediation) GetDescription() string

func (*Remediation) GetTasks added in v0.3.0

func (x *Remediation) GetTasks() []*RemediationTask

func (*Remediation) GetTitle added in v0.3.0

func (x *Remediation) GetTitle() string

func (*Remediation) ProtoMessage added in v0.3.0

func (*Remediation) ProtoMessage()

func (*Remediation) ProtoReflect added in v0.3.0

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

func (*Remediation) Reset added in v0.3.0

func (x *Remediation) Reset()

func (*Remediation) String added in v0.3.0

func (x *Remediation) String() string

type RemediationTask added in v0.3.0

type RemediationTask struct {
	Title      string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"`
	OrderIndex int32  `protobuf:"varint,2,opt,name=OrderIndex,proto3" json:"OrderIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*RemediationTask) Descriptor deprecated added in v0.3.0

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

Deprecated: Use RemediationTask.ProtoReflect.Descriptor instead.

func (*RemediationTask) GetOrderIndex added in v0.3.0

func (x *RemediationTask) GetOrderIndex() int32

func (*RemediationTask) GetTitle added in v0.3.0

func (x *RemediationTask) GetTitle() string

func (*RemediationTask) ProtoMessage added in v0.3.0

func (*RemediationTask) ProtoMessage()

func (*RemediationTask) ProtoReflect added in v0.3.0

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

func (*RemediationTask) Reset added in v0.3.0

func (x *RemediationTask) Reset()

func (*RemediationTask) String added in v0.3.0

func (x *RemediationTask) String() string

type RiskTemplate added in v0.3.0

type RiskTemplate struct {
	UUID            string                     `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
	PolicyPackage   string                     `protobuf:"bytes,2,opt,name=PolicyPackage,proto3" json:"PolicyPackage,omitempty"`
	Name            string                     `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	Title           string                     `protobuf:"bytes,4,opt,name=Title,proto3" json:"Title,omitempty"`
	Statement       string                     `protobuf:"bytes,5,opt,name=Statement,proto3" json:"Statement,omitempty"`
	LikelihoodHint  string                     `protobuf:"bytes,6,opt,name=LikelihoodHint,proto3" json:"LikelihoodHint,omitempty"`
	ImpactHint      string                     `protobuf:"bytes,7,opt,name=ImpactHint,proto3" json:"ImpactHint,omitempty"`
	ViolationIds    []string                   `protobuf:"bytes,8,rep,name=ViolationIds,proto3" json:"ViolationIds,omitempty"`
	ThreatRefs      []*ThreatRef               `protobuf:"bytes,9,rep,name=ThreatRefs,proto3" json:"ThreatRefs,omitempty"`
	Remediation     *Remediation               `protobuf:"bytes,10,opt,name=Remediation,proto3" json:"Remediation,omitempty"`
	DedupeLabelKeys []string                   `protobuf:"bytes,15,rep,name=DedupeLabelKeys,proto3" json:"DedupeLabelKeys,omitempty"`
	LabelSchema     []*RiskTemplateLabelSchema `protobuf:"bytes,16,rep,name=LabelSchema,proto3" json:"LabelSchema,omitempty"`
	// contains filtered or unexported fields
}

func (*RiskTemplate) Descriptor deprecated added in v0.3.0

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

Deprecated: Use RiskTemplate.ProtoReflect.Descriptor instead.

func (*RiskTemplate) GetDedupeLabelKeys added in v0.3.2

func (x *RiskTemplate) GetDedupeLabelKeys() []string

func (*RiskTemplate) GetImpactHint added in v0.3.0

func (x *RiskTemplate) GetImpactHint() string

func (*RiskTemplate) GetLabelSchema added in v0.3.2

func (x *RiskTemplate) GetLabelSchema() []*RiskTemplateLabelSchema

func (*RiskTemplate) GetLikelihoodHint added in v0.3.0

func (x *RiskTemplate) GetLikelihoodHint() string

func (*RiskTemplate) GetName added in v0.3.0

func (x *RiskTemplate) GetName() string

func (*RiskTemplate) GetPolicyPackage added in v0.3.0

func (x *RiskTemplate) GetPolicyPackage() string

func (*RiskTemplate) GetRemediation added in v0.3.0

func (x *RiskTemplate) GetRemediation() *Remediation

func (*RiskTemplate) GetStatement added in v0.3.0

func (x *RiskTemplate) GetStatement() string

func (*RiskTemplate) GetThreatRefs added in v0.3.0

func (x *RiskTemplate) GetThreatRefs() []*ThreatRef

func (*RiskTemplate) GetTitle added in v0.3.0

func (x *RiskTemplate) GetTitle() string

func (*RiskTemplate) GetUUID added in v0.3.0

func (x *RiskTemplate) GetUUID() string

func (*RiskTemplate) GetViolationIds added in v0.3.0

func (x *RiskTemplate) GetViolationIds() []string

func (*RiskTemplate) ProtoMessage added in v0.3.0

func (*RiskTemplate) ProtoMessage()

func (*RiskTemplate) ProtoReflect added in v0.3.0

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

func (*RiskTemplate) Reset added in v0.3.0

func (x *RiskTemplate) Reset()

func (*RiskTemplate) String added in v0.3.0

func (x *RiskTemplate) String() string

type RiskTemplateLabelSchema added in v0.3.2

type RiskTemplateLabelSchema struct {
	Key         string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

func (*RiskTemplateLabelSchema) Descriptor deprecated added in v0.3.2

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

Deprecated: Use RiskTemplateLabelSchema.ProtoReflect.Descriptor instead.

func (*RiskTemplateLabelSchema) GetDescription added in v0.3.2

func (x *RiskTemplateLabelSchema) GetDescription() string

func (*RiskTemplateLabelSchema) GetKey added in v0.3.2

func (x *RiskTemplateLabelSchema) GetKey() string

func (*RiskTemplateLabelSchema) ProtoMessage added in v0.3.2

func (*RiskTemplateLabelSchema) ProtoMessage()

func (*RiskTemplateLabelSchema) ProtoReflect added in v0.3.2

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

func (*RiskTemplateLabelSchema) Reset added in v0.3.2

func (x *RiskTemplateLabelSchema) Reset()

func (*RiskTemplateLabelSchema) String added in v0.3.2

func (x *RiskTemplateLabelSchema) String() string

type RunnerClient

type RunnerClient interface {
	Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*ConfigureResponse, error)
	Eval(ctx context.Context, in *EvalRequest, opts ...grpc.CallOption) (*EvalResponse, error)
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
}

RunnerClient is the client API for Runner 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 NewRunnerClient

func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient

type RunnerServer

RunnerServer is the server API for Runner service. All implementations should embed UnimplementedRunnerServer for forward compatibility

type Step

type Step struct {
	UUID        *string     `protobuf:"bytes,1,opt,name=UUID,proto3,oneof" json:"UUID,omitempty"`
	Title       string      `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Description string      `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
	Remarks     *string     `protobuf:"bytes,4,opt,name=Remarks,proto3,oneof" json:"Remarks,omitempty"`
	Links       []*Link     `protobuf:"bytes,5,rep,name=Links,proto3" json:"Links,omitempty"`
	Props       []*Property `protobuf:"bytes,6,rep,name=Props,proto3" json:"Props,omitempty"`
	// contains filtered or unexported fields
}

func (*Step) Descriptor deprecated

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

Deprecated: Use Step.ProtoReflect.Descriptor instead.

func (*Step) GetDescription

func (x *Step) GetDescription() string
func (x *Step) GetLinks() []*Link

func (*Step) GetProps added in v0.1.0

func (x *Step) GetProps() []*Property

func (*Step) GetRemarks added in v0.1.0

func (x *Step) GetRemarks() string

func (*Step) GetTitle

func (x *Step) GetTitle() string

func (*Step) GetUUID added in v0.1.0

func (x *Step) GetUUID() string

func (*Step) ProtoMessage

func (*Step) ProtoMessage()

func (*Step) ProtoReflect

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

func (*Step) Reset

func (x *Step) Reset()

func (*Step) String

func (x *Step) String() string

type Subject added in v0.2.0

type Subject struct {
	Identifier  string      `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
	Type        SubjectType `protobuf:"varint,2,opt,name=Type,proto3,enum=proto.SubjectType" json:"Type,omitempty"`
	Description string      `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
	Remarks     string      `protobuf:"bytes,4,opt,name=Remarks,proto3" json:"Remarks,omitempty"`
	Links       []*Link     `protobuf:"bytes,5,rep,name=Links,proto3" json:"Links,omitempty"`
	Props       []*Property `protobuf:"bytes,6,rep,name=Props,proto3" json:"Props,omitempty"`
	// contains filtered or unexported fields
}

func (*Subject) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Subject.ProtoReflect.Descriptor instead.

func (*Subject) GetDescription added in v0.2.0

func (x *Subject) GetDescription() string

func (*Subject) GetIdentifier added in v0.2.0

func (x *Subject) GetIdentifier() string
func (x *Subject) GetLinks() []*Link

func (*Subject) GetProps added in v0.2.0

func (x *Subject) GetProps() []*Property

func (*Subject) GetRemarks added in v0.2.0

func (x *Subject) GetRemarks() string

func (*Subject) GetType added in v0.2.0

func (x *Subject) GetType() SubjectType

func (*Subject) ProtoMessage added in v0.2.0

func (*Subject) ProtoMessage()

func (*Subject) ProtoReflect added in v0.2.0

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

func (*Subject) Reset added in v0.2.0

func (x *Subject) Reset()

func (*Subject) String added in v0.2.0

func (x *Subject) String() string

type SubjectLabelSchema added in v0.3.0

type SubjectLabelSchema struct {
	Key         string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

func (*SubjectLabelSchema) Descriptor deprecated added in v0.3.0

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

Deprecated: Use SubjectLabelSchema.ProtoReflect.Descriptor instead.

func (*SubjectLabelSchema) GetDescription added in v0.3.0

func (x *SubjectLabelSchema) GetDescription() string

func (*SubjectLabelSchema) GetKey added in v0.3.0

func (x *SubjectLabelSchema) GetKey() string

func (*SubjectLabelSchema) ProtoMessage added in v0.3.0

func (*SubjectLabelSchema) ProtoMessage()

func (*SubjectLabelSchema) ProtoReflect added in v0.3.0

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

func (*SubjectLabelSchema) Reset added in v0.3.0

func (x *SubjectLabelSchema) Reset()

func (*SubjectLabelSchema) String added in v0.3.0

func (x *SubjectLabelSchema) String() string

type SubjectLabelSelector added in v0.3.0

type SubjectLabelSelector struct {
	Key   string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*SubjectLabelSelector) Descriptor deprecated added in v0.3.0

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

Deprecated: Use SubjectLabelSelector.ProtoReflect.Descriptor instead.

func (*SubjectLabelSelector) GetKey added in v0.3.0

func (x *SubjectLabelSelector) GetKey() string

func (*SubjectLabelSelector) GetValue added in v0.3.0

func (x *SubjectLabelSelector) GetValue() string

func (*SubjectLabelSelector) ProtoMessage added in v0.3.0

func (*SubjectLabelSelector) ProtoMessage()

func (*SubjectLabelSelector) ProtoReflect added in v0.3.0

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

func (*SubjectLabelSelector) Reset added in v0.3.0

func (x *SubjectLabelSelector) Reset()

func (*SubjectLabelSelector) String added in v0.3.0

func (x *SubjectLabelSelector) String() string
type SubjectLink struct {
	Href string `protobuf:"bytes,1,opt,name=Href,proto3" json:"Href,omitempty"`
	// contains filtered or unexported fields
}

func (*SubjectLink) Descriptor deprecated added in v0.3.0

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

Deprecated: Use SubjectLink.ProtoReflect.Descriptor instead.

func (*SubjectLink) GetHref added in v0.3.0

func (x *SubjectLink) GetHref() string

func (*SubjectLink) ProtoMessage added in v0.3.0

func (*SubjectLink) ProtoMessage()

func (*SubjectLink) ProtoReflect added in v0.3.0

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

func (*SubjectLink) Reset added in v0.3.0

func (x *SubjectLink) Reset()

func (*SubjectLink) String added in v0.3.0

func (x *SubjectLink) String() string

type SubjectProp added in v0.3.0

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

func (*SubjectProp) Descriptor deprecated added in v0.3.0

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

Deprecated: Use SubjectProp.ProtoReflect.Descriptor instead.

func (*SubjectProp) GetName added in v0.3.0

func (x *SubjectProp) GetName() string

func (*SubjectProp) GetValue added in v0.3.0

func (x *SubjectProp) GetValue() string

func (*SubjectProp) ProtoMessage added in v0.3.0

func (*SubjectProp) ProtoMessage()

func (*SubjectProp) ProtoReflect added in v0.3.0

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

func (*SubjectProp) Reset added in v0.3.0

func (x *SubjectProp) Reset()

func (*SubjectProp) String added in v0.3.0

func (x *SubjectProp) String() string

type SubjectTemplate added in v0.3.0

type SubjectTemplate struct {
	Name                string                  `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Type                SubjectType             `protobuf:"varint,2,opt,name=Type,proto3,enum=proto.SubjectType" json:"Type,omitempty"`
	TitleTemplate       string                  `protobuf:"bytes,3,opt,name=TitleTemplate,proto3" json:"TitleTemplate,omitempty"`
	DescriptionTemplate string                  `protobuf:"bytes,4,opt,name=DescriptionTemplate,proto3" json:"DescriptionTemplate,omitempty"`
	PurposeTemplate     string                  `protobuf:"bytes,5,opt,name=PurposeTemplate,proto3" json:"PurposeTemplate,omitempty"`
	RemarksTemplate     string                  `protobuf:"bytes,6,opt,name=RemarksTemplate,proto3" json:"RemarksTemplate,omitempty"`
	IdentityLabelKeys   []string                `protobuf:"bytes,7,rep,name=IdentityLabelKeys,proto3" json:"IdentityLabelKeys,omitempty"`
	Props               []*SubjectProp          `protobuf:"bytes,8,rep,name=Props,proto3" json:"Props,omitempty"`
	Links               []*SubjectLink          `protobuf:"bytes,9,rep,name=Links,proto3" json:"Links,omitempty"`
	SelectorLabels      []*SubjectLabelSelector `protobuf:"bytes,10,rep,name=SelectorLabels,proto3" json:"SelectorLabels,omitempty"`
	LabelSchema         []*SubjectLabelSchema   `protobuf:"bytes,11,rep,name=LabelSchema,proto3" json:"LabelSchema,omitempty"`
	// contains filtered or unexported fields
}

func (*SubjectTemplate) Descriptor deprecated added in v0.3.0

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

Deprecated: Use SubjectTemplate.ProtoReflect.Descriptor instead.

func (*SubjectTemplate) GetDescriptionTemplate added in v0.3.0

func (x *SubjectTemplate) GetDescriptionTemplate() string

func (*SubjectTemplate) GetIdentityLabelKeys added in v0.3.0

func (x *SubjectTemplate) GetIdentityLabelKeys() []string

func (*SubjectTemplate) GetLabelSchema added in v0.3.0

func (x *SubjectTemplate) GetLabelSchema() []*SubjectLabelSchema
func (x *SubjectTemplate) GetLinks() []*SubjectLink

func (*SubjectTemplate) GetName added in v0.3.0

func (x *SubjectTemplate) GetName() string

func (*SubjectTemplate) GetProps added in v0.3.0

func (x *SubjectTemplate) GetProps() []*SubjectProp

func (*SubjectTemplate) GetPurposeTemplate added in v0.3.0

func (x *SubjectTemplate) GetPurposeTemplate() string

func (*SubjectTemplate) GetRemarksTemplate added in v0.3.0

func (x *SubjectTemplate) GetRemarksTemplate() string

func (*SubjectTemplate) GetSelectorLabels added in v0.3.0

func (x *SubjectTemplate) GetSelectorLabels() []*SubjectLabelSelector

func (*SubjectTemplate) GetTitleTemplate added in v0.3.0

func (x *SubjectTemplate) GetTitleTemplate() string

func (*SubjectTemplate) GetType added in v0.3.0

func (x *SubjectTemplate) GetType() SubjectType

func (*SubjectTemplate) ProtoMessage added in v0.3.0

func (*SubjectTemplate) ProtoMessage()

func (*SubjectTemplate) ProtoReflect added in v0.3.0

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

func (*SubjectTemplate) Reset added in v0.3.0

func (x *SubjectTemplate) Reset()

func (*SubjectTemplate) String added in v0.3.0

func (x *SubjectTemplate) String() string

type SubjectType

type SubjectType int32
const (
	SubjectType_SUBJECT_TYPE_INVENTORY_ITEM SubjectType = 0
	SubjectType_SUBJECT_TYPE_COMPONENT      SubjectType = 1
	SubjectType_SUBJECT_TYPE_USER           SubjectType = 2
	SubjectType_SUBJECT_TYPE_LOCATION       SubjectType = 3
	SubjectType_SUBJECT_TYPE_PARTY          SubjectType = 4
	SubjectType_SUBJECT_TYPE_RESOURCE       SubjectType = 5
)

func (SubjectType) Descriptor

func (SubjectType) Enum

func (x SubjectType) Enum() *SubjectType

func (SubjectType) EnumDescriptor deprecated

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

Deprecated: Use SubjectType.Descriptor instead.

func (SubjectType) Number

func (x SubjectType) Number() protoreflect.EnumNumber

func (SubjectType) String

func (x SubjectType) String() string

func (SubjectType) Type

type ThreatRef added in v0.3.0

type ThreatRef struct {
	System     string `protobuf:"bytes,1,opt,name=System,proto3" json:"System,omitempty"`
	ExternalID string `protobuf:"bytes,2,opt,name=ExternalID,proto3" json:"ExternalID,omitempty"`
	Title      string `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`
	Url        string `protobuf:"bytes,4,opt,name=Url,proto3" json:"Url,omitempty"`
	// contains filtered or unexported fields
}

func (*ThreatRef) Descriptor deprecated added in v0.3.0

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

Deprecated: Use ThreatRef.ProtoReflect.Descriptor instead.

func (*ThreatRef) GetExternalID added in v0.3.0

func (x *ThreatRef) GetExternalID() string

func (*ThreatRef) GetSystem added in v0.3.0

func (x *ThreatRef) GetSystem() string

func (*ThreatRef) GetTitle added in v0.3.0

func (x *ThreatRef) GetTitle() string

func (*ThreatRef) GetUrl added in v0.3.0

func (x *ThreatRef) GetUrl() string

func (*ThreatRef) ProtoMessage added in v0.3.0

func (*ThreatRef) ProtoMessage()

func (*ThreatRef) ProtoReflect added in v0.3.0

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

func (*ThreatRef) Reset added in v0.3.0

func (x *ThreatRef) Reset()

func (*ThreatRef) String added in v0.3.0

func (x *ThreatRef) String() string

type UnimplementedApiHelperServer added in v0.0.13

type UnimplementedApiHelperServer struct {
}

UnimplementedApiHelperServer should be embedded to have forward compatible implementations.

func (UnimplementedApiHelperServer) CreateEvidence added in v0.2.0

func (UnimplementedApiHelperServer) UpsertRiskTemplates added in v0.3.0

func (UnimplementedApiHelperServer) UpsertSubjectTemplates added in v0.3.0

type UnimplementedRunnerServer

type UnimplementedRunnerServer struct {
}

UnimplementedRunnerServer should be embedded to have forward compatible implementations.

func (UnimplementedRunnerServer) Configure

func (UnimplementedRunnerServer) Eval

func (UnimplementedRunnerServer) Init added in v0.3.0

type UnsafeApiHelperServer added in v0.0.13

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

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

type UnsafeRunnerServer

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

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

type UpsertRiskTemplatesRequest added in v0.3.0

type UpsertRiskTemplatesRequest struct {
	PackageName   string          `protobuf:"bytes,1,opt,name=PackageName,proto3" json:"PackageName,omitempty"`
	RiskTemplates []*RiskTemplate `protobuf:"bytes,2,rep,name=RiskTemplates,proto3" json:"RiskTemplates,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertRiskTemplatesRequest) Descriptor deprecated added in v0.3.0

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

Deprecated: Use UpsertRiskTemplatesRequest.ProtoReflect.Descriptor instead.

func (*UpsertRiskTemplatesRequest) GetPackageName added in v0.3.0

func (x *UpsertRiskTemplatesRequest) GetPackageName() string

func (*UpsertRiskTemplatesRequest) GetRiskTemplates added in v0.3.0

func (x *UpsertRiskTemplatesRequest) GetRiskTemplates() []*RiskTemplate

func (*UpsertRiskTemplatesRequest) ProtoMessage added in v0.3.0

func (*UpsertRiskTemplatesRequest) ProtoMessage()

func (*UpsertRiskTemplatesRequest) ProtoReflect added in v0.3.0

func (*UpsertRiskTemplatesRequest) Reset added in v0.3.0

func (x *UpsertRiskTemplatesRequest) Reset()

func (*UpsertRiskTemplatesRequest) String added in v0.3.0

func (x *UpsertRiskTemplatesRequest) String() string

type UpsertRiskTemplatesResponse added in v0.3.0

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

func (*UpsertRiskTemplatesResponse) Descriptor deprecated added in v0.3.0

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

Deprecated: Use UpsertRiskTemplatesResponse.ProtoReflect.Descriptor instead.

func (*UpsertRiskTemplatesResponse) ProtoMessage added in v0.3.0

func (*UpsertRiskTemplatesResponse) ProtoMessage()

func (*UpsertRiskTemplatesResponse) ProtoReflect added in v0.3.0

func (*UpsertRiskTemplatesResponse) Reset added in v0.3.0

func (x *UpsertRiskTemplatesResponse) Reset()

func (*UpsertRiskTemplatesResponse) String added in v0.3.0

func (x *UpsertRiskTemplatesResponse) String() string

type UpsertSubjectTemplatesRequest added in v0.3.0

type UpsertSubjectTemplatesRequest struct {
	SubjectTemplates []*SubjectTemplate `protobuf:"bytes,1,rep,name=SubjectTemplates,proto3" json:"SubjectTemplates,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertSubjectTemplatesRequest) Descriptor deprecated added in v0.3.0

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

Deprecated: Use UpsertSubjectTemplatesRequest.ProtoReflect.Descriptor instead.

func (*UpsertSubjectTemplatesRequest) GetSubjectTemplates added in v0.3.0

func (x *UpsertSubjectTemplatesRequest) GetSubjectTemplates() []*SubjectTemplate

func (*UpsertSubjectTemplatesRequest) ProtoMessage added in v0.3.0

func (*UpsertSubjectTemplatesRequest) ProtoMessage()

func (*UpsertSubjectTemplatesRequest) ProtoReflect added in v0.3.0

func (*UpsertSubjectTemplatesRequest) Reset added in v0.3.0

func (x *UpsertSubjectTemplatesRequest) Reset()

func (*UpsertSubjectTemplatesRequest) String added in v0.3.0

type UpsertSubjectTemplatesResponse added in v0.3.0

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

func (*UpsertSubjectTemplatesResponse) Descriptor deprecated added in v0.3.0

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

Deprecated: Use UpsertSubjectTemplatesResponse.ProtoReflect.Descriptor instead.

func (*UpsertSubjectTemplatesResponse) ProtoMessage added in v0.3.0

func (*UpsertSubjectTemplatesResponse) ProtoMessage()

func (*UpsertSubjectTemplatesResponse) ProtoReflect added in v0.3.0

func (*UpsertSubjectTemplatesResponse) Reset added in v0.3.0

func (x *UpsertSubjectTemplatesResponse) Reset()

func (*UpsertSubjectTemplatesResponse) String added in v0.3.0

Jump to

Keyboard shortcuts

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