Back to godoc.org

Package awsapi

v0.0.1-lastknown
Latest Go to latest

The highest tagged major version is .

Published: Jan 31, 2020 | License: Apache-2.0 | Module: github.com/caffeinated-expert/aws-k8s-tester

Overview

Package awsapi implements wrappers for AWS API calls.

Index

func New

func New(cfg *Config) (ss *session.Session, awsCredsPath string, err error)

New creates a new AWS session. Specify a custom endpoint for tests.

type Config

type Config struct {
	// Logger is the log object.
	Logger *zap.Logger

	// DebugAPICalls is true to log all AWS API call debugging messages.
	DebugAPICalls bool

	// Region is a separate AWS geographic area for EKS service.
	// Each AWS Region has multiple, isolated locations known as Availability Zones.
	Region string

	// CustomEndpoint is a custom endpoint for pre-release versions of the service.
	// TODO: support EKS testing endpoint
	// https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#custom-endpoint
	CustomEndpoint string
}

Config defines a top-level AWS API configuration to create a session.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier