Documentation ¶
Index ¶
- Constants
- Variables
- func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
- func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
- func Is(spec accspeccpi.AccessSpec) bool
- func Logger(c ContextProvider, keyValuePairs ...interface{}) logging.Logger
- type AccessSpec
- func (a *AccessSpec) AccessMethod(access accspeccpi.ComponentVersionAccess) (accspeccpi.AccessMethod, error)
- func (a *AccessSpec) Describe(ctx accspeccpi.Context) string
- func (a *AccessSpec) GetURL() string
- func (a *AccessSpec) GlobalAccessSpec(ctx accspeccpi.Context) accspeccpi.AccessSpec
- func (a *AccessSpec) IsLocal(ctx accspeccpi.Context) bool
- type ContextProvider
- type Option
- type Options
Constants ¶
View Source
const ( Type = "wget" TypeV1 = Type + runtime.VersionSeparator + "v1" )
Type is the access type for a blob on an http server .
Variables ¶
View Source
var REALM = ocmlog.DefineSubRealm("access method for wget", "accessmethod/wget")
Functions ¶
func AddConfig ¶ added in v0.9.0
func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
func ConfigHandler ¶ added in v0.9.0
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
func Is ¶
func Is(spec accspeccpi.AccessSpec) bool
func Logger ¶
func Logger(c ContextProvider, keyValuePairs ...interface{}) logging.Logger
Types ¶
type AccessSpec ¶
type AccessSpec struct { runtime.ObjectVersionedType `json:",inline"` // URLs to the files on a server URL string `json:"URL"` // MediaType is the media type of the object represented by the blob MediaType string `json:"mediaType"` // Header to be passed in the http request Header map[string][]string `json:"header"` // Verb is the http verb to be used for the request Verb string `json:"verb"` // Body is the body to be included in the http request Body io.Reader `json:"body"` // NoRedirect allows to disable redirects NoRedirect bool `json:"noRedirect"` }
AccessSpec describes the access for files on HTTP and HTTPS servers.
func New ¶
func New(url string, opts ...Option) *AccessSpec
New creates a new WGET accessor for http resources.
func (*AccessSpec) AccessMethod ¶
func (a *AccessSpec) AccessMethod(access accspeccpi.ComponentVersionAccess) (accspeccpi.AccessMethod, error)
func (*AccessSpec) Describe ¶
func (a *AccessSpec) Describe(ctx accspeccpi.Context) string
func (*AccessSpec) GetURL ¶
func (a *AccessSpec) GetURL() string
func (*AccessSpec) GlobalAccessSpec ¶
func (a *AccessSpec) GlobalAccessSpec(ctx accspeccpi.Context) accspeccpi.AccessSpec
func (*AccessSpec) IsLocal ¶
func (a *AccessSpec) IsLocal(ctx accspeccpi.Context) bool
type ContextProvider ¶
Click to show internal directories.
Click to hide internal directories.