aws

package
v0.0.0-...-72dc698 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTypeRegistry

func GetTypeRegistry() map[string]reflect.Type

func MakeInstance

func MakeInstance(name string) (interface{}, error)

MakeInstance returns an interface of the given type

func NewInstance

func NewInstance(name string) (interface{}, error)

NewInstance returns a pointer to the underlying entity as interface

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

AWS is a wrapper around the AWS SDK having helper functions to run any API.

func New

func New(cfg AWSConfig) *AWS

New consumes a config and returns a new AWS instance.

func (*AWS) ParseFileParams

func (a *AWS) ParseFileParams(params string) (map[string]string, error)

ParseFileParams takes file params as string and returns a map of file params.

func (*AWS) ParseParams

func (a *AWS) ParseParams(params string) (map[string]interface{}, error)

ParseParams takes params as string and returns a map of params.

func (*AWS) RunAny

func (a *AWS) RunAny(api string, params map[string]interface{}, fileParams map[string]string) ([]interface{}, error)

RunAny takes an API name and a map of params and runs the API.

type AWSConfig

type AWSConfig struct {
	Region           string
	AccessKey        string
	SecretKey        string
	Anon             bool
	SkipSSL          bool
	Endpoint         string
	DisablePathStyle bool
	Debug            bool
}

AWSConfig is the configuration for AWS.

Jump to

Keyboard shortcuts

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