aws

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSClient

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

func New

func New(param Params) (*AWSClient, error)

func (*AWSClient) Config

func (c *AWSClient) Config() *config.AWS

func (*AWSClient) CreateSecret

func (c *AWSClient) CreateSecret(secretName string, secretContent string, KmsKeyId *string) (*secretsmanager.CreateSecretOutput, error)

func (*AWSClient) FetchFromS3

func (c *AWSClient) FetchFromS3(filename string) ([]byte, error)

func (*AWSClient) FetchSecret

func (c *AWSClient) FetchSecret(secretName string) (*secretsmanager.GetSecretValueOutput, error)

func (*AWSClient) GetSignedS3URL

func (c *AWSClient) GetSignedS3URL(filename string, expire time.Duration) (*string, error)

func (*AWSClient) Session added in v1.0.21

func (c *AWSClient) Session() *session.Session

func (*AWSClient) UpdateSecret

func (c *AWSClient) UpdateSecret(secretName string, secretContent string, KmsKeyId *string) (*secretsmanager.UpdateSecretOutput, error)

func (*AWSClient) UploadToS3

func (c *AWSClient) UploadToS3(filename string, data []byte) (*s3manager.UploadOutput, error)

type Params added in v1.0.22

type Params struct {
	fx.In

	Config *config.AWS `optional:"true"`
}

Jump to

Keyboard shortcuts

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