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
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.