proto

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ApiHelper_CreateObservations_FullMethodName = "/proto.ApiHelper/CreateObservations"
	ApiHelper_CreateFindings_FullMethodName     = "/proto.ApiHelper/CreateFindings"
)
View Source
const (
	Runner_Configure_FullMethodName = "/proto.Runner/Configure"
	Runner_Eval_FullMethodName      = "/proto.Runner/Eval"
)

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 ApiHelper_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.ApiHelper",
	HandlerType: (*ApiHelperServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateObservations",
			Handler:    _ApiHelper_CreateObservations_Handler,
		},
		{
			MethodName: "CreateFindings",
			Handler:    _ApiHelper_CreateFindings_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,
		},
	},
	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 {
	CreateObservations(ctx context.Context, in *CreateObservationsRequest, opts ...grpc.CallOption) (*CreateObservationsResponse, error)
	CreateFindings(ctx context.Context, in *CreateFindingsRequest, opts ...grpc.CallOption) (*CreateFindingsResponse, 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

type ApiHelperServer interface {
	CreateObservations(context.Context, *CreateObservationsRequest) (*CreateObservationsResponse, error)
	CreateFindings(context.Context, *CreateFindingsRequest) (*CreateFindingsResponse, error)
}

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

type AssociatedRisk added in v0.1.0

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

func (*AssociatedRisk) Descriptor deprecated added in v0.1.0

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

Deprecated: Use AssociatedRisk.ProtoReflect.Descriptor instead.

func (*AssociatedRisk) GetIdentifier added in v0.1.0

func (x *AssociatedRisk) GetIdentifier() string

func (*AssociatedRisk) ProtoMessage added in v0.1.0

func (*AssociatedRisk) ProtoMessage()

func (*AssociatedRisk) ProtoReflect added in v0.1.0

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

func (*AssociatedRisk) Reset added in v0.1.0

func (x *AssociatedRisk) Reset()

func (*AssociatedRisk) String added in v0.1.0

func (x *AssociatedRisk) String() string

type ComponentReference added in v0.1.0

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

func (*ComponentReference) Descriptor deprecated added in v0.1.0

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

Deprecated: Use ComponentReference.ProtoReflect.Descriptor instead.

func (*ComponentReference) GetHref added in v0.1.0

func (x *ComponentReference) GetHref() string

func (*ComponentReference) GetIdentifier added in v0.1.0

func (x *ComponentReference) GetIdentifier() string

func (*ComponentReference) ProtoMessage added in v0.1.0

func (*ComponentReference) ProtoMessage()

func (*ComponentReference) ProtoReflect added in v0.1.0

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

func (*ComponentReference) Reset added in v0.1.0

func (x *ComponentReference) Reset()

func (*ComponentReference) String added in v0.1.0

func (x *ComponentReference) 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 ControlReference added in v0.1.0

type ControlReference struct {
	Class        string   `protobuf:"bytes,1,opt,name=Class,proto3" json:"Class,omitempty"`
	ControlId    string   `protobuf:"bytes,2,opt,name=ControlId,proto3" json:"ControlId,omitempty"`
	StatementIds []string `protobuf:"bytes,3,rep,name=StatementIds,proto3" json:"StatementIds,omitempty"`
	// contains filtered or unexported fields
}

func (*ControlReference) Descriptor deprecated added in v0.1.0

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

Deprecated: Use ControlReference.ProtoReflect.Descriptor instead.

func (*ControlReference) GetClass added in v0.1.0

func (x *ControlReference) GetClass() string

func (*ControlReference) GetControlId added in v0.1.0

func (x *ControlReference) GetControlId() string

func (*ControlReference) GetStatementIds added in v0.1.0

func (x *ControlReference) GetStatementIds() []string

func (*ControlReference) ProtoMessage added in v0.1.0

func (*ControlReference) ProtoMessage()

func (*ControlReference) ProtoReflect added in v0.1.0

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

func (*ControlReference) Reset added in v0.1.0

func (x *ControlReference) Reset()

func (*ControlReference) String added in v0.1.0

func (x *ControlReference) String() string

type CreateFindingsRequest added in v0.1.1

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

func (*CreateFindingsRequest) Descriptor deprecated added in v0.1.1

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

Deprecated: Use CreateFindingsRequest.ProtoReflect.Descriptor instead.

func (*CreateFindingsRequest) GetFindings added in v0.1.1

func (x *CreateFindingsRequest) GetFindings() []*Finding

func (*CreateFindingsRequest) ProtoMessage added in v0.1.1

func (*CreateFindingsRequest) ProtoMessage()

func (*CreateFindingsRequest) ProtoReflect added in v0.1.1

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

func (*CreateFindingsRequest) Reset added in v0.1.1

func (x *CreateFindingsRequest) Reset()

func (*CreateFindingsRequest) String added in v0.1.1

func (x *CreateFindingsRequest) String() string

type CreateFindingsResponse added in v0.1.1

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

func (*CreateFindingsResponse) Descriptor deprecated added in v0.1.1

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

Deprecated: Use CreateFindingsResponse.ProtoReflect.Descriptor instead.

func (*CreateFindingsResponse) ProtoMessage added in v0.1.1

func (*CreateFindingsResponse) ProtoMessage()

func (*CreateFindingsResponse) ProtoReflect added in v0.1.1

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

func (*CreateFindingsResponse) Reset added in v0.1.1

func (x *CreateFindingsResponse) Reset()

func (*CreateFindingsResponse) String added in v0.1.1

func (x *CreateFindingsResponse) String() string

type CreateObservationsRequest added in v0.1.1

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

func (*CreateObservationsRequest) Descriptor deprecated added in v0.1.1

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

Deprecated: Use CreateObservationsRequest.ProtoReflect.Descriptor instead.

func (*CreateObservationsRequest) GetObservations added in v0.1.1

func (x *CreateObservationsRequest) GetObservations() []*Observation

func (*CreateObservationsRequest) ProtoMessage added in v0.1.1

func (*CreateObservationsRequest) ProtoMessage()

func (*CreateObservationsRequest) ProtoReflect added in v0.1.1

func (*CreateObservationsRequest) Reset added in v0.1.1

func (x *CreateObservationsRequest) Reset()

func (*CreateObservationsRequest) String added in v0.1.1

func (x *CreateObservationsRequest) String() string

type CreateObservationsResponse added in v0.1.1

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

func (*CreateObservationsResponse) Descriptor deprecated added in v0.1.1

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

Deprecated: Use CreateObservationsResponse.ProtoReflect.Descriptor instead.

func (*CreateObservationsResponse) ProtoMessage added in v0.1.1

func (*CreateObservationsResponse) ProtoMessage()

func (*CreateObservationsResponse) ProtoReflect added in v0.1.1

func (*CreateObservationsResponse) Reset added in v0.1.1

func (x *CreateObservationsResponse) Reset()

func (*CreateObservationsResponse) String added in v0.1.1

func (x *CreateObservationsResponse) 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 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 Finding

type Finding struct {
	ID                  string                 `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	UUID                string                 `protobuf:"bytes,2,opt,name=UUID,proto3" json:"UUID,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,oneof" json:"Remarks,omitempty"`
	Collected           *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=Collected,proto3" json:"Collected,omitempty"`
	Labels              map[string]string      `` /* 139-byte string literal not displayed */
	Origins             []*Origin              `protobuf:"bytes,8,rep,name=Origins,proto3" json:"Origins,omitempty"`
	Subjects            []*SubjectReference    `protobuf:"bytes,9,rep,name=Subjects,proto3" json:"Subjects,omitempty"`
	Components          []*ComponentReference  `protobuf:"bytes,10,rep,name=Components,proto3" json:"Components,omitempty"`
	RelatedObservations []*RelatedObservation  `protobuf:"bytes,11,rep,name=RelatedObservations,proto3" json:"RelatedObservations,omitempty"`
	Controls            []*ControlReference    `protobuf:"bytes,12,rep,name=Controls,proto3" json:"Controls,omitempty"`
	Risks               []*RiskReference       `protobuf:"bytes,13,rep,name=Risks,proto3" json:"Risks,omitempty"`
	Status              *FindingStatus         `protobuf:"bytes,14,opt,name=Status,proto3" json:"Status,omitempty"`
	Links               []*Link                `protobuf:"bytes,15,rep,name=Links,proto3" json:"Links,omitempty"`
	Props               []*Property            `protobuf:"bytes,16,rep,name=Props,proto3" json:"Props,omitempty"`
	// contains filtered or unexported fields
}

func (*Finding) Descriptor deprecated

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

Deprecated: Use Finding.ProtoReflect.Descriptor instead.

func (*Finding) GetCollected added in v0.1.0

func (x *Finding) GetCollected() *timestamppb.Timestamp

func (*Finding) GetComponents added in v0.1.0

func (x *Finding) GetComponents() []*ComponentReference

func (*Finding) GetControls added in v0.1.0

func (x *Finding) GetControls() []*ControlReference

func (*Finding) GetDescription

func (x *Finding) GetDescription() string

func (*Finding) GetID added in v0.1.0

func (x *Finding) GetID() string

func (*Finding) GetLabels added in v0.0.14

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

func (*Finding) GetOrigins

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

func (*Finding) GetProps

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

func (*Finding) GetRelatedObservations

func (x *Finding) GetRelatedObservations() []*RelatedObservation

func (*Finding) GetRemarks

func (x *Finding) GetRemarks() string

func (*Finding) GetRisks added in v0.1.0

func (x *Finding) GetRisks() []*RiskReference

func (*Finding) GetStatus added in v0.1.0

func (x *Finding) GetStatus() *FindingStatus

func (*Finding) GetSubjects added in v0.1.0

func (x *Finding) GetSubjects() []*SubjectReference

func (*Finding) GetTitle

func (x *Finding) GetTitle() string

func (*Finding) GetUUID added in v0.1.0

func (x *Finding) GetUUID() string

func (*Finding) ProtoMessage

func (*Finding) ProtoMessage()

func (*Finding) ProtoReflect

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

func (*Finding) Reset

func (x *Finding) Reset()

func (*Finding) String

func (x *Finding) String() string

type FindingStatus added in v0.1.0

type FindingStatus struct {
	Title       *string     `protobuf:"bytes,1,opt,name=Title,proto3,oneof" json:"Title,omitempty"`
	Description *string     `protobuf:"bytes,2,opt,name=Description,proto3,oneof" json:"Description,omitempty"`
	Remarks     *string     `protobuf:"bytes,3,opt,name=Remarks,proto3,oneof" json:"Remarks,omitempty"`
	State       string      `protobuf:"bytes,4,opt,name=State,proto3" json:"State,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 (*FindingStatus) Descriptor deprecated added in v0.1.0

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

Deprecated: Use FindingStatus.ProtoReflect.Descriptor instead.

func (*FindingStatus) GetDescription added in v0.1.0

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

func (*FindingStatus) GetProps added in v0.1.0

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

func (*FindingStatus) GetRemarks added in v0.1.0

func (x *FindingStatus) GetRemarks() string

func (*FindingStatus) GetState added in v0.1.0

func (x *FindingStatus) GetState() string

func (*FindingStatus) GetTitle added in v0.1.0

func (x *FindingStatus) GetTitle() string

func (*FindingStatus) ProtoMessage added in v0.1.0

func (*FindingStatus) ProtoMessage()

func (*FindingStatus) ProtoReflect added in v0.1.0

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

func (*FindingStatus) Reset added in v0.1.0

func (x *FindingStatus) Reset()

func (*FindingStatus) String added in v0.1.0

func (x *FindingStatus) String() string
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 Observation

type Observation struct {
	ID               string                 `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	UUID             string                 `protobuf:"bytes,2,opt,name=UUID,proto3" json:"UUID,omitempty"`
	Title            *string                `protobuf:"bytes,3,opt,name=Title,proto3,oneof" json:"Title,omitempty"`
	Description      string                 `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
	Remarks          *string                `protobuf:"bytes,5,opt,name=Remarks,proto3,oneof" json:"Remarks,omitempty"`
	Collected        *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=Collected,proto3" json:"Collected,omitempty"`
	Expires          *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=Expires,proto3,oneof" json:"Expires,omitempty"`
	Methods          []string               `protobuf:"bytes,8,rep,name=Methods,proto3" json:"Methods,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"`
	Origins          []*Origin              `protobuf:"bytes,11,rep,name=Origins,proto3" json:"Origins,omitempty"`
	Subjects         []*SubjectReference    `protobuf:"bytes,12,rep,name=Subjects,proto3" json:"Subjects,omitempty"`
	Activities       []*Activity            `protobuf:"bytes,13,rep,name=Activities,proto3" json:"Activities,omitempty"`
	Components       []*ComponentReference  `protobuf:"bytes,14,rep,name=Components,proto3" json:"Components,omitempty"`
	RelevantEvidence []*RelevantEvidence    `protobuf:"bytes,15,rep,name=RelevantEvidence,proto3" json:"RelevantEvidence,omitempty"`
	// contains filtered or unexported fields
}

func (*Observation) Descriptor deprecated

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

Deprecated: Use Observation.ProtoReflect.Descriptor instead.

func (*Observation) GetActivities added in v0.1.0

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

func (*Observation) GetCollected

func (x *Observation) GetCollected() *timestamppb.Timestamp

func (*Observation) GetComponents added in v0.1.0

func (x *Observation) GetComponents() []*ComponentReference

func (*Observation) GetDescription

func (x *Observation) GetDescription() string

func (*Observation) GetExpires

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

func (*Observation) GetID added in v0.1.0

func (x *Observation) GetID() string
func (x *Observation) GetLinks() []*Link

func (*Observation) GetMethods

func (x *Observation) GetMethods() []string

func (*Observation) GetOrigins

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

func (*Observation) GetProps

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

func (*Observation) GetRelevantEvidence

func (x *Observation) GetRelevantEvidence() []*RelevantEvidence

func (*Observation) GetRemarks

func (x *Observation) GetRemarks() string

func (*Observation) GetSubjects

func (x *Observation) GetSubjects() []*SubjectReference

func (*Observation) GetTitle

func (x *Observation) GetTitle() string

func (*Observation) GetUUID added in v0.1.0

func (x *Observation) GetUUID() string

func (*Observation) ProtoMessage

func (*Observation) ProtoMessage()

func (*Observation) ProtoReflect

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

func (*Observation) Reset

func (x *Observation) Reset()

func (*Observation) String

func (x *Observation) 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,oneof" json:"UUID,omitempty"`
	Title string      `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Type  string      `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"`
	Links []*Link     `protobuf:"bytes,4,rep,name=Links,proto3" json:"Links,omitempty"`
	Props []*Property `protobuf:"bytes,5,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) 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 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
}

Property An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.

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 RelatedObservation

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

func (*RelatedObservation) Descriptor deprecated

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

Deprecated: Use RelatedObservation.ProtoReflect.Descriptor instead.

func (*RelatedObservation) GetObservationUUID added in v0.1.0

func (x *RelatedObservation) GetObservationUUID() string

func (*RelatedObservation) ProtoMessage

func (*RelatedObservation) ProtoMessage()

func (*RelatedObservation) ProtoReflect

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

func (*RelatedObservation) Reset

func (x *RelatedObservation) Reset()

func (*RelatedObservation) String

func (x *RelatedObservation) String() string

type RelevantEvidence

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

func (*RelevantEvidence) Descriptor deprecated

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

Deprecated: Use RelevantEvidence.ProtoReflect.Descriptor instead.

func (*RelevantEvidence) GetDescription

func (x *RelevantEvidence) GetDescription() string

func (*RelevantEvidence) GetHref

func (x *RelevantEvidence) GetHref() string
func (x *RelevantEvidence) GetLinks() []*Link

func (*RelevantEvidence) GetProps

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

func (*RelevantEvidence) GetRemarks

func (x *RelevantEvidence) GetRemarks() string

func (*RelevantEvidence) ProtoMessage

func (*RelevantEvidence) ProtoMessage()

func (*RelevantEvidence) ProtoReflect

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

func (*RelevantEvidence) Reset

func (x *RelevantEvidence) Reset()

func (*RelevantEvidence) String

func (x *RelevantEvidence) String() string

type RiskReference added in v0.1.0

type RiskReference struct {
	Identifier string      `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
	Status     string      `protobuf:"bytes,2,opt,name=Status,proto3" json:"Status,omitempty"`
	Href       *string     `protobuf:"bytes,3,opt,name=Href,proto3,oneof" json:"Href,omitempty"`
	Origins    []*Origin   `protobuf:"bytes,4,rep,name=Origins,proto3" json:"Origins,omitempty"`
	ThreatIds  []*ThreatId `protobuf:"bytes,5,rep,name=ThreatIds,proto3" json:"ThreatIds,omitempty"`
	// contains filtered or unexported fields
}

func (*RiskReference) Descriptor deprecated added in v0.1.0

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

Deprecated: Use RiskReference.ProtoReflect.Descriptor instead.

func (*RiskReference) GetHref added in v0.1.0

func (x *RiskReference) GetHref() string

func (*RiskReference) GetIdentifier added in v0.1.0

func (x *RiskReference) GetIdentifier() string

func (*RiskReference) GetOrigins added in v0.1.0

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

func (*RiskReference) GetStatus added in v0.1.0

func (x *RiskReference) GetStatus() string

func (*RiskReference) GetThreatIds added in v0.1.0

func (x *RiskReference) GetThreatIds() []*ThreatId

func (*RiskReference) ProtoMessage added in v0.1.0

func (*RiskReference) ProtoMessage()

func (*RiskReference) ProtoReflect added in v0.1.0

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

func (*RiskReference) Reset added in v0.1.0

func (x *RiskReference) Reset()

func (*RiskReference) String added in v0.1.0

func (x *RiskReference) 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)
}

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

