* refactor(report): LocalFileWriter * refactor -format-json * refacotr: -format-one-email * refactor: -format-csv * refactor: -gzip * refactor: -format-full-text * refactor: -format-one-line-text * refactor: -format-list * refacotr: remove -to-* from config * refactor: IgnoreGitHubDismissed * refactor: GitHub * refactor: IgnoreUnsocred * refactor: diff * refacotr: lang * refacotr: cacheDBPath * refactor: Remove config references * refactor: ScanResults * refacotr: constant pkg * chore: comment * refactor: scanner * refactor: scanner * refactor: serverapi.go * refactor: serverapi * refactor: change pkg structure * refactor: serverapi.go * chore: remove emtpy file * fix(scan): remove -ssh-native-insecure option * fix(scan): remove the deprecated option `keypassword`
		
			
				
	
	
		
			31 lines
		
	
	
		
			624 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			624 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package config
 | 
						|
 | 
						|
// AWSConf is aws config
 | 
						|
type AWSConf struct {
 | 
						|
	// AWS profile to use
 | 
						|
	Profile string `json:"profile"`
 | 
						|
 | 
						|
	// AWS region to use
 | 
						|
	Region string `json:"region"`
 | 
						|
 | 
						|
	// S3 bucket name
 | 
						|
	S3Bucket string `json:"s3Bucket"`
 | 
						|
 | 
						|
	// /bucket/path/to/results
 | 
						|
	S3ResultsDir string `json:"s3ResultsDir"`
 | 
						|
 | 
						|
	// The Server-side encryption algorithm used when storing the reports in S3 (e.g., AES256, aws:kms).
 | 
						|
	S3ServerSideEncryption string `json:"s3ServerSideEncryption"`
 | 
						|
 | 
						|
	Enabled bool `toml:"-" json:"-"`
 | 
						|
}
 | 
						|
 | 
						|
// Validate configuration
 | 
						|
func (c *AWSConf) Validate() (errs []error) {
 | 
						|
	// TODO
 | 
						|
	if !c.Enabled {
 | 
						|
		return
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 |