NelsonK[U] provides us with a context that accepts a configuration and gives us a cats IO[U] NelsonFK[F[_[_], _], U] provides a context that accepts a configuration and gives us an F[IO, U] this gives us the flexibility of defining a monadic function that yields FS2 streams of IO and U as emitted values (e.g.
This is a bootstrapping function - definitions of datacenters come from the Nelson configuration, and the database is a read-only reference of that, simply so we can provide forigen key constraints when doing queries.
Actually setup the webhook both in the nelson database, and also on the remote github repository.
Create a manual deployment.
Given a users Github personal access token - obtained either directly by user input, or via the OAtuh web flow - and lift it into a Github session.
Create a Nelson session based on the web-flow Github provides.
Remove the webhook from the repository.
Deprecates all deloyments for a service / feature version accross all datacenters and namepaces
Expires all deloyments for a service accross all datacenters and namepaces
Fetch a specific datacenter based on its name, along with the namespaces that are avalible in that specific datacenter (if any).
Given a deployment GUID, list the deployment statuses
Actually reach out to the repository in question using the github content API and fetch the manifest file, if it exists.
Given the ID of a particular release, show the release information and any associated deployments
Gets routing graphs for a given datacenter and list of namespaces.
Given a repo slug and a specific unit, figure out what the state of the latest released version is, for the specified unit only.
Invoked when the inbound webhook from Github arrives, notifying Nelson that a new deployment needs to take place.
a simple lift operation for easy construction of a NelsonFK
Given a specific datacenter and a list of namespaces figure out deployments by DeploymentStatus.
List all the datacenters Nelson is currently aware of, and return the namespaces associated with that datacenter.
Like listDeploymentsWithDeprecatedDependencies but for a single Datacenter
Lists all deployments accross datacenters and namspaces that depend on a deployment that is deprecated.
list recent releases, regardless of repository.
list releases this repository has had.
Fetches statistics about what happened over the last N days, where
N is defined by the
whence instance of
Given a session, sync up the users repositories to nelson to make sure we have the latest set of repos and their associated access.