Documentation ¶
Index ¶
- Constants
- func DefaultConfig(indent string) []byte
- func IsCodeError() bool
- func Register(cfg libcfg.Config, key string, cpt ComponentAws)
- func RegisterNew(cfg libcfg.Config, drv ConfigDriver, key, logKey string)
- func SetDefaultConfig(cfg []byte)
- func SetDefaultConfigCustom()
- func SetDefaultConfigStandard()
- type ComponentAws
- type ConfigDriver
- func (a ConfigDriver) Config(bucket, accessKey, secretKey string, region string, endpoint *url.URL) libaws.Config
- func (a ConfigDriver) Model() interface{}
- func (a ConfigDriver) NewFromModel(i interface{}) (libaws.Config, liberr.Error)
- func (a ConfigDriver) String() string
- func (a ConfigDriver) Unmarshal(p []byte) (libaws.Config, liberr.Error)
Constants ¶
View Source
const ( ErrorParamsEmpty liberr.CodeError = iota + libcfg.MinErrorComponentAws ErrorParamsInvalid ErrorComponentNotInitialized ErrorConfigInvalid ErrorStartComponent ErrorReloadComponent ErrorDependencyLogDefault )
View Source
const (
ComponentType = "aws"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func IsCodeError ¶
func IsCodeError() bool
func RegisterNew ¶
func RegisterNew(cfg libcfg.Config, drv ConfigDriver, key, logKey string)
func SetDefaultConfig ¶
func SetDefaultConfig(cfg []byte)
func SetDefaultConfigCustom ¶
func SetDefaultConfigCustom()
func SetDefaultConfigStandard ¶
func SetDefaultConfigStandard()
Types ¶
type ComponentAws ¶
type ComponentAws interface { libcfg.Component RegisterHTTPClient(fct func() *http.Client) GetAws() (libaws.AWS, liberr.Error) SetAws(a libaws.AWS) }
func Load ¶
func Load(getCpt libcfg.FuncComponentGet, key string) ComponentAws
func New ¶
func New(drv ConfigDriver, logKey string) ComponentAws
type ConfigDriver ¶
type ConfigDriver uint8
const ( ConfigStandard ConfigDriver = iota ConfigCustom )
func DriverConfig ¶
func DriverConfig(value int) ConfigDriver
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
Click to show internal directories.
Click to hide internal directories.