s3

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Adapter

type S3Adapter struct {
	Config         *S3Config
	Role           types.AdapterRole // "input" or "output" adapter type
	ProcessingMode types.ProcessingMode
	Fetcher        SBOMFetcher
}

func (*S3Adapter) AddCommandParams

func (s3 *S3Adapter) AddCommandParams(cmd *cobra.Command)

AddCommandParams adds S3-specific CLI flags

func (*S3Adapter) DryRun

func (s3 *S3Adapter) DryRun(ctx tcontext.TransferMetadata, iterator iterator.SBOMIterator) error

func (*S3Adapter) FetchSBOMs

func (*S3Adapter) ParseAndValidateParams

func (s *S3Adapter) ParseAndValidateParams(cmd *cobra.Command) error

ParseAndValidateParams validates the S3 adapter params

func (*S3Adapter) UploadSBOMs

func (s3 *S3Adapter) UploadSBOMs(ctx tcontext.TransferMetadata, iterator iterator.SBOMIterator) error

type S3Config

type S3Config struct {
	AccessKey      string
	SecretKey      string
	BucketName     string
	Region         string
	Prefix         string
	ProcessingMode types.ProcessingMode
}

func NewS3Config

func NewS3Config() *S3Config

func (*S3Config) GetAWSClient

func (s *S3Config) GetAWSClient(ctx tcontext.TransferMetadata) (*s3.Client, error)

func (*S3Config) GetBucketName

func (s *S3Config) GetBucketName() string

func (*S3Config) GetPrefix

func (s *S3Config) GetPrefix() string

func (*S3Config) GetProcessingMode

func (s *S3Config) GetProcessingMode() types.ProcessingMode

func (*S3Config) GetRegion

func (s *S3Config) GetRegion() string

func (*S3Config) SetAccessKey

func (s *S3Config) SetAccessKey(accessKey string)

func (*S3Config) SetBucketName

func (s *S3Config) SetBucketName(bucketName string)

func (*S3Config) SetPrefix

func (s *S3Config) SetPrefix(prefix string)

func (*S3Config) SetProcessingMode

func (s *S3Config) SetProcessingMode(mode types.ProcessingMode)

func (*S3Config) SetRegion

func (s *S3Config) SetRegion(region string)

func (*S3Config) SetSecretKey

func (s *S3Config) SetSecretKey(secretKey string)

type S3Iterator

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

S3Iterator implements SBOMIterator

func NewS3Iterator

func NewS3Iterator(sboms []*iterator.SBOM) *S3Iterator

NewS3Iterator creates an S3 iterator

func (*S3Iterator) Next

Next yields the next SBOM

type S3ParallelFetcher

type S3ParallelFetcher struct{}

func (*S3ParallelFetcher) Fetch

type S3Reporter

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

func NewS3Reporter

func NewS3Reporter(verbose bool, inputDir, bucketName, prefix string) *S3Reporter

func (*S3Reporter) DryRun

type S3SequentialFetcher

type S3SequentialFetcher struct{}

func (*S3SequentialFetcher) Fetch

Fetching SBOMs from S3 bucket sequentially

type SBOMFetcher

type SBOMFetcher interface {
	Fetch(ctx tcontext.TransferMetadata, config *S3Config) (iterator.SBOMIterator, error)
}

Jump to

Keyboard shortcuts

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