Documentation ¶
Index ¶
- Variables
- func AssignUserToApp(currentUserID, userID, appID int64) error
- func CreateApp(userID int64, name string) (*data.App, error)
- func CreateBundles(userID, appID, cycleID, releaseID int64, mapFiles map[string]string) ([]*data.Bundle, error)
- func CreateCycle(userID, appID int64, name string) (*data.Cycle, error)
- func CreateRelease(userID, appID, cycleID int64, platform data.Platform, rawVersion, note string) (*data.Release, error)
- func CreateUser(name, email, password string) (*data.User, error)
- func DownloadRelease(appID, cycleID, releaseID int64, encryptedKey []byte, output io.Writer) error
- func DownloadVersion(appID, cycleID int64, platformStr, versionStr string, encryptedKey []byte, ...) error
- func FindAllBundlesByReleaseID(releaseID int64) ([]*data.Bundle, error)
- func FindAppByID(userID, appID int64) (*data.App, error)
- func FindCycleByAppIdCycleId(appID, cycleID int64) (*data.Cycle, error)
- func FindCycleByID(userID, appID, cycleID int64) (*data.Cycle, error)
- func FindLockedRelease(cycleID, releaseID int64) (*data.Release, error)
- func FindReleaseByID(userID, appID, cycleID, releaseID int64) (*data.Release, error)
- func FindUserByEmail(email string) *data.User
- func FindUserByID(id int64) *data.User
- func FindUsersWithinApp(userID, appID int64, name, email string) ([]*data.User, error)
- func GetAppCyclePublicKey(userID, appID, cycleID int64) (string, error)
- func LatestRelease(appID, cycleID int64, rawVersion string, platform string) (map[string]*data.Release, error)
- func LockRelease(userID, appID, cycleID, releaseID int64) error
- func QueryUsersByEmail(name, email string) []*data.User
- func RemoveCycle(userID, appID, cycleID int64) error
- func RemoveRelease(userID, appID, cycleID, releaseID int64) error
- func SearchAppCycles(userID, appID int64, name string) ([]*data.Cycle, error)
- func SearchApps(userID int64, name string) []*data.App
- func SearchBundles(userID, appID, cycleID, releaseID int64, name string) ([]*data.Bundle, error)
- func SearchReleases(appID, cycleID int64, platform, version, note string) ([]*data.Release, error)
- func UnassignUserFromApp(currentUserID, userID, appID int64) error
- func UnlockRelease(userID, appID, cycleID, releaseID int64) error
- func UpdateApp(userID, appID int64, name string) (*data.App, error)
- func UpdateCycle(userID, appID, cycleID int64, name string) (*data.Cycle, error)
- func UpdateRelease(userID, appID, cycleID, releaseID int64, platfrom *data.Platform, ...) (*data.Release, error)
- func UpdateUser(userID int64, name, email, password *string) (*data.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCreatePassword = fmt.Errorf("couldn't create a proper password") ErrUpdateUser = fmt.Errorf("you don't have access to this user") ErrAppNotFound = fmt.Errorf("app not found") ErrReleaseLocked = fmt.Errorf("released is locked") ErrReleaseAlreadyLocked = fmt.Errorf("release is already locked") ErrReleaseAlreadyUnlocked = fmt.Errorf("release is already unlocked") )
Functions ¶
func AssignUserToApp ¶
func CreateBundles ¶
func CreateRelease ¶
func CreateUser ¶
CreateUser creates a new user
func DownloadRelease ¶
DownloadRelease downloads the bundle releated to a specific release
func DownloadVersion ¶
func DownloadVersion(appID, cycleID int64, platformStr, versionStr string, encryptedKey []byte, output io.Writer) error
DownloadVersion is similar to DownloadRelease but it uses version instead of release id
func FindCycleByAppIdCycleId ¶
func FindReleaseByID ¶
func FindUserByEmail ¶
FindUserByEmail try to find a single user by an email. email has to be matached. no partial email is permitted.
func FindUsersWithinApp ¶
func GetAppCyclePublicKey ¶
func LatestRelease ¶
func LatestRelease(appID, cycleID int64, rawVersion string, platform string) (map[string]*data.Release, error)
LatestRelease retusn soft and hard version which soft means can be updated and hard means it requires to download from app store or play store
func LockRelease ¶
func QueryUsersByEmail ¶
QueryUsersByEmail this method returns users based on partial email search
func RemoveCycle ¶
func RemoveRelease ¶
func SearchAppCycles ¶
func SearchApps ¶
SearchApps this method returns apps based on partial name search
func SearchBundles ¶
func SearchReleases ¶
func UnassignUserFromApp ¶
func UnlockRelease ¶
func UpdateRelease ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.