web

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package web provides web service and ingress management functionality for Clowder applications

Index

Constants

This section is empty.

Variables

View Source
var CoreCaddyConfigMap = rc.NewMultiResourceIdent(ProvName, "core_caddy_config_map", &core.ConfigMap{}, rc.ResourceOptions{WriteNow: true})

CoreCaddyConfigMap represents the resource identifier for core Caddy configuration maps

View Source
var CoreService = rc.NewMultiResourceIdent(ProvName, "core_service", &core.Service{})

CoreService is the service for the apps deployments.

View Source
var ProvName = "web"

ProvName sets the provider name identifier

View Source
var WebBOPDeployment = rc.NewSingleResourceIdent(ProvName, "web_bop_deployment", &apps.Deployment{})

WebBOPDeployment is the mocked bop deployment

View Source
var WebBOPIngress = rc.NewSingleResourceIdent(ProvName, "web_bop_ingress", &networking.Ingress{})

WebBOPIngress is the resource ident for the web BOP ingress

View Source
var WebBOPService = rc.NewSingleResourceIdent(ProvName, "web_bop_service", &core.Service{})

WebBOPService is the resource ident for the web BOP service

View Source
var WebGatewayCertificate = rc.NewSingleResourceIdent(ProvName, "web_gateway_certificate", &certmanager.Certificate{})

WebGatewayCertificate is the resource ident for the web gateway certificate

View Source
var WebGatewayCertificateIssuer = rc.NewSingleResourceIdent(ProvName, "web_gateway_cert_issuer", &certmanager.Issuer{})

WebGatewayCertificateIssuer is the resource ident for the web gateway certificate issuer

View Source
var WebGatewayConfigMap = rc.NewSingleResourceIdent(ProvName, "web_gateway_configmap", &core.Service{})

WebGatewayConfigMap is the resource ident for the web gateway config map

View Source
var WebGatewayDeployment = rc.NewSingleResourceIdent(ProvName, "web_gateway_deployment", &apps.Deployment{})

WebGatewayDeployment is the resource ident for the web gateway deployment

View Source
var WebGatewayIngress = rc.NewSingleResourceIdent(ProvName, "web_gateway_ingress", &networking.Ingress{})

WebGatewayIngress is the resource ident for the web gateway ingress

View Source
var WebGatewayService = rc.NewSingleResourceIdent(ProvName, "web_gateway_service", &core.Service{})

WebGatewayService is the resource ident for the web gateway service

View Source
var WebIngress = rc.NewMultiResourceIdent(ProvName, "web_ingress", &networking.Ingress{})

WebIngress is the mocked secret config

View Source
var WebKeycloakDBDeployment = rc.NewSingleResourceIdent(ProvName, "web_keycloak_db_deployment", &apps.Deployment{})

WebKeycloakDBDeployment is the ident referring to the local Feature Flags DB deployment object.

View Source
var WebKeycloakDBPVC = rc.NewSingleResourceIdent(ProvName, "web_keycloak_db_pvc", &core.PersistentVolumeClaim{})

WebKeycloakDBPVC is the ident referring to the local Feature Flags DB PVC object.

View Source
var WebKeycloakDBSecret = rc.NewSingleResourceIdent(ProvName, "web_keycloak_db_secret", &core.Secret{})

WebKeycloakDBSecret is the ident referring to the local Feature Flags DB secret object.

View Source
var WebKeycloakDBService = rc.NewSingleResourceIdent(ProvName, "web_keycloak_db_service", &core.Service{})

WebKeycloakDBService is the ident referring to the local Feature Flags DB service object.

View Source
var WebKeycloakDeployment = rc.NewSingleResourceIdent(ProvName, "web_keycloak_deployment", &apps.Deployment{}, rc.ResourceOptions{WriteNow: true})

WebKeycloakDeployment is the mocked keycloak deployment

View Source
var WebKeycloakImportSecret = rc.NewSingleResourceIdent(ProvName, "web_keycloak_import_secret", &core.Secret{})

WebKeycloakImportSecret is the keycloak import secret

View Source
var WebKeycloakIngress = rc.NewSingleResourceIdent(ProvName, "web_keycloak_ingress", &networking.Ingress{})

WebKeycloakIngress is the keycloak ingress

View Source
var WebKeycloakSecret = rc.NewSingleResourceIdent(ProvName, "web_keycloak_secret", &core.Secret{}, rc.ResourceOptions{WriteNow: true})

WebKeycloakSecret is the mocked secret config

View Source
var WebKeycloakService = rc.NewSingleResourceIdent(ProvName, "web_keycloak_service", &core.Service{}, rc.ResourceOptions{WriteNow: true})

WebKeycloakService is the mocked keycloak deployment

View Source
var WebMocktitlementsDeployment = rc.NewSingleResourceIdent(ProvName, "web_mocktitlements_deployment", &apps.Deployment{})

WebMocktitlementsDeployment is the resource ident for the web mocktitlements deployment

View Source
var WebMocktitlementsIngress = rc.NewSingleResourceIdent(ProvName, "web_mocktitlements_ingress", &networking.Ingress{})

WebMocktitlementsIngress is the resource ident for the web mocktitlements ingress

View Source
var WebMocktitlementsService = rc.NewSingleResourceIdent(ProvName, "web_mocktitlements_service", &core.Service{})

WebMocktitlementsService is the resource ident for the web mocktitlements service

View Source
var WebSecret = rc.NewMultiResourceIdent(ProvName, "web_secret", &core.Secret{})

WebSecret is the mocked secret config

Functions

func GenerateConfig added in v0.65.0

func GenerateConfig(hostname string, bopAddress string, whitelist []string, appRoutes []ProxyRoute) (string, error)

GenerateConfig creates a complete Caddy configuration for the provided routes and TLS settings

func GenerateRoute added in v0.65.0

func GenerateRoute(upstream ProxyRoute, warnings *[]caddyconfig.Warning) *caddyhttp.Route

GenerateRoute creates a Caddy HTTP route configuration for the given proxy route

func GetWeb

GetWeb returns the correct web provider.

func NewLocalWebProvider added in v0.21.0

func NewLocalWebProvider(p *providers.Provider) (providers.ClowderProvider, error)

NewLocalWebProvider creates a new local web provider instance

func NewWebProvider

func NewWebProvider(p *providers.Provider) (providers.ClowderProvider, error)

NewWebProvider creates a new web provider instance

Types

type ProxyRoute added in v0.65.0

type ProxyRoute struct {
	Upstream string `json:"upstream"`
	Path     string `json:"path"`
}

ProxyRoute represents a proxy route configuration with upstream and path information

Jump to

Keyboard shortcuts

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