Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Realm specifies the HTTP authentication realm. Realm = "Jira PrivX Webhook" // Tenant specifies the OAuth2 authentication tenant. Tenant = "Jira-PrivX-Webhook" // InstanceEnvVar specifies the environment variable that holds // the PrivX instance name. InstanceEnvVar = "PRIVX_INSTANCE" )
View Source
const (
// Role is PrivX user role to assign.
Role = "ssh-user"
)
Variables ¶
This section is empty.
Functions ¶
func AddPrivXInstance ¶
AddPrivXInstance adds the named PrivX instance to the PrivX collection in Firestore. TODO, must change to use correct types instead of []byte configs.
func Errorf ¶
func Errorf(w http.ResponseWriter, code int, format string, a ...interface{})
Errorf formats an HTTP error response.
func PrivXWebhook ¶
func PrivXWebhook(w http.ResponseWriter, r *http.Request)
PrivXWebhook is the cloud function entry point for Jira-PrivX integration.
Types ¶
type Instance ¶
Instance contains configuration information for a PrivX instance.
func GetPrivXInstance ¶
GetPrivXInstance gets the PrivX instance by name.
func GetPrivXInstances ¶
GetPrivXInstances returns all known PrivX instances.
Click to show internal directories.
Click to hide internal directories.