service

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 12 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(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"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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