Documentation ¶
Index ¶
- Constants
- func DefaultConfig(indent string) []byte
- func DefaultConfigCustom(indent string) []byte
- func DefaultConfigCustomStatus(indent string) []byte
- func DefaultConfigStandard(indent string) []byte
- func DefaultConfigStandardStatus(indent string) []byte
- func Register(cfg libcfg.Config, key string, cpt ComponentAws)
- func RegisterNew(ctx libctx.FuncContext, cfg libcfg.Config, drv ConfigDriver, key string)
- func SetDefaultConfig(cfg []byte)
- func SetDefaultConfigCustom(withStatus bool)
- func SetDefaultConfigStandard(withStatus bool)
- 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, error)
- func (a ConfigDriver) String() string
- func (a ConfigDriver) Unmarshal(p []byte) (libaws.Config, error)
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 DefaultConfigCustom ¶ added in v1.10.0
func DefaultConfigCustomStatus ¶ added in v1.10.0
func DefaultConfigStandard ¶ added in v1.10.0
func DefaultConfigStandardStatus ¶ added in v1.10.0
func RegisterNew ¶
func RegisterNew(ctx libctx.FuncContext, 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 { cfgtps.Component GetAws() libaws.AWS SetAws(a libaws.AWS) RegisterHTTPClient(cli libhtc.HttpClient) }
func Load ¶
func Load(getCpt cfgtps.FuncCptGet, key string) ComponentAws
func New ¶
func New(ctx libctx.FuncContext, drv ConfigDriver) ComponentAws
type ConfigDriver ¶
type ConfigDriver uint8
const ( ConfigStandard ConfigDriver = iota ConfigStandardStatus ConfigCustom ConfigCustomStatus )
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, error)
func (ConfigDriver) String ¶
func (a ConfigDriver) String() string
Click to show internal directories.
Click to hide internal directories.