aws

package
v1.10.10 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentAws
	ErrorParamInvalid
	ErrorComponentNotInitialized
	ErrorConfigInvalid
	ErrorComponentStart
	ErrorComponentReload
	ErrorDependencyLogDefault
)
View Source
const (
	ComponentType = "aws"
)

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig(indent string) []byte

func DefaultConfigCustom added in v1.10.0

func DefaultConfigCustom(indent string) []byte

func DefaultConfigCustomStatus added in v1.10.0

func DefaultConfigCustomStatus(indent string) []byte

func DefaultConfigStandard added in v1.10.0

func DefaultConfigStandard(indent string) []byte

func DefaultConfigStandardStatus added in v1.10.0

func DefaultConfigStandardStatus(indent string) []byte

func Register

func Register(cfg libcfg.Config, key string, cpt ComponentAws)

func RegisterNew

func RegisterNew(cfg libcfg.Config, drv ConfigDriver, key string)

func SetDefaultConfig

func SetDefaultConfig(cfg []byte)

func SetDefaultConfigCustom

func SetDefaultConfigCustom(withStatus bool)

func SetDefaultConfigStandard

func SetDefaultConfigStandard(withStatus bool)

Types

type ComponentAws

type ComponentAws interface {
	ComponentAwsClient
	ComponentAwsAPI

	GetAws() (libaws.AWS, liberr.Error)
	SetAws(a libaws.AWS)
}

func Load

func Load(getCpt cfgtps.FuncCptGet, key string) ComponentAws

func New

func New(drv ConfigDriver) ComponentAws

type ComponentAwsAPI added in v1.10.0

type ComponentAwsAPI interface {
	cfgtps.Component
	RegisterTLS(fct libtls.FctTLSDefault)
}

type ComponentAwsClient added in v1.10.0

type ComponentAwsClient interface {
	cfgtps.Component
	RegisterHTTPClient(fct func() *http.Client)
}

type ConfigDriver

type ConfigDriver uint8
const (
	ConfigStandard ConfigDriver = iota
	ConfigStandardStatus
	ConfigCustom
	ConfigCustomStatus
)

func DriverConfig

func DriverConfig(value int) ConfigDriver

func (ConfigDriver) Config

func (a ConfigDriver) Config(bucket, accessKey, secretKey string, region string, endpoint *url.URL) libaws.Config

func (ConfigDriver) Model

func (a ConfigDriver) Model() interface{}

func (ConfigDriver) NewFromModel

func (a ConfigDriver) NewFromModel(i interface{}) (libaws.Config, liberr.Error)

func (ConfigDriver) String

func (a ConfigDriver) String() string

func (ConfigDriver) Unmarshal

func (a ConfigDriver) Unmarshal(p []byte) (libaws.Config, liberr.Error)

Jump to

Keyboard shortcuts

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