Documentation
¶
Index ¶
- Constants
- Variables
- func AutoMigrate(db *gorm.DB) error
- type Builder
- func (b *Builder) AutoMigrate() *Builder
- func (b *Builder) Delete(ctx context.Context, path string) error
- func (b *Builder) Get(ctx context.Context, path string) (*os.File, error)
- func (b *Builder) GetEndpoint(ctx context.Context) string
- func (b *Builder) GetStream(ctx context.Context, path string) (io.ReadCloser, error)
- func (b *Builder) GetURL(ctx context.Context, path string) (string, error)
- func (b *Builder) Install(pb *presets.Builder) (err error)
- func (b *Builder) List(ctx context.Context, path string) ([]*oss.Object, error)
- func (b *Builder) Put(ctx context.Context, path string, reader io.Reader) (obj *oss.Object, err error)
- type Messages
- func (msgr *Messages) InvalidFormat(vs map[string]string) string
- func (msgr *Messages) RedirectError(vs []string) string
- func (msgr *Messages) RepeatedSource(vs map[string][]string) string
- func (msgr *Messages) SourceInvalidFormat(name string) string
- func (msgr *Messages) TargetInvalidFormat(name string) string
- func (msgr *Messages) TargetObjectNotExisted(vs []string) string
- func (msgr *Messages) TargetUnreachableError(vs map[string][]string) string
- type Redirection
Constants ¶
View Source
const I18nRedirectionKey i18n.ModuleKey = "I18nRedirectionKey"
View Source
const (
UploadFileEvent = "redirection_UploadFileEvent"
)
Variables ¶
View Source
var Messages_en_US = &Messages{
RepeatedSourceErrorTemplate: "Row {Rows}: Source Is Duplicated.",
SourceInvalidFormatTemplate: "Source Invalid Format",
TargetInvalidFormatTemplate: "Target Invalid Format",
TargetUnreachableErrorTemplate: "Row {Rows}: Target Is Unreachable.",
TargetObjectNotExistedTemplate: "Row {Rows}: Target Object Not Existed",
NormalErrorTemplate: "Row {Rows}:{Message}",
RedirectErrorTemplate: "Row {Rows}: Redirection Failed.",
FileUploadFailed: "File Upload Failed",
ErrorTips: "ErrorTips",
}
View Source
var Messages_ja_JP = &Messages{
RepeatedSourceErrorTemplate: "{Rows}行目: Source が重複しています。",
SourceInvalidFormatTemplate: "Source のフォーマットが無効です。",
TargetInvalidFormatTemplate: "Target のフォーマットが無効です。",
TargetUnreachableErrorTemplate: "{Rows}行目: Target に到達できません。",
TargetObjectNotExistedTemplate: "ターゲットオブジェクトが存在しません。",
NormalErrorTemplate: "{Rows}行目: {Message}",
RedirectErrorTemplate: "{Rows}行目: リダイレクトに失敗しました。",
FileUploadFailed: "ファイルのアップロードに失敗しました。",
ErrorTips: "エラーのヒント",
}
View Source
var Messages_zh_CN = &Messages{
RepeatedSourceErrorTemplate: "第{Rows}行:源数据重复。",
SourceInvalidFormatTemplate: "源数据格式无效。",
TargetInvalidFormatTemplate: "目标格式无效。",
TargetUnreachableErrorTemplate: "第{Rows}行:目标无法访问。",
TargetObjectNotExistedTemplate: "第{Rows}行:目标对象不存在。",
NormalErrorTemplate: "第{Rows}行:{Message}",
RedirectErrorTemplate: "第{Rows}行:重定向失败。",
FileUploadFailed: "文件上传失败。",
ErrorTips: "错误提示",
}
Functions ¶
func AutoMigrate ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) AutoMigrate ¶
type Messages ¶
type Messages struct {
RepeatedSourceErrorTemplate string
SourceInvalidFormatTemplate string
TargetInvalidFormatTemplate string
TargetUnreachableErrorTemplate string
TargetObjectNotExistedTemplate string
NormalErrorTemplate string
RedirectErrorTemplate string
FileUploadFailed string
ErrorTips string
}
func (*Messages) RedirectError ¶
func (*Messages) RepeatedSource ¶
func (*Messages) SourceInvalidFormat ¶
func (*Messages) TargetInvalidFormat ¶
func (*Messages) TargetObjectNotExisted ¶
type Redirection ¶
func (*Redirection) TableName ¶
func (b *Redirection) TableName() string
Click to show internal directories.
Click to hide internal directories.