s3

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDebug added in v0.4.0

func GetDebug() bool

GetDebug - Returns the debug flag

func GetOSEEndpoint added in v0.4.0

func GetOSEEndpoint() string

GetOSEEndpoint - Returns the OSE endpoint

func GetOSEToken added in v0.4.0

func GetOSEToken() string

GetOSEToken - Returns the OSE token

func GetOrganizationID added in v0.4.0

func GetOrganizationID() string

GetOrganizationID - Returns the organization ID

func GetOrganizationName added in v0.4.0

func GetOrganizationName() string

GetOrganizationName - Returns the organization name

func Init

func Init(opts Opts) (err error)

Init - Initializes the client

func NewOSE added in v0.4.0

func NewOSE() *resty.Client

NewOSE - Return a new OSE 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"`
	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