services

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSService

type AWSService struct {
	STSClient *sts.Client
	S3Client  *s3.Client
	KMSClient *kms.Client
}

func GetAWS

func GetAWS(cnfg *appconfig.AppConfig) (*AWSService, error)

func (*AWSService) GetDecryptedText

func (as *AWSService) GetDecryptedText(ticketData string) (string, error)

func (*AWSService) GetEncryptedSecret

func (as *AWSService) GetEncryptedSecret(ticketData string) (string, error)

func (*AWSService) GetS3BucketList

func (as *AWSService) GetS3BucketList() ([]types.Bucket, error)

func (*AWSService) ObtainAWSRoleWithToken

func (as *AWSService) ObtainAWSRoleWithToken(token string, sessionName string, roleArn string, ttl int32, region string) (AwsCredentials, error)

type AwsCredentials

type AwsCredentials struct {
	AccessKeyId     string
	SecretAccessKey string
	SessionToken    string
	Region          string
}

Jump to

Keyboard shortcuts

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