package
0.2.1
Repository: https://github.com/bradrydzewski/drone.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Close database connection.
Deletes an existing Build.
Deletes an existing Commit.
Deletes an existing Member.
Deletes an existing Repository.
Deletes an existing Team account.
Deletes an existing User account.
FailUnfinishedBuilds sets status=Failure to all builds in the Pending and Started states.
No description provided by the author
Returns the most recent Commit for the given branch.
Returns the Build with the given ID.
Returns the Build with the given slug.
Returns the Commit with the given ID.
Returns the Commit on the given branch with the given hash.
Returns the Commit with the given hash.
Returns the Member with the given user and team IDs.
Returns the User Password Hash for the given email address.
Returns the Repo with the given ID.
Returns the Repo with the given slug.
Returns the system Settings.
Returns the Team with the given ID.
Returns the Team with the given slug.
Returns the User with the given ID.
Returns the User with the given email address.
Init connects to database and performs migration if necessary.
Returns true if the user is a member of the team.
Returns true is the user is an admin member of the team.
Checks whether a user is admin of a repo Returns true if user owns repo or is on team that owns repo Returns true if the user is an admin member of the team.
Returns a list of the most recent commits for each branch.
Returns a list of all Builds associated with the specified Commit ID and branch.
Returns a list of all Commits associated with the specified Repo ID.
Returns a list of recent Commits associated with the specified Team ID.
Returns a list of recent Commits associated with the specified User ID.
Returns a list of all Team members.
Returns a list of all Repos associated with the specified User ID.
Returns a list of all Repos associated with the specified Team ID.
Returns a list of all Teams associated with the specified User ID.
Returns a list of all Users.
Returns a list of Users within the specified range (for pagination purposes).
Creates a new Build.
Creates a new Commit.
Creates a new Member.
Creates a new Repository.
Saves the system Settings.
Saves a Team.
Saves the User account.
Returns the system Settings.