Documentation ¶
Index ¶
- Constants
- func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, url string, opts ...Option) cpi.ArtifactAccess[M]
- func ResourceAccess(ctx ocm.Context, meta *ocm.ResourceMeta, url string, opts ...Option) cpi.ResourceAccess
- func SourceAccess(ctx ocm.Context, meta *ocm.SourceMeta, url string, opts ...Option) cpi.SourceAccess
- type Option
- func WithBody(v io.Reader) Option
- func WithCredentialContext(credctx credentials.ContextProvider) Option
- func WithCredentials(creds credentials.Credentials) Option
- func WithGlobalAccess(a cpi.AccessSpec) Option
- func WithHeader(h http.Header) Option
- func WithHint(h string) Option
- func WithLoggingContext(logctx logging.ContextProvider) Option
- func WithMimeType(mime string) Option
- func WithNoRedirect(r ...bool) Option
- func WithVerb(v string) Option
- type Options
Constants ¶
View Source
const TYPE = resourcetypes.BLOB
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 *ocm.ResourceMeta, url string, opts ...Option) cpi.ResourceAccess
func SourceAccess ¶
func SourceAccess(ctx ocm.Context, meta *ocm.SourceMeta, url string, opts ...Option) cpi.SourceAccess
Types ¶
type Option ¶
type Option = optionutils.Option[*Options]
func WithCredentialContext ¶
func WithCredentialContext(credctx credentials.ContextProvider) Option
func WithCredentials ¶
func WithCredentials(creds credentials.Credentials) Option
func WithGlobalAccess ¶
func WithGlobalAccess(a cpi.AccessSpec) Option
func WithHeader ¶
func WithLoggingContext ¶
func WithLoggingContext(logctx logging.ContextProvider) Option
func WithMimeType ¶
func WithNoRedirect ¶
Click to show internal directories.
Click to hide internal directories.