graph

package
v0.0.0-...-ec844c3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Copyright 2025 Specter Ops, Inc.

Licensed under the Apache License, Version 2.0 you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	Name  = "graph"
	Usage = "Ingest valid collection files, analyzes ingested nodes and edges, and transform graph data into a generic graph file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func Create

func Create(env environment.Environment, service GraphService) *Command

Create new instance of command to capture given environment

func (*Command) Name

func (s *Command) Name() string

Name of command

func (*Command) Parse

func (s *Command) Parse() error

Parse command flags

func (*Command) Run

func (s *Command) Run() error

Run generate command

func (*Command) Usage

func (s *Command) Usage() string

Usage of command

type CommunityGraphService

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

func NewCommunityGraphService

func NewCommunityGraphService() (*CommunityGraphService, error)

func (*CommunityGraphService) Ingest

func (*CommunityGraphService) InitializeService

func (s *CommunityGraphService) InitializeService(ctx context.Context, connection string, graphDB graph.Database) error

func (*CommunityGraphService) RunAnalysis

func (s *CommunityGraphService) RunAnalysis(ctx context.Context, graphDB graph.Database) error

func (*CommunityGraphService) TeardownService

func (s *CommunityGraphService) TeardownService(ctx context.Context)

type GraphService

type GraphService interface {
	TeardownService(context.Context)
	InitializeService(context.Context, string, graph.Database) error
	Ingest(context.Context, *graphify.IngestContext, io.ReadSeeker) error
	RunAnalysis(context.Context, graph.Database) error
}

Jump to

Keyboard shortcuts

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