service

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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

func (c *Connector) UnmarshalJSON(data []byte) error

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL