configuration

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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

type SNS

type SNS struct {
	Endpoint  string `json:"endpoint"`
	TargetArn string `json:"target_arn"`
}

SNS contains test parameters for SNS

type SQS

type SQS struct {
	Endpoint  string `json:"endpoint"`
	QueueUrl  string `json:"queue_url"`
	QueueName string `json:"queue_name"`
}

SQS embeds sqs information

Jump to

Keyboard shortcuts

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