Documentation
¶
Index ¶
- Constants
- func Apply(opts Options) error
- func ApplyBotMitigation(projectDir, state string) error
- func ApplyDerivativeServices(opts Options) error
- func ApplyIIIF(opts Options) error
- func BotMitigationOptions() coretraefik.BotMitigationOptions
- func DerivativeServiceNames() []string
- func IsDerivativeService(name string) bool
- func SyncBotMitigationBypass(projectDir string) error
- func SyncLocalDrupalInternalIngress(projectDir string, enabled bool) error
- func TrustedHostPatterns(domain string, includeLocalDrupal bool) string
- type DerivativeServiceSpec
- type Options
Constants ¶
View Source
const ( FcrepoStateOn = "on" FcrepoStateOff = "off" IIIFCantaloupe = "cantaloupe" IIIFTriplet = "triplet" IIIFTopologyLocal = "local" IIIFTopologyExternal = "external" DerivativeTopologyLocal = "local" DerivativeTopologyDistributed = "distributed" CodebaseNested = "nested" CodebaseGitRoot = "git-root" DefaultDrupalRootfs = "drupal/rootfs/var/www/drupal" DefaultISLEFileSystemURI = "private" PublicISLEFileSystemURI = "public" PrivateISLEFileSystemURI = "private" // LocalDrupalBaseURL is the internal Traefik route used by local Fcrepo // clients that cannot reach the host machine's localhost. LocalDrupalBaseURL = "http://" + localDrupalHost )
View Source
const DefaultTrustedHostPatterns = "^localhost$"
DefaultTrustedHostPatterns is the Drupal trusted-host regex for local sites.
Variables ¶
This section is empty.
Functions ¶
func ApplyBotMitigation ¶ added in v0.12.0
func ApplyDerivativeServices ¶ added in v0.13.0
ApplyDerivativeServices applies the requested local or distributed topology for derivative services in docker-compose.yml and docker-compose.dev.yml.
func BotMitigationOptions ¶ added in v0.17.0
func BotMitigationOptions() coretraefik.BotMitigationOptions
func DerivativeServiceNames ¶ added in v0.13.0
func DerivativeServiceNames() []string
DerivativeServiceNames returns the derivative service names in catalog order.
func IsDerivativeService ¶ added in v0.13.0
IsDerivativeService reports whether name is a known derivative service.
func SyncBotMitigationBypass ¶ added in v0.17.0
func SyncLocalDrupalInternalIngress ¶ added in v0.17.0
func TrustedHostPatterns ¶ added in v0.17.0
TrustedHostPatterns returns comma-separated Drupal trusted host regexes.
Types ¶
type DerivativeServiceSpec ¶ added in v0.13.0
type DerivativeServiceSpec struct {
Name string
ImageRef string
AlpacaEnv string
ExternalURL string
LocalURL string
NeedsJWT bool
}
DerivativeServiceSpec describes one derivative microservice and the URLs used when it runs locally or through the managed LibOps endpoint.
func DerivativeServiceSpecs ¶ added in v0.13.0
func DerivativeServiceSpecs() []DerivativeServiceSpec
DerivativeServiceSpecs returns the canonical derivative service catalog.
Click to show internal directories.
Click to hide internal directories.