package
0.3.0
Repository: https://github.com/tinyci/ci-agents.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddCapability adds a capability for a user.
AddRepositorySubscription adds a subscription for the user to the repo.
AddRepositoryToCI adds the repository to CI and subscribes the user to it.
CancelRun cancels a run by id.
CancelSubmission cancels a submission by ID.
CancelTask cancels a task by ID.
CountRuns returns a count of the queue items by asking the datasvc for it.
CountRunsForTask counts all the runs by task ID.
CountSubmissions counts the submissions with optional repository/sha filtering.
CountTasks counts the task list with the supplied repo/sha filtering.
DeleteRepositoryFromCI removes the repository from CI.
DeleteRepositorySubscription removes the subscription to the repository from the user account.
DeleteToken removes the existing token for the user.
Errors processes the /errors GET endpoint.
GetRun retrieves a run by id.
GetRunsForTask retrieves all the runs by task id.
GetSubmission retrieves a submission by id.
GetSubmissionRuns retrieves a submission's runs from the submission id.
GetSubmissionTasks retrieves a submission's task from the submission id.
GetToken obtains a new token from the db.
GetUserProperties gives an object containing information about the user.
ListRepositoriesMy lists the repositories the user can modify.
ListRepositoriesSubscribed lists all subscribed repos as JSON.
ListRepositoriesVisible returns all the repos the user can see.
ListRuns lists all the runs that were requested by the page/perPage parameters.
ListSubmissions lists the submissions with optional repository/sha filtering and pagination.
ListSubscribedTasksForUser lists only the tasks for the repositories the user is subscribed to.
ListTasks retrieves the task list.
LogAttach connects to a running logging process and outputs the return data as it arrives.
LoggedIn handles the process of signaling javascript whether or not to login.
Login processes the oauth response and optionally redirects the user if not logged in already.
Logout logs the user out of the tinyCI system.
MakeHandlerConfig takes a handlers.ServiceConfig and spits out a HandlerConfig.
MakeUIServer makes a uisvc.
RemoveCapability removes a capability from a user.
ScanRepositories scans for owned and managed repositories for Add-to-CI operations.
Submit powers a manual submission to the queuesvc.
Upgrade upgrades the user's api keys.

# Variables

FlatSwaggerJSON embedded flattened version of the swagger document used at generation time.
SwaggerJSON embedded version of the swagger document used at generation time.

# Structs

HandlerConfig is for on-disk configuration of the service.