Categorygithub.com/calyptia/go-s3-client
modulepackage
0.0.5
Repository: https://github.com/calyptia/go-s3-client.git
Documentation: pkg.go.dev

# README

go-s3-client

Common s3 library for using on Golang fluent-bit input plugins.

Tests

To run tests execute:

go test -v ./...

Linting

golangci-lint run .

# Packages

No description provided by the author

# Functions

GetDirPrefix returns the directory prefix from a glob expression.
GetFileReader returns a function that creates a reader for a given file, based on the file's extension.
IsBinaryContentType returns true if the given content type is a binary content type, and false otherwise.
IsGlobPattern returns true if the given string is a glob pattern.
New returns a new DefaultClient configured with the given options and using the provided logger.
WithAssumeRoleCredentialOptions returns a ClientOptsFunc that sets of parameters for AssumeRole fields on the ClientOpts.
WithEC2IMDSClientEnableState returns a ClientOptsFunc that sets EC2IMDSClientEnableState fields on the ClientOpts.
WithEndpoint returns a ClientOptsFunc that sets the endpoint field on the ClientOpts.
WithRegion returns a ClientOptsFunc that sets the region field on the ClientOpts.
WithStaticCredentials returns a ClientOptsFunc that sets the access key and secret key fields on the ClientOpts.

# Structs

ClientOpts represents options for configuring an S3 client.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

ClientOptsFunc is a function that takes a *ClientOpts pointer and returns an error.