Exemple #1
0
// DestroyConsole properly shuts down a console service
func DestroyConsole(jobID string, serviceID string, settings *models.Settings) {
	httpclient.Delete(fmt.Sprintf("%s/v1/environments/%s/services/%s/console/%s", settings.PaasHost, settings.EnvironmentID, serviceID, jobID), true, settings)
}
Exemple #2
0
// UnsetEnvVar deletes an env var from the associated code service
func UnsetEnvVar(envVar string, settings *models.Settings) {
	httpclient.Delete(fmt.Sprintf("%s/v1/environments/%s/services/%s/env/%s", settings.PaasHost, settings.EnvironmentID, settings.ServiceID, envVar), true, settings)
}
Exemple #3
0
// DeleteInvite deletes a pending invite. If an invite has already been accepted
// it cannot be deleted. Instead use the `catalyze users rm` command to revoke
// their access. This DeleteInvite method would be used if you typed the email
// incorrectly and wanted to revoke the invitation.
func DeleteInvite(inviteID string, settings *models.Settings) {
	httpclient.Delete(fmt.Sprintf("%s/v1/environments/%s/invites/%s", settings.PaasHost, settings.EnvironmentID, inviteID), true, settings)
}
Exemple #4
0
// RemoveUserFromEnvironment revokes a users access to the associated env
func RemoveUserFromEnvironment(usersID string, settings *models.Settings) {
	httpclient.Delete(fmt.Sprintf("%s/v1/environments/%s/users/%s", settings.PaasHost, settings.EnvironmentID, usersID), true, settings)
}