Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConnector ¶
func CreateConnector(ct *Connector, logger *zap.SugaredLogger) error
func DeleteConnector ¶
func DeleteConnector(id string, _ *zap.SugaredLogger) error
func UpdateConnector ¶
func UpdateConnector(ct *Connector, logger *zap.SugaredLogger) error
Types ¶
type Connector ¶
type Connector struct { ConnectorBase ID string `json:"id"` Name string `json:"name"` Config interface{} `json:"config"` }
func GetConnector ¶
func GetConnector(id string, logger *zap.SugaredLogger) (*Connector, error)
func ListConnectors ¶
func ListConnectors(encryptedKey string, logger *zap.SugaredLogger) ([]*Connector, error)
func ListConnectorsInternal ¶ added in v1.9.9
func ListConnectorsInternal(logger *zap.SugaredLogger) ([]*Connector, error)
func (*Connector) UnmarshalJSON ¶
type ConnectorBase ¶
type ConnectorBase struct {
Type ConnectorType `json:"type"`
}
type ConnectorType ¶
type ConnectorType string
const ( TypeLDAP ConnectorType = "ldap" TypeGitHub ConnectorType = "github" TypeGitlab ConnectorType = "gitlab" TypeOIDC ConnectorType = "oidc" TypeGitea ConnectorType = "gitea" TypeGoogle ConnectorType = "google" TypeLinkedIn ConnectorType = "linkedin" TypeMicrosoft ConnectorType = "microsoft" )
Click to show internal directories.
Click to hide internal directories.