Documentation ¶
Index ¶
- Constants
- func IsInvalidConfig(err error) bool
- func IsMissingCallbackURI(err error) bool
- func IsNotFound(err error) bool
- func IsRequestFailed(err error) bool
- type Config
- type Github
- func (g *Github) CleanCredentialsForAuthenticatedApp(config provider.AppConfig) error
- func (g *Github) CreateApp(config provider.AppConfig) (*githubclient.AppConfig, error)
- func (g *Github) CreateOrUpdateApp(config provider.AppConfig, ctx context.Context, oldConnector dex.Connector) (provider.ProviderApp, error)
- func (g *Github) DeleteApp(name string, ctx context.Context) error
- func (g *Github) DeleteAuthenticatedApp(config provider.AppConfig) error
- func (g *Github) GetAppData(app *githubclient.AppConfig) Config
- func (g *Github) GetCredentialsForAuthenticatedApp(config provider.AppConfig) (map[string]string, error)
- func (g *Github) GetName() string
- func (g *Github) GetOwner() string
- func (g *Github) GetProviderName() string
- func (g *Github) GetType() string
- func (g *Github) UpdateNeeded(app *githubclient.App, config provider.AppConfig) bool
Constants ¶
View Source
const ( ProviderName = "github" ProviderDisplayName = "Github" ProviderConnectorType = "github" OrganizationKey = "organization" TeamKey = "team" AppIDKey = "app-id" PrivateKeyKey = "private-key" ClientIDKey = "client-id" ClientSecretKey = "client-secret" DefaultHost = "github.com" TeamNameFieldSlug = "slug" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidcConfig asserts invalidConfigError.
func IsMissingCallbackURI ¶
IsMissingCallbackURI asserts missingCallbackURIError.
func IsRequestFailed ¶
IsRequestFailed asserts requestFailedError.
Types ¶
type Github ¶
type Github struct { Client *githubclient.Client Log *logr.Logger Name string Description string Type string Owner string Organization string Team string // contains filtered or unexported fields }
func (*Github) CleanCredentialsForAuthenticatedApp ¶
func (*Github) CreateOrUpdateApp ¶
func (*Github) DeleteAuthenticatedApp ¶ added in v0.5.0
func (*Github) GetAppData ¶
func (g *Github) GetAppData(app *githubclient.AppConfig) Config
func (*Github) GetCredentialsForAuthenticatedApp ¶
func (*Github) GetProviderName ¶
func (*Github) UpdateNeeded ¶
Click to show internal directories.
Click to hide internal directories.