datasource

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_datasource_entity_proto protoreflect.FileDescriptor
View Source
var File_datasource_service_proto protoreflect.FileDescriptor

Functions

func RegisterDataSourceServiceServer

func RegisterDataSourceServiceServer(s *grpc.Server, srv DataSourceServiceServer)

Types

type AnalyzeAttackFlowRequest added in v0.9.0

type AnalyzeAttackFlowRequest struct {
	ProjectId    uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	CloudType    string `protobuf:"bytes,3,opt,name=cloud_type,json=cloudType,proto3" json:"cloud_type,omitempty"`
	CloudId      string `protobuf:"bytes,4,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalyzeAttackFlowRequest) Descriptor deprecated added in v0.9.0

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

Deprecated: Use AnalyzeAttackFlowRequest.ProtoReflect.Descriptor instead.

func (*AnalyzeAttackFlowRequest) GetCloudId added in v0.9.0

func (x *AnalyzeAttackFlowRequest) GetCloudId() string

func (*AnalyzeAttackFlowRequest) GetCloudType added in v0.9.0

func (x *AnalyzeAttackFlowRequest) GetCloudType() string

func (*AnalyzeAttackFlowRequest) GetProjectId added in v0.9.0

func (x *AnalyzeAttackFlowRequest) GetProjectId() uint32

func (*AnalyzeAttackFlowRequest) GetResourceName added in v0.9.0

func (x *AnalyzeAttackFlowRequest) GetResourceName() string

func (*AnalyzeAttackFlowRequest) ProtoMessage added in v0.9.0

func (*AnalyzeAttackFlowRequest) ProtoMessage()

func (*AnalyzeAttackFlowRequest) ProtoReflect added in v0.9.0

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

func (*AnalyzeAttackFlowRequest) Reset added in v0.9.0

func (x *AnalyzeAttackFlowRequest) Reset()

func (*AnalyzeAttackFlowRequest) String added in v0.9.0

func (x *AnalyzeAttackFlowRequest) String() string

func (*AnalyzeAttackFlowRequest) Validate added in v0.9.0

func (m *AnalyzeAttackFlowRequest) Validate() error

Validate checks the field values on AnalyzeAttackFlowRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AnalyzeAttackFlowRequest) ValidateAll added in v0.9.0

func (m *AnalyzeAttackFlowRequest) ValidateAll() error

ValidateAll checks the field values on AnalyzeAttackFlowRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AnalyzeAttackFlowRequestMultiError, or nil if none found.

type AnalyzeAttackFlowRequestMultiError added in v0.9.0

type AnalyzeAttackFlowRequestMultiError []error

AnalyzeAttackFlowRequestMultiError is an error wrapping multiple validation errors returned by AnalyzeAttackFlowRequest.ValidateAll() if the designated constraints aren't met.

func (AnalyzeAttackFlowRequestMultiError) AllErrors added in v0.9.0

func (m AnalyzeAttackFlowRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AnalyzeAttackFlowRequestMultiError) Error added in v0.9.0

Error returns a concatenation of all the error messages it wraps.

type AnalyzeAttackFlowRequestValidationError added in v0.9.0

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

AnalyzeAttackFlowRequestValidationError is the validation error returned by AnalyzeAttackFlowRequest.Validate if the designated constraints aren't met.

func (AnalyzeAttackFlowRequestValidationError) Cause added in v0.9.0

Cause function returns cause value.

func (AnalyzeAttackFlowRequestValidationError) Error added in v0.9.0

Error satisfies the builtin error interface

func (AnalyzeAttackFlowRequestValidationError) ErrorName added in v0.9.0

ErrorName returns error name.

func (AnalyzeAttackFlowRequestValidationError) Field added in v0.9.0

Field function returns field value.

func (AnalyzeAttackFlowRequestValidationError) Key added in v0.9.0

Key function returns key value.

func (AnalyzeAttackFlowRequestValidationError) Reason added in v0.9.0

Reason function returns reason value.

type AnalyzeAttackFlowResponse added in v0.9.0

type AnalyzeAttackFlowResponse struct {
	Nodes []*Resource             `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Edges []*ResourceRelationship `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalyzeAttackFlowResponse) Descriptor deprecated added in v0.9.0

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

Deprecated: Use AnalyzeAttackFlowResponse.ProtoReflect.Descriptor instead.

func (*AnalyzeAttackFlowResponse) GetEdges added in v0.9.0

func (*AnalyzeAttackFlowResponse) GetNodes added in v0.9.0

func (x *AnalyzeAttackFlowResponse) GetNodes() []*Resource

func (*AnalyzeAttackFlowResponse) ProtoMessage added in v0.9.0

func (*AnalyzeAttackFlowResponse) ProtoMessage()

func (*AnalyzeAttackFlowResponse) ProtoReflect added in v0.9.0

func (*AnalyzeAttackFlowResponse) Reset added in v0.9.0

func (x *AnalyzeAttackFlowResponse) Reset()

func (*AnalyzeAttackFlowResponse) String added in v0.9.0

func (x *AnalyzeAttackFlowResponse) String() string

func (*AnalyzeAttackFlowResponse) Validate added in v0.9.0

func (m *AnalyzeAttackFlowResponse) Validate() error

Validate checks the field values on AnalyzeAttackFlowResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AnalyzeAttackFlowResponse) ValidateAll added in v0.9.0

func (m *AnalyzeAttackFlowResponse) ValidateAll() error

ValidateAll checks the field values on AnalyzeAttackFlowResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AnalyzeAttackFlowResponseMultiError, or nil if none found.

type AnalyzeAttackFlowResponseMultiError added in v0.9.0

type AnalyzeAttackFlowResponseMultiError []error

AnalyzeAttackFlowResponseMultiError is an error wrapping multiple validation errors returned by AnalyzeAttackFlowResponse.ValidateAll() if the designated constraints aren't met.

func (AnalyzeAttackFlowResponseMultiError) AllErrors added in v0.9.0

AllErrors returns a list of validation violation errors.

func (AnalyzeAttackFlowResponseMultiError) Error added in v0.9.0

Error returns a concatenation of all the error messages it wraps.

type AnalyzeAttackFlowResponseValidationError added in v0.9.0

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

AnalyzeAttackFlowResponseValidationError is the validation error returned by AnalyzeAttackFlowResponse.Validate if the designated constraints aren't met.

func (AnalyzeAttackFlowResponseValidationError) Cause added in v0.9.0

Cause function returns cause value.

func (AnalyzeAttackFlowResponseValidationError) Error added in v0.9.0

Error satisfies the builtin error interface

func (AnalyzeAttackFlowResponseValidationError) ErrorName added in v0.9.0

ErrorName returns error name.

func (AnalyzeAttackFlowResponseValidationError) Field added in v0.9.0

Field function returns field value.

func (AnalyzeAttackFlowResponseValidationError) Key added in v0.9.0

Key function returns key value.

func (AnalyzeAttackFlowResponseValidationError) Reason added in v0.9.0

Reason function returns reason value.

type DataSourceServiceClient

type DataSourceServiceClient interface {
	CleanDataSource(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AnalyzeAttackFlow(ctx context.Context, in *AnalyzeAttackFlowRequest, opts ...grpc.CallOption) (*AnalyzeAttackFlowResponse, error)
	NotifyScanError(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

DataSourceServiceClient is the client API for DataSourceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type DataSourceServiceServer

type DataSourceServiceServer interface {
	CleanDataSource(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	AnalyzeAttackFlow(context.Context, *AnalyzeAttackFlowRequest) (*AnalyzeAttackFlowResponse, error)
	NotifyScanError(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
}

DataSourceServiceServer is the server API for DataSourceService service.

type Resource added in v0.9.0

type Resource struct {
	ResourceId   uint64 `protobuf:"varint,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	ShortName    string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
	CloudType    string `protobuf:"bytes,4,opt,name=cloud_type,json=cloudType,proto3" json:"cloud_type,omitempty"`
	CloudId      string `protobuf:"bytes,5,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
	Service      string `protobuf:"bytes,6,opt,name=service,proto3" json:"service,omitempty"`
	Region       string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"`
	Layer        string `protobuf:"bytes,8,opt,name=layer,proto3" json:"layer,omitempty"`
	MetaData     string `protobuf:"bytes,9,opt,name=meta_data,json=metaData,proto3" json:"meta_data,omitempty"`
	// contains filtered or unexported fields
}