type RunnerServer interface {
	Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error)
	Eval(context.Context, *EvalRequest) (*EvalResponse, error)
}

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 SubjectReference

type SubjectReference struct {
	Title      *string           `protobuf:"bytes,1,opt,name=Title,proto3,oneof" json:"Title,omitempty"`
	Remarks    *string           `protobuf:"bytes,2,opt,name=Remarks,proto3,oneof" json:"Remarks,omitempty"`
	Type       string            `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"`
	Attributes map[string]string `` /* 147-byte string literal not displayed */
	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 (*SubjectReference) Descriptor deprecated

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

Deprecated: Use SubjectReference.ProtoReflect.Descriptor instead.

func (*SubjectReference) GetAttributes added in v0.1.0

func (x *SubjectReference) GetAttributes() map[string]string
func (x *SubjectReference) GetLinks() []*Link

func (*SubjectReference) GetProps

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

func (*SubjectReference) GetRemarks

func (x *SubjectReference) GetRemarks() string

func (*SubjectReference) GetTitle

func (x *SubjectReference) GetTitle() string

func (*SubjectReference) GetType

func (x *SubjectReference) GetType() string

func (*SubjectReference) ProtoMessage

func (*SubjectReference) ProtoMessage()

func (*SubjectReference) ProtoReflect

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

func (*SubjectReference) Reset

func (x *SubjectReference) Reset()

func (*SubjectReference) String

func (x *SubjectReference) String() string

type ThreatId

type ThreatId struct {
	ID     string  `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	System string  `protobuf:"bytes,2,opt,name=System,proto3" json:"System,omitempty"`
	Href   *string `protobuf:"bytes,3,opt,name=Href,proto3,oneof" json:"Href,omitempty"`
	// contains filtered or unexported fields
}

func (*ThreatId) Descriptor deprecated

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

Deprecated: Use ThreatId.ProtoReflect.Descriptor instead.

func (*ThreatId) GetHref

func (x *ThreatId) GetHref() string

func (*ThreatId) GetID added in v0.1.0

func (x *ThreatId) GetID() string

func (*ThreatId) GetSystem

func (x *ThreatId) GetSystem() string

func (*ThreatId) ProtoMessage

func (*ThreatId) ProtoMessage()

func (*ThreatId) ProtoReflect

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

func (*ThreatId) Reset

func (x *ThreatId) Reset()

func (*ThreatId) String

func (x *ThreatId) String() string

type UnimplementedApiHelperServer added in v0.0.13

type UnimplementedApiHelperServer struct {
}

UnimplementedApiHelperServer should be embedded to have forward compatible implementations.

func (UnimplementedApiHelperServer) CreateFindings added in v0.1.1

func (UnimplementedApiHelperServer) CreateObservations added in v0.1.1

type UnimplementedRunnerServer

type UnimplementedRunnerServer struct {
}

UnimplementedRunnerServer should be embedded to have forward compatible implementations.

func (UnimplementedRunnerServer) Configure

func (UnimplementedRunnerServer) Eval

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.

Jump to

Keyboard shortcuts

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