s3

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts Opts) (err error)

Init - Initializes the client

Types

type Client

type Client struct {
	*s3.S3
}

func New

func New() (*Client, error)

New creates a new S3 client.

type Opts

type Opts struct {
	OSEEndpoint      string `env:"ENDPOINT,default=https://s3console1.cloudavenue.orange-business.com"`
	S3Endpoint       string `env:"S3_ENDPOINT,default=https://s3-region01.cloudavenue.orange-business.com"`
	CAVToken         string `env:"CAV_TOKEN"`
	Debug            bool   `env:"DEBUG,default=false"`
	OrganizationName string `env:"ORGANIZATION_NAME"`
	Username         string `env:"USERNAME"`
}

Opts - Is a struct that contains the options for the S3 client

Jump to

Keyboard shortcuts

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