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 *cpi.ResourceMeta, url string, opts ...Option) cpi.ResourceAccess
- func SourceAccess(ctx ocm.Context, meta *cpi.SourceMeta, url string, opts ...Option) cpi.SourceAccess
- type Option
- func WithBody(v io.Reader) Option
- func WithCredentialContext(ctx credentials.ContextProvider) Option
- func WithCredentials(c credentials.Credentials) Option
- func WithHeader(h http.Header) Option
- func WithLoggingContext(ctx 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 *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 ¶
func WithCredentialContext ¶
func WithCredentialContext(ctx credentials.ContextProvider) Option
func WithCredentials ¶
func WithCredentials(c credentials.Credentials) Option
func WithHeader ¶
func WithLoggingContext ¶
func WithLoggingContext(ctx logging.ContextProvider) Option
func WithMimeType ¶
func WithNoRedirect ¶
Click to show internal directories.
Click to hide internal directories.