Documentation
¶
Index ¶
- type ResourceLogic
- type VersionLogic
- func (l *VersionLogic) Create(ctx context.Context, param CreateVersionParam) (*ent.Version, error)
- func (l *VersionLogic) GetByName(ctx context.Context, param GetVersionByNameParam) (*ent.Version, error)
- func (l *VersionLogic) GetLatest(ctx context.Context, resourceID string) (*ent.Version, error)
- func (l *VersionLogic) GetPatchPath(ctx context.Context, param GetVersionPatchParam) (string, error)
- func (l *VersionLogic) GetResourcePath(param GetResourcePathParam) string
- func (l *VersionLogic) GetTempDownloadInfo(ctx context.Context, key string) (*TempDownloadInfo, error)
- func (l *VersionLogic) NameExists(ctx context.Context, param VersionNameExistsParam) (bool, error)
- func (l *VersionLogic) StoreTempDownloadInfo(ctx context.Context, param StoreTempDownloadInfoParam) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceLogic ¶
type ResourceLogic struct {
// contains filtered or unexported fields
}
func NewResourceLogic ¶
func NewResourceLogic(logger *zap.Logger, resourceRepo *repo.Resource) *ResourceLogic
type VersionLogic ¶
type VersionLogic struct {
// contains filtered or unexported fields
}
func NewVersionLogic ¶
func (*VersionLogic) GetPatchPath ¶ added in v0.2.0
func (l *VersionLogic) GetPatchPath(ctx context.Context, param GetVersionPatchParam) (string, error)
func (*VersionLogic) GetResourcePath ¶ added in v0.2.0
func (l *VersionLogic) GetResourcePath(param GetResourcePathParam) string
func (*VersionLogic) GetTempDownloadInfo ¶ added in v0.2.0
func (l *VersionLogic) GetTempDownloadInfo(ctx context.Context, key string) (*TempDownloadInfo, error)
func (*VersionLogic) NameExists ¶ added in v0.2.0
func (l *VersionLogic) NameExists(ctx context.Context, param VersionNameExistsParam) (bool, error)
func (*VersionLogic) StoreTempDownloadInfo ¶ added in v0.2.0
func (l *VersionLogic) StoreTempDownloadInfo(ctx context.Context, param StoreTempDownloadInfoParam) (string, error)
Click to show internal directories.
Click to hide internal directories.