Documentation
¶
Overview ¶
Package scanner scans targets
Package scanner scans targets ¶
Package scanner scans targets ¶
Package scanner scans targets ¶
Package scanner scans targets ¶
Package scanner scans targets ¶
Package scanner scans targets ¶
Package scanner scans targets
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSECR ¶
type AWSECR struct {
SourceName string
ECRClient EcrClient
Region string
AccountID string
ResourceTaggingService util.ResourceTaggingServiceClient
}
AWSECR AWS ECR source
type AWSS3 ¶
type AWSS3 struct {
SourceName string
S3Client AWSS3Client
Region string
}
AWSS3 AWS S3 source
type AWSS3Client ¶
type AWSS3Client interface {
ListBuckets(listBucketInput *s3.ListBucketsInput) (*s3.ListBucketsOutput, error)
GetBucketTagging(bucketTaggingInput *s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error)
}
AWSS3Client build aws client
type Ec2Client ¶
type Ec2Client interface {
DescribeInstances(ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)
}
Ec2Client build aws client
type EcrClient ¶
type EcrClient interface {
DescribeRepositories(context.Context, *ecr.DescribeRepositoriesInput, ...func(options *ecr.Options)) (*ecr.DescribeRepositoriesOutput, error)
GetRepositoryPolicy(ctx context.Context, params *ecr.GetRepositoryPolicyInput, optFns ...func(*ecr.Options)) (*ecr.GetRepositoryPolicyOutput, error)
DescribeImages(context.Context, *ecr.DescribeImagesInput, ...func(*ecr.Options)) (*ecr.DescribeImagesOutput, error)
}
EcrClient build aws client
type FsScanner ¶
type FsScanner struct {
// contains filtered or unexported fields
}
FsScanner store configuration for file system scanner
func NewFsScanner ¶
NewFsScanner construct new file system scanner
type GitHubClient ¶
type GitHubClient interface {
ListRepositories(ctx context.Context, user string, opts *github.RepositoryListOptions) ([]*github.Repository, error)
}
GitHubClient present interface to build GitHub client
type GitHubRepositoryClient ¶
type GitHubRepositoryClient struct {
// contains filtered or unexported fields
}
GitHubRepositoryClient github repository client
func NewGitHubRepositoryClient ¶
func NewGitHubRepositoryClient(client *github.Client) *GitHubRepositoryClient
NewGitHubRepositoryClient construct new GitHub repository client
func (*GitHubRepositoryClient) ListRepositories ¶
func (c *GitHubRepositoryClient) ListRepositories(ctx context.Context, user string, opts *github.RepositoryListOptions) ([]*github.Repository, error)
ListRepositories provide list of repositories from GitHub
type GitHubRepositoryScanner ¶
type GitHubRepositoryScanner struct {
// contains filtered or unexported fields
}
GitHubRepositoryScanner GitHub repository scanner
func NewGitHubRepositoryScanner ¶
func NewGitHubRepositoryScanner(name string, ghClient GitHubClient, user string) *GitHubRepositoryScanner
NewGitHubRepositoryScanner construct a new GitHub repository scanner
type RdsClient ¶
type RdsClient interface {
DescribeDBInstancesPages(*rds.DescribeDBInstancesInput, func(*rds.DescribeDBInstancesOutput, bool) bool) error
ListTagsForResource(*rds.ListTagsForResourceInput) (*rds.ListTagsForResourceOutput, error)
}
RdsClient build aws client