scan

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoType

type RepoType string

RepoType defines the AWS data repository types supported (e.g. RDS, Redshift, DynamoDB, etc).

const (
	// Repo types
	RepoTypeRDS      RepoType = "TYPE_RDS"
	RepoTypeRedshift RepoType = "TYPE_REDSHIFT"
	RepoTypeDynamoDB RepoType = "TYPE_DYNAMODB"
	RepoTypeS3       RepoType = "TYPE_S3"
)

type Repository

type Repository struct {
	Id         string
	Name       string
	Type       RepoType
	CreatedAt  time.Time
	Tags       []string
	Properties any
}

Repository represents a scanned data repository.

type ScanError added in v0.1.1

type ScanError struct {
	Errs []error
}

ScanError is an error type that represents a collection of errors that occurred during the scanning process.

func (*ScanError) Error added in v0.1.1

func (e *ScanError) Error() string

func (*ScanError) Unwrap added in v0.1.1

func (e *ScanError) Unwrap() []error

type ScanResults

type ScanResults struct {
	Repositories []Repository
}

ScanResults represents the results of a repository scan, including all the data repositories that were scanned.

type Scanner

type Scanner interface {
	Scan(ctx context.Context) (*ScanResults, error)
}

Scanner is an interface that should be implemented for a specific cloud provider (e.g. AWS, GCP, etc). It defines the Scan method responsible for scanning the existing data repositories of the corresponding cloud provider environment.

Jump to

Keyboard shortcuts

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