cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Copyright © 2023 Alexander Mancevice <alexander.mancevice@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

View Source
var CliName string = "aws-env"
View Source
var CliVersion string = "0.1.1"
View Source
var DefaultConfigPath = "/var/task/.aws"
View Source
var HelpTemplate string = `
{{.Short}}

Usage:
  {{.Name}} [OPTIONS] [ARGS...]

Options:
  -h, --help     show help
  -v, --version  show version

`
View Source
var ShowVersion bool
View Source
var UsageTemplate string = `
Usage:
  {{.Name}} [OPTIONS] [ARGS...]
`

Functions

func Execute

func Execute()

func ExportParameters

func ExportParameters(path string)

func ExportSecret

func ExportSecret(secretId string)

func ExportVar

func ExportVar(key string, val string)

func GetAwsConfig

func GetAwsConfig() aws.Config

Types

type ConfigObject

type ConfigObject struct {
	Exports []struct {
		Secretsmanager string
		Ssm            string
	}
}

func GetConfig

func GetConfig() ConfigObject

type LogWriter

type LogWriter struct {
}

func (LogWriter) Write

func (writer LogWriter) Write(bytes []byte) (int, error)

type SecretsManagerGetSecretValueApi

type SecretsManagerGetSecretValueApi interface {
	GetSecretValue(ctx context.Context,
		params *secretsmanager.GetSecretValueInput,
		optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
}

type SsmGetParametersByPathApi

type SsmGetParametersByPathApi interface {
	GetParametersByPath(ctx context.Context,
		params *ssm.GetParametersByPathInput,
		optFns ...func(*ssm.Options)) (*ssm.GetParametersByPathOutput, error)
}

Jump to

Keyboard shortcuts

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