Documentation
¶
Index ¶
- Variables
- type RawQuery
- type Repo
- type Resource
- func (r *Resource) CheckResourceExistsByID(ctx context.Context, id string) (bool, error)
- func (r *Resource) CreateResource(ctx context.Context, resID, name, description, updateType string) (*ent.Resource, error)
- func (r *Resource) FindUpdateTypeById(ctx context.Context, id string) (*ent.Resource, error)
- func (r *Resource) GetFullResource(ctx context.Context) ([]*ent.Resource, error)
- type Storage
- func (r *Storage) CheckStorageExist(ctx context.Context, verID int, os, arch string) (bool, error)
- func (r *Storage) CreateFullUpdateStorage(ctx context.Context, verID int, os, arch, path, hash string, ...) (*ent.Storage, error)
- func (r *Storage) CreateIncrementalUpdateStorage(ctx context.Context, tx *ent.Tx, verID, oldVerID int, filetype string, ...) (*ent.Storage, error)
- func (r *Storage) GetFullUpdateStorage(ctx context.Context, verID int, os, arch string) (*ent.Storage, error)
- func (r *Storage) GetIncrementalUpdateStorage(ctx context.Context, verID, oldVerID int, os, arch string) (*ent.Storage, error)
- func (r *Storage) PurgeStorageInfo(ctx context.Context, storageId int) error
- func (r *Storage) UpdateStoragePackageHash(ctx context.Context, id int, hash string) error
- type Version
- func (r *Version) CreateVersion(ctx context.Context, resID string, channel version.Channel, name string, ...) (*ent.Version, error)
- func (r *Version) GetMaxNumberVersion(ctx context.Context, resID string) (*ent.Version, error)
- func (r *Version) GetVersionByName(ctx context.Context, resID, name string) (*ent.Version, error)
- func (r *Version) UpdateVersionCustomData(ctx context.Context, verID int, customData string) error
- func (r *Version) UpdateVersionReleaseNote(ctx context.Context, verID int, releaseNote string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Provider = wire.NewSet( NewRepo, NewRawQuery, NewResource, NewVersion, NewStorage, )
Functions ¶
This section is empty.
Types ¶
type RawQuery ¶ added in v0.5.0
type RawQuery struct {
*Repo
}
func NewRawQuery ¶ added in v0.5.0
func (*RawQuery) GetReadyToPurgeInfo ¶ added in v0.5.1
func (r *RawQuery) GetReadyToPurgeInfo(resourceId string) ([]model.ResourcePurgeInfo, error)
func (*RawQuery) GetSpecifiedLatestVersion ¶ added in v0.5.0
func (r *RawQuery) GetSpecifiedLatestVersion(resourceId, os, arch string) ([]model.LatestVersionInfo, error)
type Resource ¶
type Resource struct {
*Repo
}
func NewResource ¶
func (*Resource) CheckResourceExistsByID ¶
func (*Resource) CreateResource ¶
func (*Resource) FindUpdateTypeById ¶ added in v0.5.1
type Storage ¶
type Storage struct {
*Repo
}
func NewStorage ¶
func (*Storage) CheckStorageExist ¶ added in v0.3.0
func (*Storage) CreateFullUpdateStorage ¶ added in v0.3.0
func (*Storage) CreateIncrementalUpdateStorage ¶ added in v0.3.0
func (*Storage) GetFullUpdateStorage ¶ added in v0.3.0
func (*Storage) GetIncrementalUpdateStorage ¶ added in v0.4.0
func (*Storage) PurgeStorageInfo ¶ added in v0.5.1
type Version ¶
type Version struct {
*Repo
}
func NewVersion ¶
func (*Version) CreateVersion ¶
func (*Version) GetMaxNumberVersion ¶ added in v0.3.0
func (*Version) GetVersionByName ¶
func (*Version) UpdateVersionCustomData ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.