Documentation
¶
Index ¶
- Constants
- Variables
- type Builder
- func (b *Builder) ContextValueProvider(in context.Context) context.Context
- func (mib *Builder) Install(b *presets.Builder) error
- func (b *Builder) PackageAndPreviewPrepath(v string) *Builder
- func (b *Builder) Publisher(v *publish.Builder) (r *Builder)
- func (b *Builder) Storage(v oss.StorageInterface) (r *Builder)
- type FileSystem
- type Messages
- type MicroSite
- func (this MicroSite) GetFileList() (arr []string)
- func (this MicroSite) GetID() uint
- func (this *MicroSite) GetPackage() FileSystem
- func (this MicroSite) GetPackageUrl(domain string) string
- func (this *MicroSite) GetPublishActions(ctx context.Context, db *gorm.DB, storage oss.StorageInterface) (actions []*publish.PublishAction, err error)
- func (this MicroSite) GetPublishedPath(fileName string) string
- func (this MicroSite) GetPublishedUrl(domain, fileName string) string
- func (this *MicroSite) GetUnPublishActions(ctx context.Context, db *gorm.DB, storage oss.StorageInterface) (actions []*publish.PublishAction, err error)
- func (this MicroSite) GetUnixKey() string
- func (this *MicroSite) PermissionRN() []string
- func (this *MicroSite) PrimaryColumnValuesBySlug(slug string) map[string]string
- func (this *MicroSite) PrimarySlug() string
- func (this *MicroSite) SetFilesList(filesList []string)
- func (this *MicroSite) SetPackage(fileName, url string)
- func (this *MicroSite) SetUnixKey()
- func (this *MicroSite) UnArchiveAndPublish(getPath func(string) string, fileName string, f io.Reader, ...) (filesList []string, err error)
Constants ¶
View Source
const I18nMicrositeKey i18n.ModuleKey = "I18nMicrositeKey"
Variables ¶
View Source
var (
MaximumNumberOfFilesCopiedAtTheSameTime = 10
)
View Source
var (
MaximumNumberOfFilesUploadedAtTheSameTime = 10
)
View Source
var Messages_en_US = &Messages{
CurrentPackage: "Current Package",
}
View Source
var Messages_zh_CN = &Messages{
CurrentPackage: "当前压缩包",
}
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) ContextValueProvider ¶
func (*Builder) PackageAndPreviewPrepath ¶
type FileSystem ¶
func (*FileSystem) Scan ¶
func (this *FileSystem) Scan(value interface{}) error
type MicroSite ¶
type MicroSite struct { gorm.Model publish.Status publish.Schedule publish.Version Name string Description string PrePath string Package FileSystem `gorm:"type:text"` FilesList string `gorm:"type:text"` UnixKey string }
func (MicroSite) GetFileList ¶
func (*MicroSite) GetPackage ¶
func (this *MicroSite) GetPackage() FileSystem
func (MicroSite) GetPackageUrl ¶
func (*MicroSite) GetPublishActions ¶
func (this *MicroSite) GetPublishActions(ctx context.Context, db *gorm.DB, storage oss.StorageInterface) (actions []*publish.PublishAction, err error)
func (MicroSite) GetPublishedPath ¶
func (MicroSite) GetPublishedUrl ¶
func (*MicroSite) GetUnPublishActions ¶
func (this *MicroSite) GetUnPublishActions(ctx context.Context, db *gorm.DB, storage oss.StorageInterface) (actions []*publish.PublishAction, err error)
func (MicroSite) GetUnixKey ¶
func (*MicroSite) PermissionRN ¶
func (*MicroSite) PrimaryColumnValuesBySlug ¶
func (*MicroSite) PrimarySlug ¶
func (*MicroSite) SetFilesList ¶
func (*MicroSite) SetPackage ¶
func (*MicroSite) SetUnixKey ¶
func (this *MicroSite) SetUnixKey()
Click to show internal directories.
Click to hide internal directories.