resolver

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(config storage.ProviderConfig) (*providerClientService, *providerResolver)

Build constructs the cp client service and provider resolver from runtime configuration.

func NewServiceFromConfig

func NewServiceFromConfig(config storage.ProviderConfig, opts ...Option) *objects.Service

NewServiceFromConfig constructs a storage service complete with resolver rules derived from runtime configuration.

Types

type Option

type Option func(*serviceOptions)

func WithPresignBaseURL added in v0.39.2

func WithPresignBaseURL(baseURL string) Option

WithPresignBaseURL configures the base URL for presigned download URLs.

func WithPresignConfig

func WithPresignConfig(tokenManager func() *tokens.TokenManager, issuer, audience string) Option

WithPresignConfig configures presigned URL token generation for providers that support it.

type RuleOption

type RuleOption func(*ruleCoordinator)

RuleOption configures aspects of ruleCoordinator

func WithProviderBuilders

func WithProviderBuilders(builders providerBuilders) RuleOption

WithProviderBuilders supplies the provider builders used for rule resolution.

func WithProviderConfig

func WithProviderConfig(config storage.ProviderConfig) RuleOption

WithProviderConfig supplies the provider configuration used when resolving options.

func WithRuntimeOptions added in v0.39.2

func WithRuntimeOptions(runtime serviceOptions) RuleOption

WithRuntimeOptions supplies runtime configuration such as token manager hooks.

Jump to

Keyboard shortcuts

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