Resource

func (*Resource) Descriptor deprecated added in v0.9.0

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetCloudId added in v0.9.0

func (x *Resource) GetCloudId() string

func (*Resource) GetCloudType added in v0.9.0

func (x *Resource) GetCloudType() string

func (*Resource) GetLayer added in v0.9.0

func (x *Resource) GetLayer() string

func (*Resource) GetMetaData added in v0.9.0

func (x *Resource) GetMetaData() string

func (*Resource) GetRegion added in v0.9.0

func (x *Resource) GetRegion() string

func (*Resource) GetResourceId added in v0.9.0

func (x *Resource) GetResourceId() uint64

func (*Resource) GetResourceName added in v0.9.0

func (x *Resource) GetResourceName() string

func (*Resource) GetService added in v0.9.0

func (x *Resource) GetService() string

func (*Resource) GetShortName added in v0.9.0

func (x *Resource) GetShortName() string

func (*Resource) ProtoMessage added in v0.9.0

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect added in v0.9.0

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

func (*Resource) Reset added in v0.9.0

func (x *Resource) Reset()

func (*Resource) String added in v0.9.0

func (x *Resource) String() string

func (*Resource) Validate added in v0.9.0

func (m *Resource) Validate() error

Validate checks the field values on Resource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Resource) ValidateAll added in v0.9.0

func (m *Resource) ValidateAll() error

ValidateAll checks the field values on Resource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourceMultiError, or nil if none found.

type ResourceMultiError added in v0.9.0

