opt

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*opt) error

func WithAnonymous

func WithAnonymous() Opt

WithAnonymous forces use of anonymous credentials. Use this for S3-compatible services that don't require authentication.

func WithCreateDir

func WithCreateDir() Opt

WithCreateDir sets create_dir=true for file:// URLs to create the directory if it doesn't exist

func WithEndpoint

func WithEndpoint(endpoint string) Opt

WithEndpoint sets the S3 endpoint for S3-compatible services. For http:// endpoints, HTTPS is automatically disabled.

func WithTracer

func WithTracer(tracer trace.Tracer) Opt

type Opts

type Opts interface {
	Scheme() string
	Host() string
}

func Apply

func Apply(u *url.URL, opts ...Opt) (Opts, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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