Documentation ¶
Overview ¶
Package configuration allows reading configuration parameters from a given configuration file
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Region string `json:"region"` SNS SNS `json:"SNS"` DynamoDB DynamoDB `json:"DynamoDB"` S3 S3 `json:"S3"` Rekognition Rekognition `json:"Rekognition"` SQS SQS `json:"SQS"` }
Configuration contains parameters used in multiple parts of the code base
func Get ¶
func Get() (*Configuration, error)
Get returns Configuration leaded from configuration file
type DynamoDB ¶
type DynamoDB struct { Endpoint string `json:"endpoint"` PkgTableName string `json:"pkg_table_name"` CmdTableName string `json:"cmd_table_name"` PrimaryKey string `json:"primary_key"` }
DynamoDB contains test parameters for DynamoDB
type Rekognition ¶
type Rekognition struct { Region string `json:"region"` CompareFaces struct { Similarity float64 `json:"similarity"` SourceImage string `json:"source_image"` TargetImage string `json:"target_image"` } `json:"compare_faces"` DetectFaces struct { SourceImage string `json:"source_image"` } `json:"detect_faces"` DetectText struct { SourceImage string `json:"source_image"` } `json:"detect_text"` }
Rekognition contains test parameters for Rekognition
type S3 ¶
type S3 struct { Endpoint string `json:"endpoint"` Bucket string `json:"bucket"` SourceImage string `json:"source_image"` }
S3 contains test parameters for S3
Click to show internal directories.
Click to hide internal directories.