proto

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Runner_Configure_FullMethodName = "/proto.Runner/Configure"
	Runner_Eval_FullMethodName      = "/proto.Runner/Eval"
)
View Source
const (
	ApiHelper_CreateEvidence_FullMethodName = "/proto.ApiHelper/CreateEvidence"
)

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",
	}
	SubjectType_value = map[string]int32{
		"SUBJECT_TYPE_INVENTORY_ITEM": 0,
		"SUBJECT_TYPE_COMPONENT":      1,
	}
)

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,
		},
	},
	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 {
	CreateEvidence(ctx context.Context, in *CreateEvidenceRequest, opts ...grpc.CallOption) (*CreateEvidenceResponse, 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 {
	CreateEvidence(context.Context, *CreateEvidenceRequest) (*CreateEvidenceResponse, error)
}

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 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 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 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 SubjectType

type SubjectType int32
const (
	SubjectType_SUBJECT_TYPE_INVENTORY_ITEM SubjectType = 0
	SubjectType_SUBJECT_TYPE_COMPONENT      SubjectType = 1
)

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 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

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