Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterApiHelperServer(s grpc.ServiceRegistrar, srv ApiHelperServer)
- func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer)
- type Activity
- func (*Activity) Descriptor() ([]byte, []int)deprecated
- func (x *Activity) GetDescription() string
- func (x *Activity) GetLinks() []*Link
- func (x *Activity) GetProps() []*Property
- func (x *Activity) GetRemarks() string
- func (x *Activity) GetSteps() []*Step
- func (x *Activity) GetTitle() string
- func (x *Activity) GetUUID() string
- func (*Activity) ProtoMessage()
- func (x *Activity) ProtoReflect() protoreflect.Message
- func (x *Activity) Reset()
- func (x *Activity) String() string
- type ApiHelperClient
- type ApiHelperServer
- type Component
- func (*Component) Descriptor() ([]byte, []int)deprecated
- func (x *Component) GetDescription() string
- func (x *Component) GetIdentifier() string
- func (x *Component) GetLinks() []*Link
- func (x *Component) GetProps() []*Property
- func (x *Component) GetProtocols() []*Protocol
- func (x *Component) GetPurpose() string
- func (x *Component) GetRemarks() string
- func (x *Component) GetTitle() string
- func (x *Component) GetType() string
- func (*Component) ProtoMessage()
- func (x *Component) ProtoReflect() protoreflect.Message
- func (x *Component) Reset()
- func (x *Component) String() string
- type ConfigureRequest
- func (*ConfigureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureRequest) GetConfig() map[string]string
- func (*ConfigureRequest) ProtoMessage()
- func (x *ConfigureRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureRequest) Reset()
- func (x *ConfigureRequest) String() string
- type ConfigureResponse
- type CreateEvidenceRequest
- func (*CreateEvidenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEvidenceRequest) GetEvidence() []*Evidence
- func (*CreateEvidenceRequest) ProtoMessage()
- func (x *CreateEvidenceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateEvidenceRequest) Reset()
- func (x *CreateEvidenceRequest) String() string
- type CreateEvidenceResponse
- type EvalRequest
- func (*EvalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EvalRequest) GetApiServer() uint32
- func (x *EvalRequest) GetPolicyPaths() []string
- func (*EvalRequest) ProtoMessage()
- func (x *EvalRequest) ProtoReflect() protoreflect.Message
- func (x *EvalRequest) Reset()
- func (x *EvalRequest) String() string
- type EvalResponse
- type Evidence
- func (*Evidence) Descriptor() ([]byte, []int)deprecated
- func (x *Evidence) GetActivities() []*Activity
- func (x *Evidence) GetComponents() []*Component
- func (x *Evidence) GetDescription() string
- func (x *Evidence) GetEnd() *timestamppb.Timestamp
- func (x *Evidence) GetExpires() *timestamppb.Timestamp
- func (x *Evidence) GetInventoryItems() []*InventoryItem
- func (x *Evidence) GetLabels() map[string]string
- func (x *Evidence) GetLinks() []*Link
- func (x *Evidence) GetOrigins() []*Origin
- func (x *Evidence) GetProps() []*Property
- func (x *Evidence) GetRemarks() string
- func (x *Evidence) GetStart() *timestamppb.Timestamp
- func (x *Evidence) GetStatus() *EvidenceStatus
- func (x *Evidence) GetSubjects() []*Subject
- func (x *Evidence) GetTitle() string
- func (x *Evidence) GetUUID() string
- func (*Evidence) ProtoMessage()
- func (x *Evidence) ProtoReflect() protoreflect.Message
- func (x *Evidence) Reset()
- func (x *Evidence) String() string
- type EvidenceStatus
- func (*EvidenceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *EvidenceStatus) GetReason() string
- func (x *EvidenceStatus) GetRemarks() string
- func (x *EvidenceStatus) GetState() EvidenceStatusState
- func (*EvidenceStatus) ProtoMessage()
- func (x *EvidenceStatus) ProtoReflect() protoreflect.Message
- func (x *EvidenceStatus) Reset()
- func (x *EvidenceStatus) String() string
- type EvidenceStatusState
- func (EvidenceStatusState) Descriptor() protoreflect.EnumDescriptor
- func (x EvidenceStatusState) Enum() *EvidenceStatusState
- func (EvidenceStatusState) EnumDescriptor() ([]byte, []int)deprecated
- func (x EvidenceStatusState) Number() protoreflect.EnumNumber
- func (x EvidenceStatusState) String() string
- func (EvidenceStatusState) Type() protoreflect.EnumType
- type ExecutionStatus
- func (ExecutionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ExecutionStatus) Enum() *ExecutionStatus
- func (ExecutionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExecutionStatus) Number() protoreflect.EnumNumber
- func (x ExecutionStatus) String() string
- func (ExecutionStatus) Type() protoreflect.EnumType
- type InventoryItem
- func (*InventoryItem) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryItem) GetDescription() string
- func (x *InventoryItem) GetIdentifier() string
- func (x *InventoryItem) GetImplementedComponents() []*InventoryItemImplementedComponent
- func (x *InventoryItem) GetLinks() []*Link
- func (x *InventoryItem) GetProps() []*Property
- func (x *InventoryItem) GetRemarks() string
- func (x *InventoryItem) GetTitle() string
- func (x *InventoryItem) GetType() string
- func (*InventoryItem) ProtoMessage()
- func (x *InventoryItem) ProtoReflect() protoreflect.Message
- func (x *InventoryItem) Reset()
- func (x *InventoryItem) String() string
- type InventoryItemImplementedComponent
- func (*InventoryItemImplementedComponent) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryItemImplementedComponent) GetIdentifier() string
- func (*InventoryItemImplementedComponent) ProtoMessage()
- func (x *InventoryItemImplementedComponent) ProtoReflect() protoreflect.Message
- func (x *InventoryItemImplementedComponent) Reset()
- func (x *InventoryItemImplementedComponent) String() string
- type Link
- func (*Link) Descriptor() ([]byte, []int)deprecated
- func (x *Link) GetHref() string
- func (x *Link) GetMediaType() string
- func (x *Link) GetRel() string
- func (x *Link) GetResourceFragment() string
- func (x *Link) GetText() string
- func (*Link) ProtoMessage()
- func (x *Link) ProtoReflect() protoreflect.Message
- func (x *Link) Reset()
- func (x *Link) String() string
- type Origin
- type OriginActor
- func (*OriginActor) Descriptor() ([]byte, []int)deprecated
- func (x *OriginActor) GetLinks() []*Link
- func (x *OriginActor) GetProps() []*Property
- func (x *OriginActor) GetRoleId() string
- func (x *OriginActor) GetTitle() string
- func (x *OriginActor) GetType() string
- func (x *OriginActor) GetUUID() string
- func (*OriginActor) ProtoMessage()
- func (x *OriginActor) ProtoReflect() protoreflect.Message
- func (x *OriginActor) Reset()
- func (x *OriginActor) String() string
- type PortRange
- func (*PortRange) Descriptor() ([]byte, []int)deprecated
- func (x *PortRange) GetEnd() int32
- func (x *PortRange) GetStart() int32
- func (x *PortRange) GetTransport() string
- func (*PortRange) ProtoMessage()
- func (x *PortRange) ProtoReflect() protoreflect.Message
- func (x *PortRange) Reset()
- func (x *PortRange) String() string
- type Property
- func (*Property) Descriptor() ([]byte, []int)deprecated
- func (x *Property) GetClass() string
- func (x *Property) GetGroup() string
- func (x *Property) GetName() string
- func (x *Property) GetNs() string
- func (x *Property) GetRemarks() string
- func (x *Property) GetUuid() string
- func (x *Property) GetValue() string
- func (*Property) ProtoMessage()
- func (x *Property) ProtoReflect() protoreflect.Message
- func (x *Property) Reset()
- func (x *Property) String() string
- type Protocol
- func (*Protocol) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol) GetName() string
- func (x *Protocol) GetPortRanges() []*PortRange
- func (x *Protocol) GetTitle() string
- func (x *Protocol) GetUUID() string
- func (*Protocol) ProtoMessage()
- func (x *Protocol) ProtoReflect() protoreflect.Message
- func (x *Protocol) Reset()
- func (x *Protocol) String() string
- type RunnerClient
- type RunnerServer
- type Step
- func (*Step) Descriptor() ([]byte, []int)deprecated
- func (x *Step) GetDescription() string
- func (x *Step) GetLinks() []*Link
- func (x *Step) GetProps() []*Property
- func (x *Step) GetRemarks() string
- func (x *Step) GetTitle() string
- func (x *Step) GetUUID() string
- func (*Step) ProtoMessage()
- func (x *Step) ProtoReflect() protoreflect.Message
- func (x *Step) Reset()
- func (x *Step) String() string
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)deprecated
- func (x *Subject) GetDescription() string
- func (x *Subject) GetIdentifier() string
- func (x *Subject) GetLinks() []*Link
- func (x *Subject) GetProps() []*Property
- func (x *Subject) GetRemarks() string
- func (x *Subject) GetType() SubjectType
- func (*Subject) ProtoMessage()
- func (x *Subject) ProtoReflect() protoreflect.Message
- func (x *Subject) Reset()
- func (x *Subject) String() string
- type SubjectType
- func (SubjectType) Descriptor() protoreflect.EnumDescriptor
- func (x SubjectType) Enum() *SubjectType
- func (SubjectType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubjectType) Number() protoreflect.EnumNumber
- func (x SubjectType) String() string
- func (SubjectType) Type() protoreflect.EnumType
- type UnimplementedApiHelperServer
- type UnimplementedRunnerServer
- type UnsafeApiHelperServer
- type UnsafeRunnerServer
Constants ¶
const ( Runner_Configure_FullMethodName = "/proto.Runner/Configure" Runner_Eval_FullMethodName = "/proto.Runner/Eval" )
const (
ApiHelper_CreateEvidence_FullMethodName = "/proto.ApiHelper/CreateEvidence"
)
Variables ¶
var ( ExecutionStatus_name = map[int32]string{ 0: "SUCCESS", 1: "FAILURE", } ExecutionStatus_value = map[string]int32{ "SUCCESS": 0, "FAILURE": 1, } )
Enum value maps for ExecutionStatus.
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.
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.
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)
var File_runner_proto_results_proto protoreflect.FileDescriptor
var File_runner_proto_runner_proto protoreflect.FileDescriptor
var File_runner_proto_types_proto protoreflect.FileDescriptor
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) GetDescription ¶
func (*Activity) GetRemarks ¶ added in v0.1.0
func (*Activity) ProtoMessage ¶
func (*Activity) ProtoMessage()
func (*Activity) ProtoReflect ¶
func (x *Activity) ProtoReflect() protoreflect.Message
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) GetDescription ¶ added in v0.2.0
func (*Component) GetIdentifier ¶ added in v0.2.0
func (*Component) GetProtocols ¶ added in v0.2.0
func (*Component) GetPurpose ¶ added in v0.2.0
func (*Component) GetRemarks ¶ added in v0.2.0
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
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) GetActivities ¶ added in v0.2.0
func (*Evidence) GetComponents ¶ added in v0.2.0
func (*Evidence) GetDescription ¶
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) GetOrigins ¶ added in v0.2.0
func (*Evidence) GetRemarks ¶
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 (*Evidence) ProtoMessage ¶
func (*Evidence) ProtoMessage()
func (*Evidence) ProtoReflect ¶
func (x *Evidence) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (EvidenceStatusState) Enum ¶ added in v0.2.0
func (x EvidenceStatusState) Enum() *EvidenceStatusState
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 (x EvidenceStatusState) Number() protoreflect.EnumNumber
func (EvidenceStatusState) String ¶ added in v0.2.0
func (x EvidenceStatusState) String() string
func (EvidenceStatusState) Type ¶ added in v0.2.0
func (EvidenceStatusState) Type() protoreflect.EnumType
type ExecutionStatus ¶
type ExecutionStatus int32
const ( ExecutionStatus_SUCCESS ExecutionStatus = 0 ExecutionStatus_FAILURE ExecutionStatus = 1 )
func (ExecutionStatus) Descriptor ¶
func (ExecutionStatus) Descriptor() protoreflect.EnumDescriptor
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 (x ExecutionStatus) Number() protoreflect.EnumNumber
func (ExecutionStatus) String ¶
func (x ExecutionStatus) String() string
func (ExecutionStatus) Type ¶
func (ExecutionStatus) Type() protoreflect.EnumType
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 (*InventoryItem) GetLinks ¶
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 (x *InventoryItemImplementedComponent) ProtoReflect() protoreflect.Message
func (*InventoryItemImplementedComponent) Reset ¶ added in v0.2.0
func (x *InventoryItemImplementedComponent) Reset()
func (*InventoryItemImplementedComponent) String ¶ added in v0.2.0
func (x *InventoryItemImplementedComponent) String() string
type Link ¶
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) GetMediaType ¶
func (*Link) GetResourceFragment ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
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) GetActors ¶
func (x *Origin) GetActors() []*OriginActor
func (*Origin) ProtoMessage ¶
func (*Origin) ProtoMessage()
func (*Origin) ProtoReflect ¶
func (x *Origin) ProtoReflect() protoreflect.Message
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 (*OriginActor) GetLinks ¶
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) GetTransport ¶
func (*PortRange) ProtoMessage ¶
func (*PortRange) ProtoMessage()
func (*PortRange) ProtoReflect ¶
func (x *PortRange) ProtoReflect() protoreflect.Message
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) GetRemarks ¶
func (*Property) ProtoMessage ¶
func (*Property) ProtoMessage()
func (*Property) ProtoReflect ¶
func (x *Property) ProtoReflect() protoreflect.Message
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) GetPortRanges ¶
func (*Protocol) ProtoMessage ¶
func (*Protocol) ProtoMessage()
func (*Protocol) ProtoReflect ¶
func (x *Protocol) ProtoReflect() protoreflect.Message
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) GetDescription ¶
func (*Step) GetRemarks ¶ added in v0.1.0
func (*Step) ProtoMessage ¶
func (*Step) ProtoMessage()
func (*Step) ProtoReflect ¶
func (x *Step) ProtoReflect() protoreflect.Message
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) GetDescription ¶ added in v0.2.0
func (*Subject) GetIdentifier ¶ added in v0.2.0
func (*Subject) GetRemarks ¶ added in v0.2.0
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
type SubjectType ¶
type SubjectType int32
const ( SubjectType_SUBJECT_TYPE_INVENTORY_ITEM SubjectType = 0 SubjectType_SUBJECT_TYPE_COMPONENT SubjectType = 1 )
func (SubjectType) Descriptor ¶
func (SubjectType) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (SubjectType) Type() protoreflect.EnumType
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) CreateEvidence(context.Context, *CreateEvidenceRequest) (*CreateEvidenceResponse, error)
type UnimplementedRunnerServer ¶
type UnimplementedRunnerServer struct {
}
UnimplementedRunnerServer should be embedded to have forward compatible implementations.
func (UnimplementedRunnerServer) Configure ¶
func (UnimplementedRunnerServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error)
func (UnimplementedRunnerServer) Eval ¶
func (UnimplementedRunnerServer) Eval(context.Context, *EvalRequest) (*EvalResponse, error)
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.