Documentation ¶
Index ¶
- func PrepareExternalGraphQLServer(cfg Config, certResolver api.CertificateResolver, ...) (*http.Server, error)
- func PrepareHydratorServer(cfg Config, tokenService tokens.Service, ...) (*http.Server, error)
- func PrepareInternalGraphQLServer(cfg Config, tokenResolver api.TokenResolver) (*http.Server, error)
- type Components
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareExternalGraphQLServer ¶
func PrepareExternalGraphQLServer(cfg Config, certResolver api.CertificateResolver, authContextMiddleware mux.MiddlewareFunc) (*http.Server, error)
func PrepareHydratorServer ¶
func PrepareHydratorServer(cfg Config, tokenService tokens.Service, subjectConsts certificates.CSRSubjectConsts, revokedCertsRepository revocation.RevokedCertificatesRepository) (*http.Server, error)
Types ¶
type Components ¶
type Components struct { TokenService tokens.Service Authenticator authentication.Authenticator CertificateService certificates.Service RevokedCertsRepository revocation.RevokedCertificatesRepository CSRSubjectConsts certificates.CSRSubjectConsts }
func InitInternalComponents ¶
func InitInternalComponents(cfg Config, k8sClientSet kubernetes.Interface) (Components, certificates.Loader, revocation.Loader)
type Config ¶
type Config struct { ExternalAddress string `envconfig:"default=127.0.0.1:3000"` InternalAddress string `envconfig:"default=127.0.0.1:3001"` APIEndpoint string `envconfig:"default=/graphql"` PlaygroundAPIEndpoint string `envconfig:"default=/graphql"` HydratorAddress string `envconfig:"default=127.0.0.1:8080"` ServerTimeout time.Duration `envconfig:"default=100s"` CSRSubject struct { Country string `envconfig:"default=PL"` Organization string `envconfig:"default=Org"` OrganizationalUnit string `envconfig:"default=OrgUnit"` Locality string `envconfig:"default=Locality"` Province string `envconfig:"default=State"` } CertificateValidityTime time.Duration `envconfig:"default=2160h"` CASecret struct { Name string `envconfig:"default=kyma-integration/connector-service-app-ca"` CertificateKey string `envconfig:"default=ca.crt"` KeyKey string `envconfig:"default=ca.key"` } RootCASecret struct { Name string `envconfig:"optional"` CertificateKey string `envconfig:"optional"` } CertificateDataHeader string `envconfig:"default=Certificate-Data"` RevocationConfigMapName string `envconfig:"default=compass-system/revocations-Config"` Token struct { Length int `envconfig:"default=64"` RuntimeExpiration time.Duration `envconfig:"default=60m"` ApplicationExpiration time.Duration `envconfig:"default=5m"` CSRExpiration time.Duration `envconfig:"default=5m"` } DirectorURL string `envconfig:"default=127.0.0.1:3003"` CertificateSecuredConnectorURL string `envconfig:"default=https://compass-gateway-mtls.kyma.local"` KubernetesClient struct { PollInteval time.Duration `envconfig:"default=2s"` PollTimeout time.Duration `envconfig:"default=1m"` Timeout time.Duration `envconfig:"default=95s"` } }
Click to show internal directories.
Click to hide internal directories.