Categorygithub.com/bradmccoydev/self-service-sdk

# README

Self Service SDK

This repository contains the SDK for Self Service. It is provided as a GoLang module.

Repository Structure

The table below explains the layout of this repository.

DirectoryPurpose
/internalThis directory contains utility functions for internal testing etc
/sdkThis directory contains the SDK packages
/sdk/awsThis directory contains AWS related SDK packages
/sdk/azureThis directory contains Azure related SDK packages
/sdk/configutilThis directory contains the configuration utility package
/sdk/logutilThis directory contains the logging utility package
/templatesThis directory contains templates for using the SDK

Requirements

The table below lists the requirements to use the SDK.

ItemRequirement
1Go >= v1.15
2An AWS account with appropriate permissions. See below.
3Certain environment variables to drive the testing framework. See below.

AWS

To enable testing of the AWS functionality an AWS account is required. The table below lists the permissions required.

ObjectPermissionNotes
DynamoDB?
Secrets Manager?

Testing

Certain environment variables need to be set for the various unit tests to run. These are summarised in the table below.

VariableNotes
TESTING_AWS_ENABLEDSet to TRUE if the AWS related tests should be run
TESTING_AWS_ACCESS_KEY_IDA valid AWS Access Key that can be used to connect to AWS
TESTING_AWS_SECRET_ACCESS_KEYThe secret for the above AWS access key
TESTING_AWS_DEFAULT_REGIONThe default AWS region to use
TESTING_AWS_USER_IDThe User ID of the above AWS user. This is used for validating a successful login

# Packages

No description provided by the author