Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetConfigModel ¶
func GetConfigModel() interface{}
Types ¶
type Model ¶ added in v1.3.2
type Model struct {
Region string `mapstructure:"region" json:"region" yaml:"region" toml:"region" validate:"required,hostname"`
Endpoint string `mapstructure:"endpoint" json:"endpoint" yaml:"endpoint" toml:"endpoint" validate:"url"`
AccessKey string `mapstructure:"accesskey" json:"accesskey" yaml:"accesskey" toml:"accesskey" validate:"omitempty,printascii"` // #nosec nolint
SecretKey string `mapstructure:"secretkey" json:"secretkey" yaml:"secretkey" toml:"secretkey" validate:"omitempty,printascii"` // #nosec nolint
Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket" toml:"bucket" validate:"omitempty,bucket-s3"`
}
type ModelStatus ¶ added in v1.9.5
type ModelStatus struct {
Config Model `json:"config" yaml:"config" toml:"config" mapstructure:"config" validate:"required"`
Monitor libreq.OptionsHealth `json:"health" yaml:"health" toml:"health" mapstructure:"health" validate:""`
}
Click to show internal directories.
Click to hide internal directories.