Documentation ¶
Overview ¶
Package srvcommon contains various constants, interfaces and functions used by one or more server provider
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
RandomString generates a string of xlen length from random alphabet runes
func RedirectWithState ¶
func RedirectWithState(oauther OAuther, ctx *fiber.Ctx)
RedirectWithState sets a state cookie for OAuth and redirects the client
func RespondWithHTML ¶
func RespondWithHTML(ctx *fiber.Ctx, html string)
RespondWithHTML takes a given fiber request context and returns a 200 OK status with the given html response body
Types ¶
type CredentialProvider ¶
type Provider ¶
type Provider interface { OAuther SSHKeyProvider CredentialProvider }
type SSHKeyProvider ¶
type Software ¶
type Software interface { Name() string URL() string AdditionalQuestions() map[string]Question Prepare(ip string, domain string, provider string, questions map[string]string) error Execute(ip string, domain string, provider string, questions map[string]string) error Export(ip string, domain string, provider string, questions map[string]string) (map[string]string, error) Cleanup(ip string, domain string, provider string, questions map[string]string) error }
Click to show internal directories.
Click to hide internal directories.