type ResourceMultiError []error

ResourceMultiError is an error wrapping multiple validation errors returned by Resource.ValidateAll() if the designated constraints aren't met.

func (ResourceMultiError) AllErrors added in v0.9.0

func (m ResourceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceMultiError) Error added in v0.9.0

func (m ResourceMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ResourceRelationship added in v0.9.0

type ResourceRelationship struct {
	RelationId         string `protobuf:"bytes,1,opt,name=relation_id,json=relationId,proto3" json:"relation_id,omitempty"`
	RelationLabel      string `protobuf:"bytes,2,opt,name=relation_label,json=relationLabel,proto3" json:"relation_label,omitempty"`
	SourceResourceName string `protobuf:"bytes,3,opt,name=source_resource_name,json=sourceResourceName,proto3" json:"source_resource_name,omitempty"`
	TargetResourceName string `protobuf:"bytes,4,opt,name=target_resource_name,json=targetResourceName,proto3" json:"target_resource_name,omitempty"`
	// contains filtered or unexported fields
}

ResourceRelationship

func (*ResourceRelationship) Descriptor deprecated added in v0.9.0

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

Deprecated: Use ResourceRelationship.ProtoReflect.Descriptor instead.

func (*ResourceRelationship) GetRelationId added in v0.9.0

func (x *ResourceRelationship) GetRelationId() string

func (*ResourceRelationship) GetRelationLabel added in v0.9.0

func (x *ResourceRelationship) GetRelationLabel() string

func (*ResourceRelationship) GetSourceResourceName added in v0.9.0

func (x *ResourceRelationship) GetSourceResourceName() string

func (*ResourceRelationship) GetTargetResourceName added in v0.9.0

func (x *ResourceRelationship) GetTargetResourceName() string

func (*ResourceRelationship) ProtoMessage added in v0.9.0

func (*ResourceRelationship) ProtoMessage()

func (*ResourceRelationship) ProtoReflect added in v0.9.0

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

func (*ResourceRelationship) Reset added in v0.9.0

func (x *ResourceRelationship) Reset()

func (*ResourceRelationship) String added in v0.9.0

func (x *ResourceRelationship) String() string

func (*ResourceRelationship) Validate added in v0.9.0

func (m *ResourceRelationship) Validate() error

Validate checks the field values on ResourceRelationship with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResourceRelationship) ValidateAll added in v0.9.0

func (m *ResourceRelationship) ValidateAll() error

ValidateAll checks the field values on ResourceRelationship with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourceRelationshipMultiError, or nil if none found.

type ResourceRelationshipMultiError added in v0.9.0

type ResourceRelationshipMultiError []error

ResourceRelationshipMultiError is an error wrapping multiple validation errors returned by ResourceRelationship.ValidateAll() if the designated constraints aren't met.

func (ResourceRelationshipMultiError) AllErrors added in v0.9.0

func (m ResourceRelationshipMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceRelationshipMultiError) Error added in v0.9.0

Error returns a concatenation of all the error messages it wraps.

type ResourceRelationshipValidationError added in v0.9.0

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

ResourceRelationshipValidationError is the validation error returned by ResourceRelationship.Validate if the designated constraints aren't met.

func (ResourceRelationshipValidationError) Cause added in v0.9.0

Cause function returns cause value.

func (ResourceRelationshipValidationError) Error added in v0.9.0

Error satisfies the builtin error interface

func (ResourceRelationshipValidationError) ErrorName added in v0.9.0

ErrorName returns error name.

func (ResourceRelationshipValidationError) Field added in v0.9.0

Field function returns field value.

func (ResourceRelationshipValidationError) Key added in v0.9.0

Key function returns key value.

func (ResourceRelationshipValidationError) Reason added in v0.9.0

Reason function returns reason value.

type ResourceValidationError added in v0.9.0

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

ResourceValidationError is the validation error returned by Resource.Validate if the designated constraints aren't met.

func (ResourceValidationError) Cause added in v0.9.0

func (e ResourceValidationError) Cause() error

Cause function returns cause value.

func (ResourceValidationError) Error added in v0.9.0

func (e ResourceValidationError) Error() string

Error satisfies the builtin error interface

func (ResourceValidationError) ErrorName added in v0.9.0

func (e ResourceValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceValidationError) Field added in v0.9.0

func (e ResourceValidationError) Field() string

Field function returns field value.

func (ResourceValidationError) Key added in v0.9.0

func (e ResourceValidationError) Key() bool

Key function returns key value.

func (ResourceValidationError) Reason added in v0.9.0

func (e ResourceValidationError) Reason() string

Reason function returns reason value.

type UnimplementedDataSourceServiceServer

type UnimplementedDataSourceServiceServer struct {
}

UnimplementedDataSourceServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDataSourceServiceServer) AnalyzeAttackFlow added in v0.9.0

func (*UnimplementedDataSourceServiceServer) CleanDataSource

func (*UnimplementedDataSourceServiceServer) NotifyScanError added in v0.9.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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