Documentation ¶
Overview ¶
Package githubupstreamwatcher implements a controller which watches GitHubIdentityProviders.
Index ¶
- Constants
- func New(namespace string, idpCache UpstreamGitHubIdentityProviderICache, ...) controllerlib.Controller
- func ProbeURL(ctx context.Context, client *http.Client, url string) error
- type GitHubValidatedAPICache
- type GitHubValidatedAPICacheI
- type GitHubValidatedAPICacheKey
- type ProbeURLFunc
- type UpstreamGitHubIdentityProviderICache
Constants ¶
View Source
const ( HostValid string = "HostValid" TLSConfigurationValid string = "TLSConfigurationValid" OrganizationsPolicyValid string = "OrganizationsPolicyValid" ClientCredentialsSecretValid string = "ClientCredentialsSecretValid" //nolint:gosec // this is not a credential GitHubConnectionValid string = "GitHubConnectionValid" ClaimsValid string = "ClaimsValid" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( namespace string, idpCache UpstreamGitHubIdentityProviderICache, client supervisorclientset.Interface, gitHubIdentityProviderInformer idpinformers.GitHubIdentityProviderInformer, secretInformer corev1informers.SecretInformer, configMapInformer corev1informers.ConfigMapInformer, log plog.Logger, withInformer pinnipedcontroller.WithInformerOptionFunc, clock clock.Clock, probeURLFunc ProbeURLFunc, validatedCache *cache.Expiring, ) controllerlib.Controller
New instantiates a new controllerlib.Controller which will populate the provided UpstreamGitHubIdentityProviderICache.
Types ¶
type GitHubValidatedAPICache ¶ added in v0.33.0
type GitHubValidatedAPICache struct {
// contains filtered or unexported fields
}
func (*GitHubValidatedAPICache) IsValid ¶ added in v0.33.0
func (g *GitHubValidatedAPICache) IsValid(address string, caBundleHash tlsconfigutil.CABundleHash) bool
func (*GitHubValidatedAPICache) MarkAsValidated ¶ added in v0.33.0
func (g *GitHubValidatedAPICache) MarkAsValidated(address string, caBundleHash tlsconfigutil.CABundleHash)
type GitHubValidatedAPICacheI ¶ added in v0.33.0
type GitHubValidatedAPICacheI interface { MarkAsValidated(address string, caBundleHash tlsconfigutil.CABundleHash) IsValid(address string, caBundleHash tlsconfigutil.CABundleHash) bool }
func NewGitHubValidatedAPICache ¶ added in v0.33.0
func NewGitHubValidatedAPICache(cache *cache.Expiring) GitHubValidatedAPICacheI
type GitHubValidatedAPICacheKey ¶ added in v0.33.0
type GitHubValidatedAPICacheKey struct {
// contains filtered or unexported fields
}
type ProbeURLFunc ¶ added in v0.34.0
type UpstreamGitHubIdentityProviderICache ¶
type UpstreamGitHubIdentityProviderICache interface {
SetGitHubIdentityProviders([]upstreamprovider.UpstreamGithubIdentityProviderI)
}
UpstreamGitHubIdentityProviderICache is a thread safe cache that holds a list of validated upstream GitHub IDP configurations.
Click to show internal directories.
Click to hide internal directories.