wgetaccess

package
v0.0.0-...-877fc11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Access

func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, url string, opts ...Option) cpi.ArtifactAccess[M]

func ResourceAccess

func ResourceAccess(ctx ocm.Context, meta *cpi.ResourceMeta, url string, opts ...Option) cpi.ResourceAccess

func SourceAccess

func SourceAccess(ctx ocm.Context, meta *cpi.SourceMeta, url string, opts ...Option) cpi.SourceAccess

Types

type Option

type Option = wget.Option

func WithBody

func WithBody(v io.Reader) Option

func WithCredentialContext

func WithCredentialContext(ctx credentials.ContextProvider) Option

func WithCredentials

func WithCredentials(c credentials.Credentials) Option

func WithHeader

func WithHeader(h http.Header) Option

func WithLoggingContext

func WithLoggingContext(ctx logging.ContextProvider) Option

func WithMimeType

func WithMimeType(mime string) Option

func WithNoRedirect

func WithNoRedirect(r ...bool) Option

func WithVerb

func WithVerb(v string) Option

type Options

type Options = wget.Options

Jump to

Keyboard shortcuts

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