sharedCredentials

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

package sharedCredentials provides access to the aws shared credentials file.

package sharedCredentials provides access to the aws shared credentials file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSharedCredsFilePath

func GetSharedCredsFilePath(filename string) (string, error)

GetSharedCredsFilePath returns the filename to use to read AWS shared credentials. Will return an error if the user's home directory path cannot be found.

func Purge

func Purge(shareFilePath string) error

Purge deletes the shared credentials file at the given path

func Store

func Store(log log.T, accessKeyID, secretAccessKey, sessionToken, shareFilePath, profile string, force bool) error

Store function updates the shared credentials with the specified values: * If the shared credentials file does not exist, it will be created. Any parent directories will also be created. * If the section to update does not exist, it will be created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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